Interface ElementNamespace
- All Superinterfaces:
ElementMetaBase
- All Known Implementing Classes:
AbstractElementNamespace
,DefaultElementNamespace
ElementNamespace stores all element tag classes for the namespace.
- Version:
- 1.0 Oct 28, 2009
- Author:
- Willem Cazander
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElementClass
(ElementClass elementClass) Adds an ElementClass.void
addElementNamespaceAttribute
(ElementNamespaceAttribute elementNamespaceAttribute) Adds an ElementNamespaceAttribute.Returns the description of the ElementMetaBase.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
setDescription
(String description) Sets the description of the ElementMetaBase.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 interface org.x4o.xml.element.ElementMetaBase
getId, setId
-
Method Details
-
setPrefixMapping
Sets the prefix mapping.- Parameters:
prefixMapping
- The prefix mapping to set.
-
getPrefixMapping
String getPrefixMapping()Gets the set prefix mapping of this namespace.- Returns:
- Returns the prefix mapping.
-
setElementNamespaceInstanceProvider
void setElementNamespaceInstanceProvider(ElementNamespaceInstanceProvider elementNamespaceInstanceProvider) Sets the elememen instance provider which creates the elements objects.- Parameters:
elementNamespaceInstanceProvider
- The ElementNamespaceInstanceProvider to set.
-
getElementNamespaceInstanceProvider
ElementNamespaceInstanceProvider getElementNamespaceInstanceProvider()Returns the ElementProvider.- Returns:
- Returns the ElementNamespaceInstanceProvider for this namespace.
-
addElementClass
Adds an ElementClass.- Parameters:
elementClass
- The elementClass to add to this context.
-
getElementClass
Gets the ElementClass for an namespace and tag.- Parameters:
tag
- The tag to get the ElementClass for.- Returns:
- Returns the ElementClass for a tag in an namespace.
-
getElementClasses
List<ElementClass> getElementClasses()Returns the loaded ElementClass'es in an namespace in this context.- Returns:
- Returns all ElementClasses handled by this namespace.
-
getUri
String getUri()- Returns:
- the uri of this namespace.
-
setUri
- Parameters:
uri
- the namespace uri to set.
-
getName
String getName()- Returns:
- the name.
-
setName
- Parameters:
name
- the name to set.
-
getSchemaUri
String getSchemaUri()- Returns:
- the schemaUri.
-
setSchemaUri
- Parameters:
schemaUri
- the schemaUri to set.
-
getSchemaResource
String getSchemaResource()- Returns:
- the schemaResource.
-
setSchemaResource
- Parameters:
schemaResource
- the schemaResource to set.
-
getDescription
String getDescription()Description copied from interface:ElementMetaBase
Returns the description of the ElementMetaBase.- Specified by:
getDescription
in interfaceElementMetaBase
- Returns:
- the description.
-
setDescription
Description copied from interface:ElementMetaBase
Sets the description of the ElementMetaBase.- Specified by:
setDescription
in interfaceElementMetaBase
- Parameters:
description
- the description to set.
-
getLanguageRoot
Boolean getLanguageRoot()- Returns:
- the languageRoot
-
setLanguageRoot
- Parameters:
languageRoot
- the languageRoot to set
-
getSchemaPrefix
String getSchemaPrefix()- Returns:
- the schemaPrefix
-
setSchemaPrefix
- Parameters:
schemaPrefix
- the schemaPrefix to set
-
addElementNamespaceAttribute
Adds an ElementNamespaceAttribute.- Parameters:
elementNamespaceAttribute
- Adds an ElementNamespaceAttribute.
-
getElementNamespaceAttributes
List<ElementNamespaceAttribute> getElementNamespaceAttributes()Geta All ElementNamespaceAttributes.- Returns:
- Returns an List of ElementNamespaceAttributes.
-