|
|||||||||
| 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 null| Method Detail |
public void toSax()
throws org.xml.sax.SAXException
toSax in interface XMLProducertoSax in class AbstractElementorg.xml.sax.SAXException
public void characters(char[] ch,
int start,
int len)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class AbstractElementch - 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 ElementsetParent in class AbstractElementxmlConsumer -
org.xml.sax.SAXException
public void setContentHandler(org.xml.sax.ContentHandler xmlConsumer)
throws org.xml.sax.SAXException
setContentHandler in interface XMLProducersetContentHandler in class AbstractElementorg.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||