public class XMLObjectProviderRegistrySupport extends Object
Modifier | Constructor and Description |
---|---|
protected |
XMLObjectProviderRegistrySupport()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 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 MarshallerFactory |
getMarshallerFactory()
Gets the XMLObject marshaller factory that has been configured with information from loaded configuration files.
|
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 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 |
setParserPool(ParserPool newParserPool)
Set the currently configured ParserPool instance.
|
protected XMLObjectProviderRegistrySupport()
@Nullable public static ParserPool getParserPool()
public static void setParserPool(@Nullable ParserPool newParserPool)
newParserPool
- the new ParserPool instance to configurepublic static QName getDefaultProviderQName()
public static void registerObjectProvider(@Nonnull QName providerName, @Nonnull XMLObjectBuilder<?> builder, @Nonnull Marshaller marshaller, @Nonnull 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(@Nonnull 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 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.Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.