APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.xml.internal

public abstract Class FeaturePropertyBase

extends Object
Class Inheritance
Known Direct Subclasses
jdk.xml.internal.XMLSecurityPropertyManager

This is the base class for features and properties

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
FeaturePropertyBase.State

States of the settings of a property, in the order: default value, value set by FEATURE_SECURE_PROCESSING, jaxp.properties file, jaxp system properties, and jaxp api properties

Field Summary

Modifier and TypeField and Description
pack-priv FeaturePropertyBase.State[]
states

States of the settings for each property in Properties above

pack-priv String[]
values

Values of the properties as defined in enum Properties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract int

Returns:

the index of the property if found; return -1 if not
getIndex
(String
property name
propertyName
)

Get the index by property name

public <E extends Enum<E>> int
getIndex(Class<E> property, String propertyName)

pack-priv boolean

Returns:

true if the property is read successfully from the JAXP Config, false otherwise.
getPropertyConfig
(Enum<?>
the property
property
,
String
the name of the system property
sysPropertyName
)

Reads the property from the JAXP Configuration File.

pack-priv boolean
getSystemProperty(Enum<?>
the property
property
,
String
the name of the system property
systemProperty
)

Reads the system property, and sets the value if successful.

public String

Returns:

the value of the property
getValue
(Enum<?>
the property
property
)

Return the value of the specified property

public String

Returns:

the value of the property
getValue
(String
the property
property
)

Return the value of the specified property

public String

Returns:

the value of the property as a string. If a property is managed by this manager, its value shall not be null.
getValueAsString
(String
the property name
propertyName
)

Return the value of the specified property.

public String

Returns:

value of a property
getValueByIndex
(int
the index of a property
index
)

Return the value of a property by its ordinal

public void
setValue(Enum<?>
the property
property
,
FeaturePropertyBase.State
the state of the property
state
,
String
the value of the property
value
)

Set the value for a specific property.

public void
setValue(int
the index of the property
index
,
FeaturePropertyBase.State
the state of the property
state
,
String
the value of the property
value
)

Set the value of a property by its index

public boolean

Returns:

true if the property is managed by the security property manager; false if otherwise.
setValue
(String
property name
propertyName
,
FeaturePropertyBase.State
the state of the property
state
,
Object
the value of the property
value
)

Set value by property name and state

public boolean

Returns:

true if the property is managed by the security property manager; false if otherwise.
setValue
(String
property name
propertyName
,
FeaturePropertyBase.State
the state of the property
state
,
boolean
the value of the property
value
)

Set value by property name and state

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

statesback to summary
pack-priv FeaturePropertyBase.State[] states

States of the settings for each property in Properties above

valuesback to summary
pack-priv String[] values

Values of the properties as defined in enum Properties

Constructor Detail

FeaturePropertyBaseback to summary
public FeaturePropertyBase()

Method Detail

getIndexback to summary
public abstract int getIndex(String propertyName)

Get the index by property name

Parameters
propertyName:String

property name

Returns:int

the index of the property if found; return -1 if not

getIndexback to summary
public <E extends Enum<E>> int getIndex(Class<E> property, String propertyName)
getPropertyConfigback to summary
pack-priv boolean getPropertyConfig(Enum<?> property, String sysPropertyName)

Reads the property from the JAXP Configuration File.

Parameters
property:Enum<?>

the property

sysPropertyName:String

the name of the system property

Returns:boolean

true if the property is read successfully from the JAXP Config, false otherwise.

getSystemPropertyback to summary
pack-priv boolean getSystemProperty(Enum<?> property, String systemProperty)

Reads the system property, and sets the value if successful.

Parameters
property:Enum<?>

the property

systemProperty:String

the name of the system property

getValueback to summary
public String getValue(Enum<?> property)

Return the value of the specified property

Parameters
property:Enum<?>

the property

Returns:String

the value of the property

getValueback to summary
public String getValue(String property)

Return the value of the specified property

Parameters
property:String

the property

Returns:String

the value of the property

getValueAsStringback to summary
public String getValueAsString(String propertyName)

Return the value of the specified property.

Parameters
propertyName:String

the property name

Returns:String

the value of the property as a string. If a property is managed by this manager, its value shall not be null.

getValueByIndexback to summary
public String getValueByIndex(int index)

Return the value of a property by its ordinal

Parameters
index:int

the index of a property

Returns:String

value of a property

setValueback to summary
public void setValue(Enum<?> property, FeaturePropertyBase.State state, String value)

Set the value for a specific property.

Parameters
property:Enum<?>

the property

state:FeaturePropertyBase.State

the state of the property

value:String

the value of the property

setValueback to summary
public void setValue(int index, FeaturePropertyBase.State state, String value)

Set the value of a property by its index

Parameters
index:int

the index of the property

state:FeaturePropertyBase.State

the state of the property

value:String

the value of the property

setValueback to summary
public boolean setValue(String propertyName, FeaturePropertyBase.State state, Object value)

Set value by property name and state

Parameters
propertyName:String

property name

state:FeaturePropertyBase.State

the state of the property

value:Object

the value of the property

Returns:boolean

true if the property is managed by the security property manager; false if otherwise.

setValueback to summary
public boolean setValue(String propertyName, FeaturePropertyBase.State state, boolean value)

Set value by property name and state

Parameters
propertyName:String

property name

state:FeaturePropertyBase.State

the state of the property

value:boolean

the value of the property

Returns:boolean

true if the property is managed by the security property manager; false if otherwise.

jdk.xml.internal back to summary

public final Enum FeaturePropertyBase.State

extends Enum<FeaturePropertyBase.State>
Class Inheritance

States of the settings of a property, in the order: default value, value set by FEATURE_SECURE_PROCESSING, jaxp.properties file, jaxp system properties, and jaxp api properties

Field Summary

Modifier and TypeField and Description
public static final FeaturePropertyBase.State
public static final FeaturePropertyBase.State
public static final FeaturePropertyBase.State
public static final FeaturePropertyBase.State
public static final FeaturePropertyBase.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FeaturePropertyBase.State
public static FeaturePropertyBase.State[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

APIPROPERTYback to summary
public static final FeaturePropertyBase.State APIPROPERTY
DEFAULTback to summary
public static final FeaturePropertyBase.State DEFAULT
FSPback to summary
public static final FeaturePropertyBase.State FSP
JAXPDOTPROPERTIESback to summary
public static final FeaturePropertyBase.State JAXPDOTPROPERTIES
SYSTEMPROPERTYback to summary
public static final FeaturePropertyBase.State SYSTEMPROPERTY

Constructor Detail

Stateback to summary
private State()

Method Detail

valueOfback to summary
public static FeaturePropertyBase.State valueOf(String name)
valuesback to summary
public static FeaturePropertyBase.State[] values()