protected abstract class SystemInputDocReader.ElementHandler extends DefaultHandler
Modifier | Constructor and Description |
---|---|
protected |
ElementHandler() |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
addAttributeList(Set<String> attributes,
String... attributeList)
Adds the given attribute list.
|
protected Set<String> |
addAttributes(Set<String> attributes)
Adds the valid attributes for this element.
|
String |
getAttribute(Attributes attributes,
String attributeName)
Returns the value of the given attribute.
|
SystemInputDocReader.FunctionHandler |
getFunctionHandler()
Returns the handler for the Function element containing this element.
|
String |
getIdentifier(Attributes attributes,
String attributeName)
Returns the value of the given identifier attribute or null if undefined.
|
Integer |
getInteger(Attributes attributes,
String attributeName)
Returns the value of the given integer attribute or null if undefined.
|
SystemInputDocReader.ElementHandler |
getParent()
Returns the parent ElementHandler.
|
protected Set<String> |
getValidAttributes()
Returns the valid attributes for this element.
|
boolean |
isMember(String memberQname)
Returns true if the given element is a valid member of this element.
|
Set<String> |
propertiesDefined(Set<String> properties)
Records and returns a set of property definitions.
|
Set<String> |
propertiesReferenced(Set<String> properties)
Records and returns a set of property references.
|
String |
requireAttribute(Attributes attributes,
String attributeName)
Returns the value of the given attribute.
|
String |
requireAttribute(Attributes attributes,
String attributeName,
String attributeValue)
Returns the value of the given attribute.
|
String |
requireIdentifier(Attributes attributes,
String attributeName)
Returns the value of the given identifier attribute.
|
Integer |
requireInteger(Attributes attributes,
String attributeName)
Returns the value of the given integer attribute.
|
String |
requireNonBlankAttribute(Attributes attributes,
String attributeName)
Returns the value of the given attribute.
|
void |
setParent(SystemInputDocReader.ElementHandler parent)
Changes the parent ElementHandler.
|
String |
toIdentifier(String attributeName,
String attributeValue)
Returns the given attribute value as an identifier.
|
Integer |
toInteger(String attributeName,
String attributeValue)
Returns the given attribute value as an integer.
|
Set<String> |
toProperties(Attributes attributes,
String attributeName)
Converts the given attribute value to a set of property names.
|
void |
validateAttributes(String elementName,
Attributes attributes)
Reports an error if the any of the given attributes are not valid for this element.
|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public String requireAttribute(Attributes attributes, String attributeName, String attributeValue) throws SAXException
SAXException
public String requireAttribute(Attributes attributes, String attributeName) throws SAXException
SAXException
public String requireNonBlankAttribute(Attributes attributes, String attributeName) throws SAXException
SAXException
public Integer getInteger(Attributes attributes, String attributeName) throws SAXException
SAXException
public Integer requireInteger(Attributes attributes, String attributeName) throws SAXException
SAXException
public Integer toInteger(String attributeName, String attributeValue) throws SAXException
SAXException
public String getIdentifier(Attributes attributes, String attributeName) throws SAXException
SAXException
public String requireIdentifier(Attributes attributes, String attributeName) throws SAXException
SAXException
public String toIdentifier(String attributeName, String attributeValue) throws SAXException
SAXException
public String getAttribute(Attributes attributes, String attributeName)
public void validateAttributes(String elementName, Attributes attributes) throws SAXException
SAXException
protected Set<String> getValidAttributes()
protected Set<String> addAttributes(Set<String> attributes)
protected Set<String> addAttributeList(Set<String> attributes, String... attributeList)
public Set<String> propertiesDefined(Set<String> properties)
public Set<String> propertiesReferenced(Set<String> properties)
public Set<String> toProperties(Attributes attributes, String attributeName) throws SAXParseException
SAXParseException
public boolean isMember(String memberQname)
public void setParent(SystemInputDocReader.ElementHandler parent)
public SystemInputDocReader.ElementHandler getParent()
public SystemInputDocReader.FunctionHandler getFunctionHandler()
Copyright © 2024 The Cornutum Project. All rights reserved.