Class EnumerationDefInfo
- java.lang.Object
-
- ro.sync.exml.workspace.api.editor.page.ditamap.keys.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 benull
.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()
-
-
-
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
-
-
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 classjava.lang.Object
- See Also:
Object.toString()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
getReferencedKeys
public java.util.LinkedHashSet<java.lang.String> getReferencedKeys()
Get the set of referenced keys, can benull
.- 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.
-
-