| java.lang.Object org.geoserver.wfs.xml.NameSpaceElement
NameSpaceElement | abstract public class NameSpaceElement (Code) | | NameSpaceElement purpose.
NameSpaceElement sub classes will represent a particular element
found within a particular namespace. Most of the methods below
should return constants to improve performance.
author: dzwiers, Refractions Research, Inc. author: $Author: dmzwiers $ (last modification) version: $Id: NameSpaceElement.java 6177 2007-02-19 10:11:27Z aaime $ |
Method Summary | |
abstract public Class | getJavaClass() getJavaClass purpose. | abstract public String | getQualifiedTypeDefName() getQualifiedTypeDefName purpose. | abstract public String | getQualifiedTypeDefName(String prefix) getQualifiedTypeDefName purpose.
Returns a qualified type definition name prefix:definition name with the specified prefix.
Parameters: prefix - The prefix to use for qualification. | abstract public String | getQualifiedTypeRefName() getQualifiedTypeRefName purpose. | abstract public String | getQualifiedTypeRefName(String prefix) getQualifiedTypeRefName purpose.
Returns a qualified type reference name prefix:reference name with the specified prefix.
Parameters: prefix - The prefix to use for qualification. | abstract public String | getTypeDefName() getTypeDefName purpose.
This will return the name of the definition of the element.
This method is useful when defining a new type and wish to
extend an existing defined type, such as
gml:AbstractFeatureType .
The type def. | abstract public String | getTypeRefName() getTypeDefName purpose. | abstract public boolean | isAbstract() | public boolean | isDefault() This is a bit of a hack, so that GeoServer can generate with the best
(default) xml mappings for each Java class. | public String | toString() |
prefix | final protected String prefix(Code) | | the namespace prefix to use for qualification
|
NameSpaceElement | public NameSpaceElement(String prefix)(Code) | | NameSpaceElement constructor.
Creates an instance of this NameSpaceElement.
The prefix is to be used for the qualification routines.
If the prefix passed is null, then qualified names will be
null unless they have a prefix specified.
Parameters: prefix - The prefix to use for qualification. |
NameSpaceElement | public NameSpaceElement()(Code) | | NameSpaceElement constructor.
Creates an instance of this NameSpaceElement.
The prefix is to be used for the qualification routines is set to null.
the qualified names of the elements will be null
|
getJavaClass | abstract public Class getJavaClass()(Code) | | getJavaClass purpose.
Returns an instance of the Class object which would best represent this element.
for example an element of type xs:int would return Integer.class .
Class instance of the Class object which would best represent this element. |
getQualifiedTypeDefName | abstract public String getQualifiedTypeDefName()(Code) | | getQualifiedTypeDefName purpose.
Returns a qualified type definition name prefix:definition name .
the name if the default prefix is non null, null otherwise See Also: getTypeDefName() |
getQualifiedTypeDefName | abstract public String getQualifiedTypeDefName(String prefix)(Code) | | getQualifiedTypeDefName purpose.
Returns a qualified type definition name prefix:definition name with the specified prefix.
Parameters: prefix - The prefix to use for qualification. the name if either the specified or default prefix is non null, null otherwise See Also: getTypeDefName() |
getQualifiedTypeRefName | abstract public String getQualifiedTypeRefName()(Code) | | getQualifiedTypeRefName purpose.
Returns a qualified type reference name prefix:reference name .
the name if the default prefix is non null, null otherwise See Also: getTypeRefName() |
getQualifiedTypeRefName | abstract public String getQualifiedTypeRefName(String prefix)(Code) | | getQualifiedTypeRefName purpose.
Returns a qualified type reference name prefix:reference name with the specified prefix.
Parameters: prefix - The prefix to use for qualification. the name if either the specified or default prefix is non null, null otherwise See Also: getTypeRefName() |
getTypeDefName | abstract public String getTypeDefName()(Code) | | getTypeDefName purpose.
This will return the name of the definition of the element.
This method is useful when defining a new type and wish to
extend an existing defined type, such as
gml:AbstractFeatureType .
The type def. name, for the above example AbstractFeatureType. |
getTypeRefName | abstract public String getTypeRefName()(Code) | | getTypeDefName purpose.
This will return the name of the element.
This method is useful when defining a new element and wish to
extend an existing element, such as xs:string .
The element name, for the above example string or lineStringProperty. |
isAbstract | abstract public boolean isAbstract()(Code) | | |
isDefault | public boolean isDefault()(Code) | | This is a bit of a hack, so that GeoServer can generate with the best
(default) xml mappings for each Java class. This should be implemented
the other way around, with a nice lookup table to get the one and only
default. But this is far easier to implement, as we just add this
method set to true for the namespace element classes we like best. If
for some reason we set two NSE's that map to the same java class to true
then things will behave randomly, which is why this is a bit of a hack.
Apologies, it's late, and I need to finish my docs.
|
|
|