Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl

public Class PropertyManager

extends Object
Class Inheritance
Imports
com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager, com.sun.xml.internal.stream.StaxEntityResolverWrapper, java.util.HashMap, javax.xml.XMLConstants, javax.xml.catalog.CatalogFeatures, javax.xml.stream.XMLInputFactory, .XMLOutputFactory, .XMLResolver, jdk.xml.internal.JdkConstants, .JdkProperty, .JdkXmlUtils, .XMLSecurityManager

This class manages the properties for the Stax specification and its implementation. A PropertyManager object can be constructed based on the context or initialized with another PropertyManager object.
Authors
Neeraj Bajaj, K Venugopal, Sunitha Reddy

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
private XMLSecurityManager
private XMLSecurityPropertyManager
private static final String
SECURITY_MANAGER

Property identifier: Security manager.

public static final String
public static final String
private static final String
pack-priv HashMap<String, Object>
private static final String
XML_SECURITY_PROPERTY_MANAGER

Property identifier: Security property manager.

Constructor Summary

AccessConstructor and Description
public
PropertyManager(int
a flag indicating the context: for a reader or writer.
context
)

Creates a new instance of the PropertyManager based on the context.

public
PropertyManager(PropertyManager
another PropertyManager object
propertyManager
)

Initializes the object with the properties of another PropertyManager object.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the property is managed by the PropertyManager, false otherwise
containsProperty
(String
the name of a property
property
)

Checks whether a property is managed by the PropertyManager.

private HashMap<String, Object>
public Object

Returns:

the value of a property
getProperty
(String
the name of the property
property
)

Returns the value of a property.

private void
initConfigurableReaderProperties()

Initializes reader properties.

private void
initWriterProps()

Initializes writer properties.

public void
setProperty(String
the name of the property
property
,
Object
the value of the property
value
)

Sets a property value.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

CONTEXT_READERback to summary
public static final int CONTEXT_READER
CONTEXT_WRITERback to summary
public static final int CONTEXT_WRITER
fSecurityManagerback to summary
private XMLSecurityManager fSecurityManager
fSecurityPropertyMgrback to summary
private XMLSecurityPropertyManager fSecurityPropertyMgr
SECURITY_MANAGERback to summary
private static final String SECURITY_MANAGER

Property identifier: Security manager.

STAX_ENTITIESback to summary
public static final String STAX_ENTITIES
STAX_NOTATIONSback to summary
public static final String STAX_NOTATIONS
STRING_INTERNINGback to summary
private static final String STRING_INTERNING
supportedPropsback to summary
pack-priv HashMap<String, Object> supportedProps
XML_SECURITY_PROPERTY_MANAGERback to summary
private static final String XML_SECURITY_PROPERTY_MANAGER

Property identifier: Security property manager.

Constructor Detail

PropertyManagerback to summary
public PropertyManager(int context)

Creates a new instance of the PropertyManager based on the context.

Parameters
context:int

a flag indicating the context: for a reader or writer.

PropertyManagerback to summary
public PropertyManager(PropertyManager propertyManager)

Initializes the object with the properties of another PropertyManager object.

Parameters
propertyManager:PropertyManager

another PropertyManager object

Method Detail

containsPropertyback to summary
public boolean containsProperty(String property)

Checks whether a property is managed by the PropertyManager.

Parameters
property:String

the name of a property

Returns:boolean

true if the property is managed by the PropertyManager, false otherwise

getPropertiesback to summary
private HashMap<String, Object> getProperties()
getPropertyback to summary
public Object getProperty(String property)

Returns the value of a property.

Parameters
property:String

the name of the property

Returns:Object

the value of a property

initConfigurableReaderPropertiesback to summary
private void initConfigurableReaderProperties()

Initializes reader properties.

Implementation Note

StAX defined namespace rather than Xerces' should be used.

initWriterPropsback to summary
private void initWriterProps()

Initializes writer properties.

setPropertyback to summary
public void setProperty(String property, Object value)

Sets a property value.

Parameters
property:String

the name of the property

value:Object

the value of the property

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override