Refine search
/** * This implementation throws a {@code SAXNotRecognizedException} exception * for any feature outside of the "http://xml.org/sax/features/" namespace * and accepts a {@code false} value for any feature within. */ @Override public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.startsWith("http://xml.org/sax/features/")) { if (value) { throw new SAXNotSupportedException(name); } } else { throw new SAXNotRecognizedException(name); } }
/** * This implementation throws a {@code SAXNotRecognizedException} exception * for any feature outside of the "http://xml.org/sax/features/" namespace * and accepts a {@code false} value for any feature within. */ @Override public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.startsWith("http://xml.org/sax/features/")) { if (value) { throw new SAXNotSupportedException(name); } } else { throw new SAXNotRecognizedException(name); } }
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException("name == null"); } if (name.equals(LEXICAL_HANDLER_PROPERTY)) { // The object must implement LexicalHandler if (value instanceof LexicalHandler || value == null) { this.lexicalHandler = (LexicalHandler) value; return; } throw new SAXNotSupportedException("value doesn't implement " + "org.xml.sax.ext.LexicalHandler"); } throw new SAXNotRecognizedException(name); }
|| name.equals(Feature.EXTERNAL_PARAMETER_ENTITIES)) { if (value) { throw new SAXNotSupportedException("Cannot enable " + name); } else { throw new SAXNotSupportedException("Cannot disable " + name); throw new SAXNotRecognizedException(name);
if (name.equals(CONFIGURED_XSTREAM_PROPERTY)) { if (!(value instanceof XStream)) { throw new SAXNotSupportedException("Value for property \"" + CONFIGURED_XSTREAM_PROPERTY + "\" must be a non-null XStream object"); throw new SAXNotSupportedException("Value for property \"" + SOURCE_OBJECT_LIST_PROPERTY + "\" shall not be an empty list"); throw new SAXNotSupportedException("Value for property \"" + SOURCE_OBJECT_LIST_PROPERTY + "\" must be a non-null List object"); throw new SAXNotRecognizedException(name);
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { SAXProperty prop = SAXProperty.findByUri(name); if (prop == SAXProperty.DECLARATION_HANDLER) { mDeclHandler = (DeclHandler) value; return; } else if (prop == SAXProperty.DOCUMENT_XML_VERSION) { ; // read-only } else if (prop == SAXProperty.DOM_NODE) { ; // read-only } else if (prop == SAXProperty.LEXICAL_HANDLER) { mLexicalHandler = (LexicalHandler) value; return; } else if (prop == SAXProperty.XML_STRING) { ; // read-only } else { throw new SAXNotRecognizedException("Property '"+name+"' not recognized"); } // Trying to modify read-only properties? throw new SAXNotSupportedException("Property '"+name+"' is read-only, can not be modified"); }
if (value != true) { throw new SAXNotSupportedException(name); } else { throw new SAXNotRecognizedException(name);
readOnly = true; } else { throw new SAXNotRecognizedException("Feature '"+name+"' not recognized"); throw new SAXNotSupportedException("Feature '"+name+"' is read-only, can not be modified"); throw new SAXNotSupportedException("Trying to set invalid value for feature '"+name+"', '"+value+"'");
readOnly = true; } else { throw new SAXNotRecognizedException("Feature '"+name+"' not recognized"); throw new SAXNotSupportedException("Feature '"+name+"' is read-only, can not be modified"); throw new SAXNotSupportedException("Trying to set invalid value for feature '"+name+"', '"+value+"'");
/** * This implementation throws a {@code SAXNotRecognizedException} exception * for any feature outside of the "http://xml.org/sax/features/" namespace * and accepts a {@code false} value for any feature within. */ @Override public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.startsWith("http://xml.org/sax/features/")) { if (value) { throw new SAXNotSupportedException(name); } } else { throw new SAXNotRecognizedException(name); } }
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if(name.equals("http://xml.org/sax/features/namespaces") || name.equals("http://xml.org/sax/features/namespace-prefixes")) { if(!value) { throw new SAXNotSupportedException("The feature " + name + " cannot be disabled."); } } else { throw new SAXNotRecognizedException("Unknown feature: " + name); } }
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if(name.equals("http://xml.org/sax/features/namespaces") || name.equals("http://xml.org/sax/features/namespace-prefixes")) { if(!value) { throw new SAXNotSupportedException("The feature " + name + " cannot be disabled."); } } else { throw new SAXNotRecognizedException("Unknown feature: " + name); } }
/** * This implementation throws a {@code SAXNotRecognizedException} exception * for any feature outside of the "http://xml.org/sax/features/" namespace * and accepts a {@code false} value for any feature within. */ @Override public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.startsWith("http://xml.org/sax/features/")) { if (value) { throw new SAXNotSupportedException(name); } } else { throw new SAXNotRecognizedException(name); } }
@Override public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (FEATURE_NAMESPACES.equals(name)) { if (!value) { throw new SAXNotSupportedException(); } } else if (FEATURE_NAMESPACE_PREFIXES.equals(name)) { if (value) { throw new SAXNotSupportedException(); } } else if (FEATURE_WRAP_TEXT.equals(name)) { this.wrapText = value; } else { throw new SAXNotRecognizedException("Feature " + name); } }
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException("name == null"); } if (name.equals(LEXICAL_HANDLER_PROPERTY)) { // The object must implement LexicalHandler if (value instanceof LexicalHandler || value == null) { this.lexicalHandler = (LexicalHandler) value; return; } throw new SAXNotSupportedException("value doesn't implement " + "org.xml.sax.ext.LexicalHandler"); } throw new SAXNotRecognizedException(name); }
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException("name == null"); } if (name.equals(LEXICAL_HANDLER_PROPERTY)) { // The object must implement LexicalHandler if (value instanceof LexicalHandler || value == null) { this.lexicalHandler = (LexicalHandler) value; return; } throw new SAXNotSupportedException("value doesn't implement " + "org.xml.sax.ext.LexicalHandler"); } throw new SAXNotRecognizedException(name); }
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException("name == null"); } if (name.equals(LEXICAL_HANDLER_PROPERTY)) { // The object must implement LexicalHandler if (value instanceof LexicalHandler || value == null) { this.lexicalHandler = (LexicalHandler) value; return; } throw new SAXNotSupportedException("value doesn't implement " + "org.xml.sax.ext.LexicalHandler"); } throw new SAXNotRecognizedException(name); }
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException("name == null"); } if (name.equals(LEXICAL_HANDLER_PROPERTY)) { // The object must implement LexicalHandler if (value instanceof LexicalHandler || value == null) { this.lexicalHandler = (LexicalHandler) value; return; } throw new SAXNotSupportedException("value doesn't implement " + "org.xml.sax.ext.LexicalHandler"); } throw new SAXNotRecognizedException(name); }
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException("name == null"); } if (name.equals(LEXICAL_HANDLER_PROPERTY)) { // The object must implement LexicalHandler if (value instanceof LexicalHandler || value == null) { this.lexicalHandler = (LexicalHandler) value; return; } throw new SAXNotSupportedException("value doesn't implement " + "org.xml.sax.ext.LexicalHandler"); } throw new SAXNotRecognizedException(name); }
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { throw new NullPointerException("name == null"); } if (name.equals(LEXICAL_HANDLER_PROPERTY)) { // The object must implement LexicalHandler if (value instanceof LexicalHandler || value == null) { this.lexicalHandler = (LexicalHandler) value; return; } throw new SAXNotSupportedException("value doesn't implement " + "org.xml.sax.ext.LexicalHandler"); } throw new SAXNotRecognizedException(name); }