abstract class CommonConfig
extends java.lang.Object
implements org.codehaus.stax2.XMLStreamProperties
XMLInputFactory
,
XMLOutputFactory
and
XMLValidationSchemaFactory
.
Implements basic settings for some shared settings, defined by the
shared property interface XMLStreamProperties
.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
IMPL_NAME |
protected static java.lang.String |
IMPL_VERSION
This is "major.minor" version used for purposes of determining
the feature set.
|
protected boolean |
mReturnNullForDefaultNamespace
As per [WSTX-277], can specify whether prefix for the
"default namespace" is return as null (true) or empty String (false)
|
(package private) static int |
PROP_IMPL_NAME |
(package private) static int |
PROP_IMPL_VERSION |
(package private) static int |
PROP_RETURN_NULL_FOR_DEFAULT_NAMESPACE |
(package private) static int |
PROP_SUPPORT_XMLID |
(package private) static int |
PROP_SUPPORTS_XML11 |
(package private) static java.util.HashMap<java.lang.String,java.lang.Integer> |
sStdProperties
Map to use for converting from String property ids to enumeration
(ints).
|
Modifier | Constructor and Description |
---|---|
protected |
CommonConfig(CommonConfig base)
Constructor used by sub-classes
|
Modifier and Type | Method and Description |
---|---|
boolean |
doesSupportXml11() |
boolean |
doesSupportXmlId() |
protected abstract int |
findPropertyId(java.lang.String propName) |
protected int |
findStdPropertyId(java.lang.String propName) |
static java.lang.String |
getImplName()
Method used to figure out the official implementation name
for input/output/validation factories.
|
static java.lang.String |
getImplVersion()
Method used to figure out the official implementation version
for input/output/validation factories.
|
protected abstract java.lang.Object |
getProperty(int id) |
java.lang.Object |
getProperty(java.lang.String propName) |
protected java.lang.Object |
getStdProperty(int id) |
boolean |
isPropertySupported(java.lang.String propName) |
protected void |
reportUnknownProperty(java.lang.String propName) |
boolean |
returnNullForDefaultNamespace() |
java.lang.Object |
safeGetProperty(java.lang.String propName) |
protected abstract boolean |
setProperty(java.lang.String propName,
int id,
java.lang.Object value) |
boolean |
setProperty(java.lang.String propName,
java.lang.Object value) |
protected boolean |
setStdProperty(java.lang.String propName,
int id,
java.lang.Object value) |
protected static final java.lang.String IMPL_NAME
protected static final java.lang.String IMPL_VERSION
static final int PROP_IMPL_NAME
static final int PROP_IMPL_VERSION
static final int PROP_SUPPORTS_XML11
static final int PROP_SUPPORT_XMLID
static final int PROP_RETURN_NULL_FOR_DEFAULT_NAMESPACE
static final java.util.HashMap<java.lang.String,java.lang.Integer> sStdProperties
protected boolean mReturnNullForDefaultNamespace
protected CommonConfig(CommonConfig base)
base
- Base instance to copy settings from, if any; null for
'root' configuration objects.public java.lang.Object getProperty(java.lang.String propName)
public boolean isPropertySupported(java.lang.String propName)
public boolean setProperty(java.lang.String propName, java.lang.Object value)
protected void reportUnknownProperty(java.lang.String propName)
public final java.lang.Object safeGetProperty(java.lang.String propName)
public static java.lang.String getImplName()
public static java.lang.String getImplVersion()
protected abstract int findPropertyId(java.lang.String propName)
public boolean doesSupportXml11()
public boolean doesSupportXmlId()
public boolean returnNullForDefaultNamespace()
protected abstract java.lang.Object getProperty(int id)
protected abstract boolean setProperty(java.lang.String propName, int id, java.lang.Object value)
protected int findStdPropertyId(java.lang.String propName)
protected boolean setStdProperty(java.lang.String propName, int id, java.lang.Object value)
propName
- Name of standard property to setid
- Internal id matching the namevalue
- Value to set the standard property toprotected java.lang.Object getStdProperty(int id)