Class EnumerationDefInfo


  • @API(type=EXTENDABLE,
         src=PUBLIC)
    public class EnumerationDefInfo
    extends java.lang.Object
    An enumeration def info. <enumerationdef> <elementdef name="p"/> <attributedef name="product"/> <subjectdef keyref="test"/> </enumerationdef>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MULTI_VALUE_OUTPUTCLASS_TOKEN
      If this token is found in the outputclass attribute, then the enumerationdef only allows multiple values.
      static java.lang.String SINGLE_VALUE_OUTPUTCLASS_TOKEN
      If this token is found in the outputclass attribute, then the enumerationdef only allows single values.
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumerationDefInfo​(java.lang.String attributeName, java.lang.String elementName)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addReferencedKey​(java.lang.String keyRef)
      Add a referenced key.
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAttributeName()
      Get the attribute name.
      java.lang.String getElementName()
      Get the element name.
      java.util.Stack<java.util.Set<java.lang.String>> getKeyScopes()  
      java.util.LinkedHashSet<java.lang.String> getReferencedKeys()
      Get the set of referenced keys, can be null.
      int hashCode()  
      java.lang.Boolean isSingleValue()  
      void setKeyScopes​(java.util.Stack<java.util.Set<java.lang.String>> keyScopes)  
      void setSingleValue​(java.lang.Boolean singleValue)
      Set single value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • SINGLE_VALUE_OUTPUTCLASS_TOKEN

        public static final java.lang.String SINGLE_VALUE_OUTPUTCLASS_TOKEN
        If this token is found in the outputclass attribute, then the enumerationdef only allows single values.
        See Also:
        Constant Field Values
      • MULTI_VALUE_OUTPUTCLASS_TOKEN

        public static final java.lang.String MULTI_VALUE_OUTPUTCLASS_TOKEN
        If this token is found in the outputclass attribute, then the enumerationdef only allows multiple values.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EnumerationDefInfo

        public EnumerationDefInfo​(java.lang.String attributeName,
                                  java.lang.String elementName)
        Constructor.
        Parameters:
        attributeName - The attribute name.
        elementName - The element name. Can be null.
    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
        Get the attribute name.
        Returns:
        Returns the attribute name.
      • getElementName

        public java.lang.String getElementName()
        Get the element name.
        Returns:
        Returns the element name.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • getReferencedKeys

        public java.util.LinkedHashSet<java.lang.String> getReferencedKeys()
        Get the set of referenced keys, can be null.
        Returns:
        Returns the referenced key names.
      • addReferencedKey

        public void addReferencedKey​(java.lang.String keyRef)
        Add a referenced key.
        Parameters:
        keyRef - The keyref.
      • setKeyScopes

        public void setKeyScopes​(java.util.Stack<java.util.Set<java.lang.String>> keyScopes)
        Parameters:
        keyScopes - The keyScopes to set.
      • getKeyScopes

        public java.util.Stack<java.util.Set<java.lang.String>> getKeyScopes()
        Returns:
        Returns the keyScopes.
      • isSingleValue

        public java.lang.Boolean isSingleValue()
        Returns:
        Returns null if we do not have this information, true if should allow single value, false if it should allow multiple values.
      • setSingleValue

        public void setSingleValue​(java.lang.Boolean singleValue)
        Set single value.
        Parameters:
        singleValue - null if we do not have this information, true if should allow single value, false if it should allow multiple values.