Class CatalogUIAdapterConfiguration
java.lang.Object
org.opencastproject.index.service.catalog.adapter.CatalogUIAdapterConfiguration
This class parses a catalog UI adapter configuration and provides convenience access methods.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn the value of the configuration propertyKEY_XML_ROOT_ELEMENT_NAMEReturn the value of the configuration propertyKEY_XML_ROOT_ELEMENT_NS_URIReturns the XML namespace context that could be built out of the configuration.loadFromDictionary(Dictionary<String, ?> properties) Load configuration from a dictionary.
-
Field Details
-
KEY_XML_ROOT_ELEMENT_NAME
- See Also:
-
KEY_XML_ROOT_ELEMENT_NS_URI
- See Also:
-
XML_BINDING_KEY_PREFIX
- See Also:
-
XML_BINDING_URI_SUFFIX
- See Also:
-
XML_BINDING_PREFIX_SUFFIX
- See Also:
-
-
Method Details
-
loadFromDictionary
public static CatalogUIAdapterConfiguration loadFromDictionary(Dictionary<String, ?> properties) throws ConfigurationExceptionLoad configuration from a dictionary.- Parameters:
properties- The configuration properties- Returns:
- The parsed configuration as
CatalogUIAdapterConfigurationinstance - Throws:
ConfigurationException- If the configuration has any errors
-
getCatalogXmlRootElementName
Return the value of the configuration propertyKEY_XML_ROOT_ELEMENT_NAME -
getCatalogXmlRootNamespace
Return the value of the configuration propertyKEY_XML_ROOT_ELEMENT_NS_URI -
getXmlNamespaceContext
Returns the XML namespace context that could be built out of the configuration.
-