Class MapProperty

    • Field Detail

      • field

        protected final Field field
        The corresponding field.
    • Method Detail

      • isContainer

        public boolean isContainer()
        Description copied from interface: Property
        Whether this property is a container - this means the property value is a map or a list.

        Container properties don't have a scalar values. Container values are computed each time they are requested - by calling on of the getValue methods - by collecting the values of the child properties.

        Returns:
        true if scalar false otherwise
      • getName

        public String getName()
        Description copied from interface: Property
        Gets the property name.
        Returns:
        the property name
      • getField

        public Field getField()
        Description copied from interface: Property
        Gets the field corresponding to this property.

        The field is the object defining the property. You can see the field as a java class and the property as a class instance

      • accept

        public void accept​(PropertyVisitor visitor,
                           Object arg)
                    throws PropertyException
        Description copied from interface: Property
        Method that implement the visitor pattern.

        The visitor must return null to stop visiting children otherwise a context object that will be passed as the arg argument to children

        Parameters:
        visitor - the visitor to accept
        arg - an argument passed to the visitor. This should be used by the visitor to carry on the visiting context.
        Throws:
        PropertyException