com.ctc.wstx.api
Class ValidatorConfig

java.lang.Object
  extended by com.ctc.wstx.api.ValidatorConfig
All Implemented Interfaces:
XMLStreamProperties

public final class ValidatorConfig
extends Object


Field Summary
protected static String IMPL_NAME
           
protected static 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)
 
Fields inherited from interface org.codehaus.stax2.XMLStreamProperties
XSP_IMPLEMENTATION_NAME, XSP_IMPLEMENTATION_VERSION, XSP_NAMESPACE_AWARE, XSP_PROBLEM_REPORTER, XSP_SUPPORT_XMLID, XSP_SUPPORTS_XML11, XSP_V_XMLID_FULL, XSP_V_XMLID_NONE, XSP_V_XMLID_TYPING
 
Method Summary
static ValidatorConfig createDefaults()
           
 boolean doesSupportXml11()
           
 boolean doesSupportXmlId()
           
protected  int findPropertyId(String propName)
           
protected  int findStdPropertyId(String propName)
           
static String getImplName()
          Method used to figure out the official implementation name for input/output/validation factories.
static String getImplVersion()
          Method used to figure out the official implementation version for input/output/validation factories.
protected  Object getProperty(int id)
           
 Object getProperty(String propName)
           
protected  Object getStdProperty(int id)
           
 boolean isPropertySupported(String propName)
           
protected  void reportUnknownProperty(String propName)
           
 boolean returnNullForDefaultNamespace()
           
 Object safeGetProperty(String propName)
           
protected  boolean setProperty(String propName, int id, Object value)
           
 boolean setProperty(String propName, Object value)
           
protected  boolean setStdProperty(String propName, int id, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPL_NAME

protected static final String IMPL_NAME
See Also:
Constant Field Values

IMPL_VERSION

protected static final String IMPL_VERSION
This is "major.minor" version used for purposes of determining the feature set. Patch level is not included, since those should not affect API or feature set. Using applications should be prepared to take additional levels, however, just not depend on those being available.

See Also:
Constant Field Values

mReturnNullForDefaultNamespace

protected boolean mReturnNullForDefaultNamespace
As per [WSTX-277], can specify whether prefix for the "default namespace" is return as null (true) or empty String (false)

Method Detail

createDefaults

public static ValidatorConfig createDefaults()

findPropertyId

protected int findPropertyId(String propName)
Returns:
Internal enumerated int matching the String name of the property, if one found: -1 to indicate no match was found.

getProperty

protected Object getProperty(int id)

setProperty

protected boolean setProperty(String propName,
                              int id,
                              Object value)

getProperty

public Object getProperty(String propName)

isPropertySupported

public boolean isPropertySupported(String propName)

setProperty

public boolean setProperty(String propName,
                           Object value)
Returns:
True, if the specified property was successfully set to specified value; false if its value was not changed

reportUnknownProperty

protected void reportUnknownProperty(String propName)

safeGetProperty

public final Object safeGetProperty(String propName)

getImplName

public static String getImplName()
Method used to figure out the official implementation name for input/output/validation factories.


getImplVersion

public static String getImplVersion()
Method used to figure out the official implementation version for input/output/validation factories.


doesSupportXml11

public boolean doesSupportXml11()

doesSupportXmlId

public boolean doesSupportXmlId()

returnNullForDefaultNamespace

public boolean returnNullForDefaultNamespace()

findStdPropertyId

protected int findStdPropertyId(String propName)

setStdProperty

protected boolean setStdProperty(String propName,
                                 int id,
                                 Object value)
Parameters:
propName - Name of standard property to set
id - Internal id matching the name
value - Value to set the standard property to

getStdProperty

protected Object getStdProperty(int id)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.