Class DefaultObjectFieldType

    • Method Detail

      • getFieldValues

        public Object[] getFieldValues()
        Description copied from interface: FieldsComparable
        A list of the fields that define the identity of this class. These fields can be used to compare if instances of a class are equal, or to generate a hash code for it.

        Have in mind not exposing fields of class Pattern, for example, that only check for reference equality (If that is not the desired behaviour).

        Specified by:
        getFieldValues in interface FieldsComparable
        Overrides:
        getFieldValues in class BaseMetadataType
      • isRequired

        public boolean isRequired()
        Description copied from interface: ObjectFieldType
        If the field is required or not
        Specified by:
        isRequired in interface ObjectFieldType
        Returns:
        True if is required
      • isRepeated

        public boolean isRepeated()
        Description copied from interface: ObjectFieldType
        If this field can be present more than once in an object
        Specified by:
        isRepeated in interface ObjectFieldType
        Returns:
        True if it can be repeated
      • accept

        public void accept​(MetadataTypeVisitor visitor)
        Description copied from interface: MetadataType
        Dispatches in a reflective way to the method with prefix "visit" with the specific type as argument. Example visitObject(ObjectType objectType) will be called when this type is an ObjectType.
        Specified by:
        accept in interface MetadataType
        Parameters:
        visitor - The visitor