|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.moe.Name
The Name class implements the minimum of functionality needed to support XML names for MOE objects.
version 0.01 is the initial release and contains plenty of bogus placeholder functionality.
Field Summary | |
protected java.lang.String |
localName
contains the local name for the component (if any) |
protected java.lang.String |
nsURI
contains the namespace URI for the component (if any) |
protected java.lang.String |
prefix
contains the namespace prefix for the component (if any). |
Constructor Summary | |
Name()
|
Method Summary | |
static java.lang.String[] |
breakQName(java.lang.String QName)
Divides a QName into two pieces. |
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()
Returns the prefix used to represent the namespace URI reference for this component. |
java.lang.String |
getQName()
Returns the Qualified Name (QName) for the component. |
int |
hashCode()
The hashCode() method uses nsURI+">"+localName to generate an int. |
void |
print()
|
void |
setLocalName(java.lang.String _localName)
Accepts a string which will serve as the local name for this component. |
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)
Accepts a string which serves as the prefix for this component. |
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 nsURI
protected java.lang.String localName
protected java.lang.String prefix
Constructor Detail |
public Name()
Method Detail |
public int hashCode()
hashCode
in interface NamingI
hashCode
in class java.lang.Object
public void setNsURI(java.lang.String _nsURI)
NamingI
setNsURI
in interface NamingI
public java.lang.String getNsURI()
NamingI
getNsURI
in interface NamingI
public void setLocalName(java.lang.String _localName)
NamingI
setLocalName
in interface NamingI
public java.lang.String getLocalName()
NamingI
getLocalName
in interface NamingI
public void setPrefix(java.lang.String _prefix)
NamingI
setPrefix
in interface NamingI
public java.lang.String getPrefix()
NamingI
getPrefix
in interface NamingI
public java.lang.String getQName()
getQName
in interface NamingI
public void setQName(java.lang.String QName)
setQName
in interface NamingI
public void print()
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 static java.lang.String[] breakQName(java.lang.String QName)
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 |