| java.lang.Object org.deegree.datatypes.QualifiedName
All known Subclasses: org.deegree.model.crs.CoordinateSystem,
QualifiedName | public class QualifiedName implements Serializable(Code) | | This class represent a qualified name for something. A name is thought to be built from an
optional prefix and/or a local name E.g.: - deegree - pre:deegree
a name may be located within a namespace assigned to the names prefix (or as default namespace if
the name has not prefix).
author: Andreas Poth author: last edited by: $Author: apoth $ version: $Revision: 10522 $, $Date: 2008-03-07 03:09:06 -0800 (Fri, 07 Mar 2008) $ |
QualifiedName | public QualifiedName(String name)(Code) | | Parameters: name - local name/simple (without prefix) |
QualifiedName | public QualifiedName(String name, URI namespace)(Code) | | Parameters: name - complete name including a prefix Parameters: namespace - namespace the name is located within |
QualifiedName | public QualifiedName(String prefix, String localName, URI namespace)(Code) | | Parameters: prefix - Parameters: localName - local/simple name (e.g. deegree) Parameters: namespace - namespace the name is located within |
getFormattedString | public String getFormattedString()(Code) | | a QualifiedName as a formatted string. If a QualifiedName has a namespace thereturned format is: {namespace}:localName. Otherwise just a String representation of this qualified name will be returned. Whichmeans, that if the prefix is not null (allthough not bound to namespace) the resultString will be: PRE_FIX:localName. If the Prefix is null, the sole localname will be returned. |
getLocalName | public String getLocalName()(Code) | | returns the local part of the name
the local part of the name |
getNamespace | public URI getNamespace()(Code) | | returns the namespace the name is located within (may be null)
the namespace the name is located within (may be null) |
getPrefix | public String getPrefix()(Code) | | returns the names prefix
the names prefix |
getPrefixedName | public String getPrefixedName()(Code) | | returns a string representation of a QualifiedName. prefix and local name are separated by
':'. If the Prefix is null, the sole localname will be returned.
string representation of a QualifiedName |
hashCode | public int hashCode()(Code) | | |
isInNamespace | public boolean isInNamespace(URI ns)(Code) | | Parameters: ns - the namespace to checkfor true if the given namespace equals this qualified name's namespace. If the given nsis null and the namespace is null, this method will also return true. |
|
|