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

public final Class JdkProperty<T>

extends Object
Class Inheritance
Type Parameters
<T>
the type of the property value.
Static Imports
jdk.xml.internal.JdkConstants.FQ_IS_STANDALONE, .JdkConstants.JDK_DEBUG_LIMIT, .JdkConstants.JDK_ENTITY_COUNT_INFO, .JdkConstants.JDK_EXTENSION_CLASSLOADER, .JdkConstants.JDK_EXT_CLASSLOADER, .JdkConstants.JDK_IS_STANDALONE, .JdkConstants.ORACLE_IS_STANDALONE, .JdkConstants.SP_IS_STANDALONE, .JdkConstants.SP_XSLTC_IS_STANDALONE, .JdkConstants.ORACLE_ENABLE_EXTENSION_FUNCTION, .JdkConstants.ORACLE_FEATURE_SERVICE_MECHANISM, .JdkConstants.SP_ENABLE_EXTENSION_FUNCTION, .JdkConstants.SP_ENABLE_EXTENSION_FUNCTION_SPEC, .JdkConstants.CDATA_CHUNK_SIZE, .JdkConstants.OVERRIDE_PARSER, .JdkConstants.RESET_SYMBOL_TABLE

Represents a JDK Implementation Specific Property. This class holds the name and value of a property along with a state indicating the means through which the property has been set. The value may change only if the setter has a state that represents an equal or higher overriding order.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
JdkProperty.ImplPropMap

Properties Name Map that includes Implementation-Specific Features and Properties except the limits that are defined in XMLSecurityManager.

public static enum
JdkProperty.State

Represents the state of the settings of a property.

Field Summary

Modifier and TypeField and Description
private final JdkProperty.ImplPropMap
private JdkProperty.State
private final Class<T>
private T

Constructor Summary

AccessConstructor and Description
public
JdkProperty(JdkProperty.ImplPropMap
the name of the property
name
,
Class<T>
the type of the value
type
,
T
the initial value
value
,
JdkProperty.State
the state of the property
state
)

Constructs a JDkProperty.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the property value
getValue
()

Returns the property value.

private void
readSystemProperty()

Read from system properties, or those in jaxp.properties

public boolean

Returns:

true if the value is set successfully (because the setter has a higher order); false otherwise.
setValue
(String
the property name
name
,
T
the value
value
,
JdkProperty.State
the state of the specified property
state
)

Sets the property value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pNameback to summary
private final JdkProperty.ImplPropMap pName
pStateback to summary
private JdkProperty.State pState
pTypeback to summary
private final Class<T> pType
pValueback to summary
private T pValue

Constructor Detail

JdkPropertyback to summary
public JdkProperty(JdkProperty.ImplPropMap name, Class<T> type, T value, JdkProperty.State state)

Constructs a JDkProperty.

Parameters
name:JdkProperty.ImplPropMap

the name of the property

type:Class<T>

the type of the value

value:T

the initial value

state:JdkProperty.State

the state of the property

Method Detail

getValueback to summary
public T getValue()

Returns the property value.

Returns:T

the property value

readSystemPropertyback to summary
private void readSystemProperty()

Read from system properties, or those in jaxp.properties

setValueback to summary
public boolean setValue(String name, T value, JdkProperty.State state)

Sets the property value. The value is set only if the setter has a higher overriding order.

Parameters
name:String

the property name

value:T

the value

state:JdkProperty.State

the state of the specified property

Returns:boolean

true if the value is set successfully (because the setter has a higher order); false otherwise.

jdk.xml.internal back to summary

public final Enum JdkProperty.ImplPropMap

extends Enum<JdkProperty.ImplPropMap>
Class Inheritance
Annotations
@SuppressWarnings:deprecation

Properties Name Map that includes Implementation-Specific Features and Properties except the limits that are defined in XMLSecurityManager. The purpose of the map is to provide a map between the new property names with a prefix "jdk.xml" as defined in the module summary and legacy names with URL style prefixes. The new names are the same as those of their System Properties.

Field Summary

Modifier and TypeField and Description
public static final JdkProperty.ImplPropMap
private final boolean
public static final JdkProperty.ImplPropMap
public static final JdkProperty.ImplPropMap
public static final JdkProperty.ImplPropMap
public static final JdkProperty.ImplPropMap
private final String
private final String
private final String
public static final JdkProperty.ImplPropMap
private final String
public static final JdkProperty.ImplPropMap
private final String
public static final JdkProperty.ImplPropMap

Constructor Summary

