Class EnumerationDefInfo
java.lang.Object
ro.sync.exml.workspace.api.editor.page.ditamap.keys.EnumerationDefInfo
An enumeration def info.
<enumerationdef>
<elementdef name="p"/>
<attributedef name="product"/>
<subjectdef keyref="test"/>
</enumerationdef>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReferencedKey
(String keyRef) Add a referenced key.boolean
Get the attribute name.Get the element name.Get the set of referenced keys, can benull
.int
hashCode()
void
setKeyScopes
(Stack<Set<String>> keyScopes) void
setSingleValue
(Boolean singleValue) Set single value.toString()
-
Field Details
-
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
If this token is found in the outputclass attribute, then the enumerationdef only allows multiple values.- See Also:
-
-
Constructor Details
-
EnumerationDefInfo
Constructor.- Parameters:
attributeName
- The attribute name.elementName
- The element name. Can benull
.
-
-
Method Details
-
getAttributeName
Get the attribute name.- Returns:
- Returns the attribute name.
-
getElementName
Get the element name.- Returns:
- Returns the element name.
-
toString
-
equals
-
hashCode
public int hashCode() -
getReferencedKeys
Get the set of referenced keys, can benull
.- Returns:
- Returns the referenced key names.
-
addReferencedKey
Add a referenced key.- Parameters:
keyRef
- The keyref.
-
setKeyScopes
- Parameters:
keyScopes
- The keyScopes to set.
-
getKeyScopes
- Returns:
- Returns the keyScopes.
-
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
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.
-