Package com.uc4.api.objects
Class XMLDocumentation
java.lang.Object
com.uc4.api.objects.AbstractDocumentation
com.uc4.api.objects.XMLDocumentation
This class represents a structured documenation.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeDefaultValue(String elementName, String attributeName) Returns the default value of an attribute.String[]getAttributeEnumValues(String elementName, String attributeName) Returns the enumeration values of a specified attribute.voidmodifyAttributeDTD(String elementName, String attributeName, String[] values, String defValue) Modifies the DTD of an attribute.booleanremoveAttributeDTD(String elementName, String attributeName) Removes an attribute for the specified element.root()Methods inherited from class com.uc4.api.objects.AbstractDocumentation
getName, getType
-
Method Details
-
root
- Returns:
- Root node
-
removeAttributeDTD
Removes an attribute for the specified element. The attribute is removed from the DTD of this XML documentation- Parameters:
elementName- Name of the elementattributeName- Name of the attribute- Returns:
- true if the attribute was removed or false if not found
-
getAttributeEnumValues
Returns the enumeration values of a specified attribute.- Parameters:
elementName- Name of elementattributeName- Name of the attribute- Returns:
- String array containing the valid values for this attribute or
nullif the attribute was not found or does not contain enum values
-
getAttributeDefaultValue
Returns the default value of an attribute.- Parameters:
elementName- Name of the elementattributeName- Name of the attribute- Returns:
- default value or an empty String if no default value has been set
-
modifyAttributeDTD
public void modifyAttributeDTD(String elementName, String attributeName, String[] values, String defValue) Modifies the DTD of an attribute. If the attribute does not exist it is added to the DTD.- Parameters:
elementName- Name of the elementattributeName- Name of the attributevalues- Enumeration values ornullif this attribute can contain any valuesdefValue- Default value
-