protected abstract class GeneratorSetDocReader.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.
|
Long |
getLongAttribute(Attributes attributes,
String attributeName)
Returns the value of the given attribute as a Long.
|
GeneratorSetDocReader.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.
|
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.
|
void |
setParent(GeneratorSetDocReader.ElementHandler parent)
Changes the parent ElementHandler.
|
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 requireIdentifier(Attributes attributes, String attributeName) throws SAXException
SAXException
public Long getLongAttribute(Attributes attributes, String attributeName) throws SAXParseException
SAXParseException
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 boolean isMember(String memberQname)
public void setParent(GeneratorSetDocReader.ElementHandler parent)
public GeneratorSetDocReader.ElementHandler getParent()
Copyright © 2024 The Cornutum Project. All rights reserved.