Class AbstractElementNamespace
java.lang.Object
org.x4o.xml.element.AbstractElementMetaBase
org.x4o.xml.element.AbstractElementNamespace
- All Implemented Interfaces:
ElementMetaBase, ElementNamespace
- Direct Known Subclasses:
DefaultElementNamespace
public abstract class AbstractElementNamespace
extends AbstractElementMetaBase
implements ElementNamespace
AbstractElementNamespace is the abstract version of an ElementNamespace.
- Version:
- 1.0 Oct 28, 2009
- Author:
- Willem Cazander
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElementClass(ElementClass elementClass) Adds an ElementClass.voidaddElementNamespaceAttribute(ElementNamespaceAttribute elementNamespaceAttribute) Adds an ElementNamespaceAttribute.getElementClass(String tag) Gets the ElementClass for an namespace and tag.Returns the loaded ElementClass'es in an namespace in this context.Geta All ElementNamespaceAttributes.Returns the ElementProvider.getName()Gets the set prefix mapping of this namespace.getUri()voidsetElementNamespaceInstanceProvider(ElementNamespaceInstanceProvider elementNamespaceInstanceProvider) Sets the elememen instance provider which creates the elements objects.voidsetLanguageRoot(Boolean languageRoot) voidvoidsetPrefixMapping(String prefixMapping) Sets the prefix mapping.voidsetSchemaPrefix(String schemaPrefix) voidsetSchemaResource(String schemaResource) voidsetSchemaUri(String schemaUri) voidMethods inherited from class AbstractElementMetaBase
getDescription, getId, setDescription, setIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementMetaBase
getId, setIdMethods inherited from interface ElementNamespace
getDescription, setDescription
-
Constructor Details
-
AbstractElementNamespace
public AbstractElementNamespace()
-
-
Method Details
-
getPrefixMapping
Description copied from interface:ElementNamespaceGets the set prefix mapping of this namespace.- Specified by:
getPrefixMappingin interfaceElementNamespace- Returns:
- Returns the prefix mapping.
- See Also:
-
getElementNamespaceInstanceProvider
Description copied from interface:ElementNamespaceReturns the ElementProvider.- Specified by:
getElementNamespaceInstanceProviderin interfaceElementNamespace- Returns:
- the elementNamespaceInstanceProvider
-
setElementNamespaceInstanceProvider
public void setElementNamespaceInstanceProvider(ElementNamespaceInstanceProvider elementNamespaceInstanceProvider) Description copied from interface:ElementNamespaceSets the elememen instance provider which creates the elements objects.- Specified by:
setElementNamespaceInstanceProviderin interfaceElementNamespace- Parameters:
elementNamespaceInstanceProvider- the elementNamespaceInstanceProvider to set
-
setPrefixMapping
Description copied from interface:ElementNamespaceSets the prefix mapping.- Specified by:
setPrefixMappingin interfaceElementNamespace- Parameters:
prefixMapping- The prefix mapping to set.- See Also:
-
addElementClass
Description copied from interface:ElementNamespaceAdds an ElementClass.- Specified by:
addElementClassin interfaceElementNamespace- Parameters:
elementClass- The elementClass to add to this context.- See Also:
-
getElementClass
Description copied from interface:ElementNamespaceGets the ElementClass for an namespace and tag.- Specified by:
getElementClassin interfaceElementNamespace- Parameters:
tag- The tag to get the ElementClass for.- Returns:
- Returns the ElementClass for a tag in an namespace.
- See Also:
-
getElementClasses
Description copied from interface:ElementNamespaceReturns the loaded ElementClass'es in an namespace in this context.- Specified by:
getElementClassesin interfaceElementNamespace- Returns:
- Returns all ElementClasses handled by this namespace.
- See Also:
-
getUri
- Specified by:
getUriin interfaceElementNamespace- Returns:
- the uri
-
setUri
- Specified by:
setUriin interfaceElementNamespace- Parameters:
uri- the namespace uri to set
-
getName
- Specified by:
getNamein interfaceElementNamespace- Returns:
- the name
-
setName
- Specified by:
setNamein interfaceElementNamespace- Parameters:
name- the name to set
-
getSchemaUri
- Specified by:
getSchemaUriin interfaceElementNamespace- Returns:
- the schemaUri
-
setSchemaUri
- Specified by:
setSchemaUriin interfaceElementNamespace- Parameters:
schemaUri- the schemaUri to set
-
getSchemaResource
- Specified by:
getSchemaResourcein interfaceElementNamespace- Returns:
- the schemaResource
-
setSchemaResource
- Specified by:
setSchemaResourcein interfaceElementNamespace- Parameters:
schemaResource- the schemaResource to set
-
getLanguageRoot
- Specified by:
getLanguageRootin interfaceElementNamespace- Returns:
- the languageRoot
-
setLanguageRoot
- Specified by:
setLanguageRootin interfaceElementNamespace- Parameters:
languageRoot- the languageRoot to set
-
getSchemaPrefix
- Specified by:
getSchemaPrefixin interfaceElementNamespace- Returns:
- the schemaPrefix
-
setSchemaPrefix
- Specified by:
setSchemaPrefixin interfaceElementNamespace- Parameters:
schemaPrefix- the schemaPrefix to set
-
addElementNamespaceAttribute
Description copied from interface:ElementNamespaceAdds an ElementNamespaceAttribute.- Specified by:
addElementNamespaceAttributein interfaceElementNamespace- Parameters:
elementNamespaceAttribute- Adds an ElementNamespaceAttribute.
-
getElementNamespaceAttributes
Description copied from interface:ElementNamespaceGeta All ElementNamespaceAttributes.- Specified by:
getElementNamespaceAttributesin interfaceElementNamespace- Returns:
- Returns an List of ElementNamespaceAttributes.
-