public class Configuration extends Object
修飾子 | コンストラクタと説明 |
---|---|
protected |
Configuration()
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static void |
deregisterIDAttribute(QName attributeName)
Deregister an attribute as having a type of ID.
|
static void |
deregisterObjectProvider(QName key)
Removes the builder, marshaller, and unmarshaller registered to the given key.
|
static void |
deregisterValidatorSuite(String suiteId)
Removes a registered validator suite.
|
static XMLObjectBuilderFactory |
getBuilderFactory()
Gets the XMLObject builder factory that has been configured with information from loaded configuration files.
|
static QName |
getDefaultProviderQName()
Gets the QName for the object provider that will be used for XMLObjects that do not have a registered object
provider.
|
static SecurityConfiguration |
getGlobalSecurityConfiguration()
Get the global security configuration.
|
static MarshallerFactory |
getMarshallerFactory()
Gets the XMLObject marshaller factory that has been configured with information from loaded configuration files.
|
static Element |
getObjectProviderConfiguration(QName qualifedName)
推奨されていません。
this method is deprecated with no replacement
|
static ParserPool |
getParserPool()
Get the currently configured ParserPool instance.
|
static UnmarshallerFactory |
getUnmarshallerFactory()
Gets the XMLObject unmarshaller factory that has been configured with information from loaded configuration
files.
|
static ValidatorSuite |
getValidatorSuite(String suiteId)
Gets a configured ValidatorSuite by its ID.
|
static Element |
getValidatorSuiteConfiguration(String suiteId)
推奨されていません。
this method is deprecated with no replacement
|
static boolean |
isIDAttribute(QName attributeName)
Determine whether a given attribute is registered as having an ID type.
|
static void |
registerIDAttribute(QName attributeName)
Register an attribute as having a type of ID.
|
static void |
registerObjectProvider(QName providerName,
XMLObjectBuilder builder,
Marshaller marshaller,
Unmarshaller unmarshaller)
Adds an object provider to this configuration.
|
static void |
registerObjectProvider(QName providerName,
XMLObjectBuilder builder,
Marshaller marshaller,
Unmarshaller unmarshaller,
Element configuration)
推奨されていません。
this method is deprecated with no replacement
|
static void |
registerValidatorSuite(String suiteId,
ValidatorSuite suite)
Registers a configured validator suite.
|
static void |
registerValidatorSuite(String suiteId,
ValidatorSuite suite,
Element configuration)
推奨されていません。
this method is deprecated with no replacement
|
static void |
setGlobalSecurityConfiguration(SecurityConfiguration config)
Set the global security configuration.
|
static void |
setParserPool(ParserPool newParserPool)
Set the currently configured ParserPool instance.
|
static boolean |
validateJCEProviders()
Validates that the set of security providers configured in the JVM supports required cryptographic capabilities,
for example for the XML Encryption and XML Signature specifications.
|
static void |
validateNonSunJAXP()
Validates that the system is not using the horribly buggy Sun JAXP implementation.
|
public static ParserPool getParserPool()
public static void setParserPool(ParserPool newParserPool)
newParserPool
- the new ParserPool instance to configurepublic static QName getDefaultProviderQName()
public static void registerObjectProvider(QName providerName, XMLObjectBuilder builder, Marshaller marshaller, Unmarshaller unmarshaller)
providerName
- the name of the object provider, corresponding to the element name or type name that the
builder, marshaller, and unmarshaller operate onbuilder
- the builder for that given providermarshaller
- the marshaller for the providerunmarshaller
- the unmarshaller for the providerpublic static void deregisterObjectProvider(QName key)
key
- the key of the builder, marshaller, and unmarshaller to be removedpublic static XMLObjectBuilderFactory getBuilderFactory()
public static MarshallerFactory getMarshallerFactory()
public static UnmarshallerFactory getUnmarshallerFactory()
public static void registerValidatorSuite(String suiteId, ValidatorSuite suite)
suiteId
- the ID of the suitesuite
- the configured suitepublic static void deregisterValidatorSuite(String suiteId)
suiteId
- the ID of the suitepublic static ValidatorSuite getValidatorSuite(String suiteId)
suiteId
- the suite's IDpublic static void registerIDAttribute(QName attributeName)
attributeName
- the QName of the ID attribute to be registeredpublic static void deregisterIDAttribute(QName attributeName)
attributeName
- the QName of the ID attribute to be de-registeredpublic static boolean isIDAttribute(QName attributeName)
attributeName
- the QName of the attribute to be checked for ID type.public static SecurityConfiguration getGlobalSecurityConfiguration()
public static void setGlobalSecurityConfiguration(SecurityConfiguration config)
config
- the new global security configuration instancepublic static void validateNonSunJAXP()
public static boolean validateJCEProviders()
public static void registerObjectProvider(QName providerName, XMLObjectBuilder builder, Marshaller marshaller, Unmarshaller unmarshaller, Element configuration)
providerName
- the name of the object provider, corresponding to the element name or type name that the
builder, marshaller, and unmarshaller operate onbuilder
- the builder for that given providermarshaller
- the marshaller for the providerunmarshaller
- the unmarshaller for the providerconfiguration
- optional XML configuration snippetpublic static Element getObjectProviderConfiguration(QName qualifedName)
qualifedName
- the namespace qualifed element name of the schema type of the object providerpublic static void registerValidatorSuite(String suiteId, ValidatorSuite suite, Element configuration)
suiteId
- the ID of the suitesuite
- the configured suiteconfiguration
- optional XML configuration informationpublic static Element getValidatorSuiteConfiguration(String suiteId)
suiteId
- the ID of the ValidatorSuite whose configuration is to be retrievedCopyright © 2012. All Rights Reserved.