protected void writeStartOrEmpty(String prefix, String localName, String nsURI) throws XMLStreamException { checkStartElement(localName, prefix); if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, prefix); } if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(prefix, localName, nsURI); } doWriteStartTag(prefix, localName); }
protected void writeStartOrEmpty(String localName, String nsURI) throws XMLStreamException { // Need a prefix... String prefix = mCurrElem.getPrefix(nsURI); if (prefix == null) { throw new XMLStreamException("Unbound namespace URI '"+nsURI+"'"); } checkStartElement(localName, prefix); if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, prefix); } if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(prefix, localName, nsURI); } doWriteStartTag(prefix, localName); }
/** * This method is assumed to just use default namespace (if any), * and no further checks should be done. */ public void writeStartElement(String localName) throws XMLStreamException { checkStartElement(localName, null); if (mValidator != null) { mValidator.validateElementStart(localName, XmlConsts.ELEM_NO_NS_URI, XmlConsts.ELEM_NO_PREFIX); } mEmptyElement = false; if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, localName); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(localName); } doWriteStartTag(localName); }
/** *<p> * Note: It is assumed caller just wants the element to belong to whatever * is the current default namespace. */ public void writeEmptyElement(String localName) throws XMLStreamException { checkStartElement(localName, null); if (mValidator != null) { mValidator.validateElementStart(localName, XmlConsts.ELEM_NO_NS_URI, XmlConsts.ELEM_NO_PREFIX); } mEmptyElement = true; if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, localName); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(localName); } doWriteStartTag(localName); }
mValidator.validateElementStart(localName, nsURI, prefix); prefix = generateElemPrefix(null, nsURI, mCurrElem); if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, prefix);
mValidator.validateElementStart(localName, XmlConsts.ELEM_NO_NS_URI, XmlConsts.ELEM_NO_PREFIX);
public void validateElementStart(String localName, String uri, String prefix) throws XMLValidationException { mFirst.validateElementStart(localName, uri, prefix); mSecond.validateElementStart(localName, uri, prefix); }
public void validateElementStart(String localName, String uri, String prefix) throws XMLValidationException { mFirst.validateElementStart(localName, uri, prefix); mSecond.validateElementStart(localName, uri, prefix); }
public void validateElementStart(String localName, String uri, String prefix) throws XMLValidationException { mFirst.validateElementStart(localName, uri, prefix); mSecond.validateElementStart(localName, uri, prefix); }
public void validateElementStart(String localName, String uri, String prefix) throws XMLStreamException { mFirst.validateElementStart(localName, uri, prefix); mSecond.validateElementStart(localName, uri, prefix); }
if (actPrefix != null) { // fine, an existing binding we can use: if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, actPrefix); mValidator.validateElementStart(localName, nsURI, actPrefix);
vld.validateElementStart (mCurrElement.mLocalName, mCurrElement.mNamespaceURI, mCurrElement.mPrefix);
/** * It is assumed here that caller actually wants whatever is the * default namespace (or it is used in "non-namespace" mode, where * no namespaces are bound ever). As such we do not have to * distinguish between repairing and non-repairing modes. */ @Override public void writeEmptyElement(String localName) throws XMLStreamException { _verifyStartElement(null, localName); WName name = _symbols.findSymbol(localName); if (_validator != null) { _validator.validateElementStart(localName, "", ""); } _writeStartTag(name, true); }
/** * It is assumed here that caller actually wants whatever is the * default namespace (or it is used in "non-namespace" mode, where * no namespaces are bound ever). As such we do not have to * distinguish between repairing and non-repairing modes. */ @Override public void writeEmptyElement(String localName) throws XMLStreamException { _verifyStartElement(null, localName); WName name = _symbols.findSymbol(localName); if (_validator != null) { _validator.validateElementStart(localName, "", ""); } _writeStartTag(name, true); }
/** * It is assumed here that caller actually wants whatever is the * default namespace (or it is used in "non-namespace" mode, where * no namespaces are bound ever). As such we do not have to * distinguish between repairing and non-repairing modes. */ @Override public void writeStartElement(String localName) throws XMLStreamException { _verifyStartElement(null, localName); WName name = _symbols.findSymbol(localName); if (_validator != null) { _validator.validateElementStart(localName, "", ""); } _writeStartTag(name, false); }
/** * It is assumed here that caller actually wants whatever is the * default namespace (or it is used in "non-namespace" mode, where * no namespaces are bound ever). As such we do not have to * distinguish between repairing and non-repairing modes. */ @Override public void writeStartElement(String localName) throws XMLStreamException { _verifyStartElement(null, localName); WName name = _symbols.findSymbol(localName); if (_validator != null) { _validator.validateElementStart(localName, "", ""); } _writeStartTag(name, false); }
protected void writeStartOrEmpty(String prefix, String localName, String nsURI) throws XMLStreamException { checkStartElement(localName, prefix); if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, prefix); } if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(prefix, localName, nsURI); } doWriteStartTag(prefix, localName); }
protected void writeStartOrEmpty(String prefix, String localName, String nsURI) throws XMLStreamException { checkStartElement(localName, prefix); if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, prefix); } if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(prefix, localName, nsURI); } doWriteStartTag(prefix, localName); }
protected void writeStartOrEmpty(String prefix, String localName, String nsURI) throws XMLStreamException { checkStartElement(localName, prefix); if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, prefix); } if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(prefix, localName, nsURI); } doWriteStartTag(prefix, localName); }
protected void writeStartOrEmpty(String prefix, String localName, String nsURI) throws XMLStreamException { checkStartElement(localName, prefix); if (mValidator != null) { mValidator.validateElementStart(localName, nsURI, prefix); } if (mOutputElemPool != null) { SimpleOutputElement newCurr = mOutputElemPool; mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI); --mPoolSize; mCurrElem = newCurr; } else { mCurrElem = mCurrElem.createChild(prefix, localName, nsURI); } doWriteStartTag(prefix, localName); }