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 TypeMethodDescriptionvoid
addElementClass
(ElementClass elementClass) Adds an ElementClass.void
addElementNamespaceAttribute
(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()
void
setElementNamespaceInstanceProvider
(ElementNamespaceInstanceProvider elementNamespaceInstanceProvider) Sets the elememen instance provider which creates the elements objects.void
setLanguageRoot
(Boolean languageRoot) void
void
setPrefixMapping
(String prefixMapping) Sets the prefix mapping.void
setSchemaPrefix
(String schemaPrefix) void
setSchemaResource
(String schemaResource) void
setSchemaUri
(String schemaUri) void
Methods inherited from class org.x4o.xml.element.AbstractElementMetaBase
getDescription, getId, setDescription, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.x4o.xml.element.ElementMetaBase
getId, setId
Methods inherited from interface org.x4o.xml.element.ElementNamespace
getDescription, setDescription
-
Constructor Details
-
AbstractElementNamespace
public AbstractElementNamespace()
-
-
Method Details
-
getPrefixMapping
Description copied from interface:ElementNamespace
Gets the set prefix mapping of this namespace.- Specified by:
getPrefixMapping
in interfaceElementNamespace
- Returns:
- Returns the prefix mapping.
- See Also:
-
getElementNamespaceInstanceProvider
Description copied from interface:ElementNamespace
Returns the ElementProvider.- Specified by:
getElementNamespaceInstanceProvider
in interfaceElementNamespace
- Returns:
- the elementNamespaceInstanceProvider
-
setElementNamespaceInstanceProvider
public void setElementNamespaceInstanceProvider(ElementNamespaceInstanceProvider elementNamespaceInstanceProvider) Description copied from interface:ElementNamespace
Sets the elememen instance provider which creates the elements objects.- Specified by:
setElementNamespaceInstanceProvider
in interfaceElementNamespace
- Parameters:
elementNamespaceInstanceProvider
- the elementNamespaceInstanceProvider to set
-
setPrefixMapping
Description copied from interface:ElementNamespace
Sets the prefix mapping.- Specified by:
setPrefixMapping
in interfaceElementNamespace
- Parameters:
prefixMapping
- The prefix mapping to set.- See Also:
-
addElementClass
Description copied from interface:ElementNamespace
Adds an ElementClass.- Specified by:
addElementClass
in interfaceElementNamespace
- Parameters:
elementClass
- The elementClass to add to this context.- See Also:
-
getElementClass
Description copied from interface:ElementNamespace
Gets the ElementClass for an namespace and tag.- Specified by:
getElementClass
in 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:ElementNamespace
Returns the loaded ElementClass'es in an namespace in this context.- Specified by:
getElementClasses
in interfaceElementNamespace
- Returns:
- Returns all ElementClasses handled by this namespace.
- See Also:
-
getUri
- Specified by:
getUri
in interfaceElementNamespace
- Returns:
- the uri
-
setUri
- Specified by:
setUri
in interfaceElementNamespace
- Parameters:
uri
- the namespace uri to set
-
getName
- Specified by:
getName
in interfaceElementNamespace
- Returns:
- the name
-
setName
- Specified by:
setName
in interfaceElementNamespace
- Parameters:
name
- the name to set
-
getSchemaUri
- Specified by:
getSchemaUri
in interfaceElementNamespace
- Returns:
- the schemaUri
-
setSchemaUri
- Specified by:
setSchemaUri
in interfaceElementNamespace
- Parameters:
schemaUri
- the schemaUri to set
-
getSchemaResource
- Specified by:
getSchemaResource
in interfaceElementNamespace
- Returns:
- the schemaResource
-
setSchemaResource
- Specified by:
setSchemaResource
in interfaceElementNamespace
- Parameters:
schemaResource
- the schemaResource to set
-
getLanguageRoot
- Specified by:
getLanguageRoot
in interfaceElementNamespace
- Returns:
- the languageRoot
-
setLanguageRoot
- Specified by:
setLanguageRoot
in interfaceElementNamespace
- Parameters:
languageRoot
- the languageRoot to set
-
getSchemaPrefix
- Specified by:
getSchemaPrefix
in interfaceElementNamespace
- Returns:
- the schemaPrefix
-
setSchemaPrefix
- Specified by:
setSchemaPrefix
in interfaceElementNamespace
- Parameters:
schemaPrefix
- the schemaPrefix to set
-
addElementNamespaceAttribute
Description copied from interface:ElementNamespace
Adds an ElementNamespaceAttribute.- Specified by:
addElementNamespaceAttribute
in interfaceElementNamespace
- Parameters:
elementNamespaceAttribute
- Adds an ElementNamespaceAttribute.
-
getElementNamespaceAttributes
Description copied from interface:ElementNamespace
Geta All ElementNamespaceAttributes.- Specified by:
getElementNamespaceAttributes
in interfaceElementNamespace
- Returns:
- Returns an List of ElementNamespaceAttributes.
-