AccessConstructor and Description
private
ImplPropMap(String
the property name
name
,
String
the qualified property name
qName
,
String
the corresponding System Property
spName
,
boolean
a flag indicating whether qName and spName are the same
differ
,
String oldQName, String
the legacy System Property name, null if N/A
oldSPName
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public JdkProperty.State

Returns:

the state of the property name, null if no match
getState
(String
the property name
name
)

Returns the state of a property name.

public boolean

Returns:

true if there is a match, false otherwise
is
(String
the specified name
name
)

Checks whether the specified name is the property.

public boolean

Returns:

the value indicating whether the qName and spName are different
isNameDiffer
()

Returns the value indicating whether the qName and spName are different.

public String

Returns:

the qualified name of the property
qName
()

Returns the qualified name of the property.

public String

Returns:

the legacy name of the property
qNameOld
()

Returns the legacy name of the property.

public String

Returns:

the name of the System Property
systemProperty
()

Returns the name of the corresponding System Property.

public String

Returns:

the name of the legacy System Property
systemPropertyOld
()

Returns the name of the legacy System Property.

public static JdkProperty.ImplPropMap
public static JdkProperty.ImplPropMap[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CDATACHUNKSIZEback to summary
public static final JdkProperty.ImplPropMap CDATACHUNKSIZE
differback to summary
private final boolean differ
ENABLEEXTFUNCback to summary
public static final JdkProperty.ImplPropMap ENABLEEXTFUNC
ENTITYCOUNTback to summary
public static final JdkProperty.ImplPropMap ENTITYCOUNT
EXTCLSLOADERback to summary
public static final JdkProperty.ImplPropMap EXTCLSLOADER
ISSTANDALONEback to summary
public static final JdkProperty.ImplPropMap ISSTANDALONE
nameback to summary
private final String name

Hides java.lang.Enum.name.

oldQNameback to summary
private final String oldQName
oldSPNameback to summary
private final String oldSPName
OVERRIDEPARSERback to summary
public static final JdkProperty.ImplPropMap OVERRIDEPARSER
qNameback to summary
private final String qName
RESETSYMBOLTABLEback to summary
public static final JdkProperty.ImplPropMap RESETSYMBOLTABLE
spNameback to summary
private final String spName
XSLTCISSTANDALONEback to summary
public static final JdkProperty.ImplPropMap XSLTCISSTANDALONE

Constructor Detail

ImplPropMapback to summary
private ImplPropMap(String name, String qName, String spName, boolean differ, String oldQName, String oldSPName)

Constructs an instance.

Parameters
name:String

the property name

qName:String

the qualified property name

spName:String

the corresponding System Property

differ:boolean

a flag indicating whether qName and spName are the same

oldSPName:String

the legacy System Property name, null if N/A

Method Detail

getStateback to summary
public JdkProperty.State getState(String name)

Returns the state of a property name. By the specification as of JDK 17, the "jdk.xml." prefixed System property name is also the current API name. Both the URI-based qName and old name if any are legacy.

Parameters
name:String

the property name

Returns:JdkProperty.State

the state of the property name, null if no match

isback to summary
public boolean is(String name)

Checks whether the specified name is the property. Checks both the property and System Property if they differ. Checks also the legacy name if applicable.

Parameters
name:String

the specified name

Returns:boolean

true if there is a match, false otherwise

isNameDifferback to summary
public boolean isNameDiffer()

Returns the value indicating whether the qName and spName are different.

Returns:boolean

the value indicating whether the qName and spName are different

qNameback to summary
public String qName()

Returns the qualified name of the property.

Returns:String

the qualified name of the property

qNameOldback to summary
public String qNameOld()

Returns the legacy name of the property.

Returns:String

the legacy name of the property

systemPropertyback to summary
public String systemProperty()

Returns the name of the corresponding System Property.

Returns:String

the name of the System Property

systemPropertyOldback to summary
public String systemPropertyOld()

Returns the name of the legacy System Property.

Returns:String

the name of the legacy System Property

valueOfback to summary
public static JdkProperty.ImplPropMap valueOf(String name)
valuesback to summary
public static JdkProperty.ImplPropMap[] values()
jdk.xml.internal back to summary

public final Enum JdkProperty.State

extends Enum<JdkProperty.State>
Class Inheritance

Represents the state of the settings of a property. The states are in descending order: the default value, value set by FEATURE_SECURE_PROCESSING (FSP), in jaxp.properties, by legacy or new system property, and on factories using legacy or new property names.

Field Summary

Modifier and TypeField and Description
public static final JdkProperty.State
public static final JdkProperty.State
public static final JdkProperty.State
public static final JdkProperty.State
public static final JdkProperty.State
public static final JdkProperty.State
pack-priv final String
public static final JdkProperty.State

Constructor Summary

AccessConstructor and Description
private
State(String literal)

Method Summary

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

Field Detail

APIPROPERTYback to summary
public static final JdkProperty.State APIPROPERTY
DEFAULTback to summary
public static final JdkProperty.State DEFAULT
FSPback to summary
public static final JdkProperty.State FSP
JAXPDOTPROPERTIESback to summary
public static final JdkProperty.State JAXPDOTPROPERTIES
LEGACY_APIPROPERTYback to summary
public static final JdkProperty.State LEGACY_APIPROPERTY
LEGACY_SYSTEMPROPERTYback to summary
public static final JdkProperty.State LEGACY_SYSTEMPROPERTY
literalback to summary
pack-priv final String literal
SYSTEMPROPERTYback to summary
public static final JdkProperty.State SYSTEMPROPERTY

Constructor Detail

Stateback to summary
private State(String literal)

Method Detail

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