public class XMLDocumentation extends AbstractDocumentation
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeDefaultValue(java.lang.String elementName,
java.lang.String attributeName)
Returns the default value of an attribute.
|
java.lang.String[] |
getAttributeEnumValues(java.lang.String elementName,
java.lang.String attributeName)
Returns the enumeration values of a specified attribute.
|
void |
modifyAttributeDTD(java.lang.String elementName,
java.lang.String attributeName,
java.lang.String[] values,
java.lang.String defValue)
Modifies the DTD of an attribute.
|
boolean |
removeAttributeDTD(java.lang.String elementName,
java.lang.String attributeName)
Removes an attribute for the specified element.
|
XMLDocuNode |
root() |
getName, getType
public XMLDocuNode root()
public boolean removeAttributeDTD(java.lang.String elementName, java.lang.String attributeName)
elementName
- Name of the elementattributeName
- Name of the attributepublic java.lang.String[] getAttributeEnumValues(java.lang.String elementName, java.lang.String attributeName)
elementName
- Name of elementattributeName
- Name of the attributenull
if the attribute was not found or does not contain enum valuespublic java.lang.String getAttributeDefaultValue(java.lang.String elementName, java.lang.String attributeName)
elementName
- Name of the elementattributeName
- Name of the attributepublic void modifyAttributeDTD(java.lang.String elementName, java.lang.String attributeName, java.lang.String[] values, java.lang.String defValue)
elementName
- Name of the elementattributeName
- Name of the attributevalues
- Enumeration values or null
if this attribute can contain any valuesdefValue
- Default value