protected void reportProblem(String msg, Location loc) throws XMLStreamException { throw new WstxParsingException(msg, loc); } }
protected void throwStreamException(String msg, Location loc) throws XMLStreamException { if (loc == null) { throw new WstxParsingException(msg); } throw new WstxParsingException(msg, loc); } }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected WstxException constructWfcException(String msg) { return new WstxParsingException(msg, getLastCharLocation()); }
private final void reportPseudoAttrProblem(String attrName, String got, String expVal1, String expVal2) throws WstxException { String expStr = (expVal1 == null) ? "" : ("; expected \""+expVal1+"\" or \""+expVal2+"\""); if (got == null || got.length() == 0) { throw new WstxParsingException("Missing XML pseudo-attribute '"+attrName+"' value"+expStr, getLocation()); } throw new WstxParsingException("Invalid XML pseudo-attribute '"+attrName+"' value "+got+expStr, getLocation()); } }
public static void throwElementException(DTDElement oldElem, Location loc) throws XMLStreamException { throw new WstxParsingException (MessageFormat.format(ErrorConsts.ERR_DTD_ELEM_REDEFD, new Object[] { oldElem.getDisplayName(), oldElem.getLocation().toString() }), loc); }
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl) throws XMLStreamException { throw new WstxParsingException (MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD, new Object[] { newDecl.getName(), oldDecl.getLocation().toString()}), newDecl.getLocation()); }
protected void reportProblem(String msg, Location loc) throws XMLStreamException { if (loc == null) { throw new WstxParsingException(msg); } throw new WstxParsingException(msg, loc); }
protected void throwParseError(String msg, Location loc) throws XMLStreamException { throw new WstxParsingException(msg, loc); } }
protected void reportProblem(String msg, Location loc) throws XMLStreamException { throw new WstxParsingException(msg, loc); } }
@Override protected void throwStreamException(String msg, Location loc) throws XMLStreamException { if (loc == null) { throw new WstxParsingException(msg); } throw new WstxParsingException(msg, loc); } }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
private void throwParseError(String msg) throws WstxParsingException { throw new WstxParsingException(msg, getLastCharLocation()); }
protected void reportXmlProblem(String msg) throws WstxException { throw new WstxParsingException(msg, getLocation()); }
public static void throwElementException(DTDElement oldElem, Location loc) throws XMLStreamException { throw new WstxParsingException (MessageFormat.format(ErrorConsts.ERR_DTD_ELEM_REDEFD, new Object[] { oldElem.getDisplayName(), oldElem.getLocation().toString() }), loc); }
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl) throws XMLStreamException { throw new WstxParsingException (MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD, new Object[] { newDecl.getName(), oldDecl.getLocation().toString()}), newDecl.getLocation()); }
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl) throws XMLStreamException { throw new WstxParsingException (MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD, new Object[] { newDecl.getName(), oldDecl.getLocation().toString()}), newDecl.getLocation()); }
public static void throwNotationException(NotationDecl oldDecl, NotationDecl newDecl) throws XMLStreamException { throw new WstxParsingException (MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD, new Object[] { newDecl.getName(), oldDecl.getLocation().toString()}), newDecl.getLocation()); }