Class DefaultAttributeKeyType

    • Method Detail

      • getName

        public QName getName()
        Description copied from interface: AttributeKeyType
        The name of the key if it is a named key else throws a NoSuchElementException.
        Specified by:
        getName in interface AttributeKeyType
        Returns:
        The name of the key.
      • getPattern

        public Pattern getPattern()
        Description copied from interface: AttributeKeyType
        The pattern of the key if it is a pattern based key else throws a NoSuchElementException.
        Specified by:
        getPattern in interface AttributeKeyType
        Returns:
        The name of the key.
      • isName

        public boolean isName()
        Description copied from interface: AttributeKeyType
        Return if the this is a named key or not
        Specified by:
        isName in interface AttributeKeyType
        Returns:
        True if it is a named key
      • isPattern

        public boolean isPattern()
        Description copied from interface: AttributeKeyType
        Return if the this is a pattern key or not.
        Specified by:
        isPattern in interface AttributeKeyType
        Returns:
        True if it is a pattern key
      • 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
      • 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