|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bibop.xml.xforge.AbstractElement | +--org.bibop.xml.xforge.AttributeElement
Dynamically create an XML element attribute
TagElement
,
AttributesListener
Field Summary | |
private java.lang.String |
attributeName
|
private java.lang.StringBuffer |
attributeValue
|
static java.lang.String |
XFORGE_ATTR_ATTRIBUTENAME
|
Fields inherited from class org.bibop.xml.xforge.AbstractElement |
contentHandler, lexicalHandler, parentPrefixesMonitor, po, saxEvents, xmlCompiler |
Constructor Summary | |
AttributeElement(org.xml.sax.Attributes attrs,
ProcessingOptions aPO)
Look for the "name" attribute and set it as the attribute name. |
Method Summary | |
void |
characters(char[] ch,
int start,
int len)
Receive notification of character data. |
void |
setContentHandler(org.xml.sax.ContentHandler xmlConsumer)
Sets the Content Handler that will receive our xml sax events |
void |
setParent(XMLConsumer xmlConsumer)
Sets the XMLConsumer that will receive our xml sax events |
void |
toSax()
Adds the attribute to the element owning it. |
Methods inherited from class org.bibop.xml.xforge.AbstractElement |
comment, end, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, flushSAXCache, getActivePrefixes, ignorableWhitespace, output, output, processingInstruction, setConsumer, setDocumentLocator, setLexicalHandler, setParentPrefixesMonitor, skippedEntity, start, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String attributeName
private java.lang.StringBuffer attributeValue
public static final java.lang.String XFORGE_ATTR_ATTRIBUTENAME
Constructor Detail |
public AttributeElement(org.xml.sax.Attributes attrs, ProcessingOptions aPO) throws IllegalElementException
attrs
- the Attributes object
IllegalElementException
- Attribute "name" empty or nullMethod Detail |
public void toSax() throws org.xml.sax.SAXException
toSax
in interface XMLProducer
toSax
in class AbstractElement
org.xml.sax.SAXException
public void characters(char[] ch, int start, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class AbstractElement
ch
- The characters from the XML document.start
- The start position in the array.len
- The number of characters to read from the array.
org.xml.sax.SAXException
public void setParent(XMLConsumer xmlConsumer) throws org.xml.sax.SAXException
setParent
in interface Element
setParent
in class AbstractElement
xmlConsumer
-
org.xml.sax.SAXException
public void setContentHandler(org.xml.sax.ContentHandler xmlConsumer) throws org.xml.sax.SAXException
setContentHandler
in interface XMLProducer
setContentHandler
in class AbstractElement
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |