/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
throwOutputError(ErrorConsts.ERR_NS_REDECL_XML, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XML_URI, prefix); } else if (uri.equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS_URI, prefix); throwOutputError(ErrorConsts.ERR_NS_EMPTY);
protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ @Override public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ @Override public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
/** *<p> * Note: Root namespace context works best if automatic prefix * creation ("namespace/prefix repairing" in StAX lingo) is enabled. */ @Override public void setNamespaceContext(NamespaceContext ctxt) throws XMLStreamException { // This is only allowed before root element output: if (mState != STATE_PROLOG) { throwOutputError("Called setNamespaceContext() after having already output root element."); } mRootNsContext = ctxt; mCurrElem.setRootNsContext(ctxt); }
throwOutputError(ErrorConsts.ERR_NS_REDECL_XML, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XML_URI, prefix); } else if (uri.equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS_URI, prefix); throwOutputError(ErrorConsts.ERR_NS_EMPTY);
throwOutputError(ErrorConsts.ERR_NS_REDECL_XML, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XML_URI, prefix); } else if (uri.equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS_URI, prefix); throwOutputError(ErrorConsts.ERR_NS_EMPTY);
throwOutputError(ErrorConsts.ERR_NS_REDECL_XML, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XML_URI, prefix); } else if (uri.equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS_URI, prefix); throwOutputError(ErrorConsts.ERR_NS_EMPTY);
throwOutputError(ErrorConsts.ERR_NS_REDECL_XML, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XML_URI, prefix); } else if (uri.equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS_URI, prefix); throwOutputError(ErrorConsts.ERR_NS_EMPTY);
throwOutputError(ErrorConsts.ERR_NS_REDECL_XML, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XML_URI, prefix); } else if (uri.equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS_URI, prefix); throwOutputError(ErrorConsts.ERR_NS_EMPTY);
throwOutputError(ErrorConsts.ERR_NS_REDECL_XML, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS, uri); throwOutputError(ErrorConsts.ERR_NS_REDECL_XML_URI, prefix); } else if (uri.equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { throwOutputError(ErrorConsts.ERR_NS_REDECL_XMLNS_URI, prefix); throwOutputError(ErrorConsts.ERR_NS_EMPTY);
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }
protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { if (!mStartElementOpen) { throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // still need to ensure no duplicate attrs? mCurrElem.checkAttrWrite(nsURI, localName); } try { if (mValidator == null) { if (prefix == null || prefix.length() == 0) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(prefix, localName, enc); } } else { mWriter.writeTypedAttribute (prefix, localName, nsURI, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throw new WstxIOException(ioe); } }