Class EnumerationDefInfo

java.lang.Object
ro.sync.exml.workspace.api.editor.page.ditamap.keys.EnumerationDefInfo

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

    • SINGLE_VALUE_OUTPUTCLASS_TOKEN

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

      public static final String MULTI_VALUE_OUTPUTCLASS_TOKEN
      If this token is found in the outputclass attribute, then the enumerationdef only allows multiple values.
      See Also:
  • Constructor Details

    • EnumerationDefInfo

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

    • getAttributeName

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

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

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

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

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

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

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

      public 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(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.