|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.moe.NamespaceName
The NamespaceName class provides a foundation for MOE objects to store namespaces.
I've defined the Namespace class to be something of a broken name, much like Namespace declarations in XML 1.0. The prefix of the attribute is fixed to xmlns, the localName defines the prefix defined by the namespace. The toString() method handles the xmlns/xmlns:prefix issues.
All of the processing of the NamingI
interface is delegated to a NamespaceName
object.
nsURI is fixed to http://www.w3.org/TR/REC-xml-names/
.
version 0.01 is the initial release and contains plenty of bogus placeholder functionality.
Field Summary | |
protected java.lang.String |
localName
contains the prefix used by the namespace (if any) |
Constructor Summary | |
NamespaceName()
|
Method Summary | |
java.lang.Object |
clone()
Clones the name. |
boolean |
equals(java.lang.Object _name)
|
java.lang.String |
getLocalName()
Returns the local name for the component |
java.lang.String |
getNsURI()
Returns the URI reference value for the namespace. |
java.lang.String |
getPrefix()
Prefix for namespaces is always xmlns. |
java.lang.String |
getQName()
Returns the Qualified Name (QName) for the component. |
int |
hashCode()
The hashCode() method uses xmlns(:prefix) to generate an int. |
void |
setLocalName(java.lang.String _localName)
Use setLocalName to identify the namespace prefix being used. |
void |
setNsURI(java.lang.String nsURI)
Accepts a URI reference value which is used as the namespace for the component. |
void |
setPrefix(java.lang.String prefix)
Attempts to set prefixes on namespace names will be ignored. |
void |
setQName(java.lang.String QName)
Sets the Qualified Name (QName) for the component. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String localName
Constructor Detail |
public NamespaceName()
Method Detail |
public int hashCode()
hashCode
in interface NamingI
hashCode
in class java.lang.Object
public java.lang.String getPrefix()
getPrefix
in interface NamingI
public void setPrefix(java.lang.String prefix)
setPrefix
in interface NamingI
public java.lang.String getNsURI()
NamingI
getNsURI
in interface NamingI
public void setNsURI(java.lang.String nsURI)
NamingI
setNsURI
in interface NamingI
public java.lang.String getLocalName()
NamingI
getLocalName
in interface NamingI
public void setLocalName(java.lang.String _localName)
setLocalName
in interface NamingI
public java.lang.String getQName()
getQName
in interface NamingI
public void setQName(java.lang.String QName)
setQName
in interface NamingI
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object _name)
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in interface NamingI
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |