/** Empty element. */ @Override public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fDocumentHandler.emptyElement(element, attributes, augs); } }
/** * Empty element. */ public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fDocumentHandler.emptyElement(element, attributes, augs); } } // emptyElement(QName,XMLAttributes,Augmentations)
/** Empty element. */ public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fDocumentHandler.emptyElement(element, attributes, augs); } } // emptyElement(QName,XMLAttributes,Augmentations)
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { side.emptyElement(element, attributes, augs); next.emptyElement(element, attributes, augs); }
/** Empty element. */ public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fDocumentHandler.emptyElement(element, attributes, augs); } } // emptyElement(QName,XMLAttributes,Augmentations)
/** * Empty element. */ public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fDocumentHandler.emptyElement(element, attributes, augs); } } // emptyElement(QName,XMLAttributes,Augmentations)
/** Parsed character data for mixed content model. */ public void pcdata(Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); fDocumentHandler.emptyElement(E_PCDATA, fAttributes, augs); } } // pcdata(Augmentations)
/** Empty content model. */ public void empty(Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); fDocumentHandler.emptyElement(E_EMPTY, fAttributes, augs); } } // empty(Augmentations)
/** Any content model. */ public void any(Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); fDocumentHandler.emptyElement(E_ANY, fAttributes, augs); } } // any(Augmentations)
/** Element reference in mixed or children content model. */ public void element(String name, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); fAttributes.addAttribute(A_NAME, "NMTOKEN", name); fAttributes.setSpecified(0, true); fDocumentHandler.emptyElement(E_ELEMENT, fAttributes, augs); } } // element(String,Augmentations)
/** Separator in mixed or children content model. */ public void separator(short type, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { String groupType = type == SEPARATOR_CHOICE ? "|" : ","; fAttributes.removeAllAttributes(); fAttributes.addAttribute(A_TYPE, "CDATA", groupType); fAttributes.setSpecified(0, true); fDocumentHandler.emptyElement(E_SEPARATOR, fAttributes, augs); } } // separator(short,Augmentations)
/** Occurrence count in mixed or children content model. */ public void occurrence(short type, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { String occurs = type == OCCURS_ONE_OR_MORE ? "+" : type == OCCURS_ZERO_OR_MORE ? "*" : type == OCCURS_ZERO_OR_ONE ? "?" : null; fAttributes.removeAllAttributes(); fAttributes.addAttribute(A_TYPE, "CDATA", occurs); fAttributes.setSpecified(0, true); fDocumentHandler.emptyElement(E_OCCURRENCE, fAttributes, augs); } } // occurrence(short,Augmentations)
/** * @see org.apache.xerces.xni.XMLDocumentHandler#emptyElement(org.apache.xerces.xni.QName, * org.apache.xerces.xni.XMLAttributes, * org.apache.xerces.xni.Augmentations) */ public void emptyElement(QName name, XMLAttributes atts, Augmentations arg2) throws XNIException { if (defaults != null) { context.pushContext(); } onStartElement(name, atts); if (documentHandler != null) { documentHandler.emptyElement(name, atts, arg2); } if (defaults != null) { context.popContext(); } }
/** Comment. */ public void comment(XMLString text, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); if (text.length > 0) { fDocumentHandler.startElement(E_COMMENT, fAttributes, augs); fDocumentHandler.characters(text, augs); fDocumentHandler.endElement(E_COMMENT, augs); } else { fDocumentHandler.emptyElement(E_COMMENT, fAttributes, augs); } } } // comment(XMLString,Augmentations)
/** Ignored characters. */ public void ignoredCharacters(XMLString text, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); if (text.length > 0) { fDocumentHandler.startElement(E_IGNORED_CHARACTERS, fAttributes, augs); fDocumentHandler.characters(text, augs); fDocumentHandler.endElement(E_IGNORED_CHARACTERS, augs); } else { fDocumentHandler.emptyElement(E_IGNORED_CHARACTERS, fAttributes, augs); } } } // ignoredCharacters(XMLString,Augmentations)
/** Element declaration. */ public void elementDecl(String ename, String model, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); fAttributes.addAttribute(A_ENAME, "NMTOKEN", ename); fAttributes.setSpecified(0, true); fAttributes.addAttribute(A_MODEL, "CDATA", model); fAttributes.setSpecified(1, true); fDocumentHandler.emptyElement(E_ELEMENT_DECL, fAttributes, augs); } } // elementDecl(String,String,Augmentations)
/** Text declaration. */ public void textDecl(String version, String encoding, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); if (version != null) { fAttributes.addAttribute(A_VERSION, "CDATA", version); fAttributes.setSpecified(0, true); } fAttributes.addAttribute(A_ENCODING, "CDATA", encoding); fAttributes.setSpecified(version!=null?1:0, true); fDocumentHandler.emptyElement(E_TEXT_DECL, fAttributes, augs); } } // textDecl(String,String,Augmentations)
/** Internal entity declaration. */ public void internalEntityDecl(String name, XMLString value, XMLString nonvalue, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); fAttributes.addAttribute(A_NAME, "NMTOKEN", name); fAttributes.setSpecified(0, true); fAttributes.addAttribute(A_VALUE, "CDATA", value.toString()); fAttributes.setSpecified(1, true); fDocumentHandler.emptyElement(E_INTERNAL_ENTITY_DECL, fAttributes, augs); } } // internalEntityDecl(String,XMLString,XMLString,Augmentations)
/** Processing instruction. */ public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException { if (fDocumentHandler != null) { fAttributes.removeAllAttributes(); fAttributes.addAttribute(A_TARGET, "NMTOKEN", target); fAttributes.setSpecified(0, true); fAttributes.addAttribute(A_DATA, "CDATA", data.toString()); fAttributes.setSpecified(1, true); fDocumentHandler.emptyElement(E_PROCESSING_INSTRUCTION, fAttributes, augs); } } // processingInstruction(String,XMLString,Augmentations)
fDocumentHandler.emptyElement(elem, attrs, augs);