|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.common.NSDecl
Derived from com.simonstl.moe.NamespaceDecl and com.simonstl.midp.xml.TAMNSDecl. This class stores namespace declaration information.
Field Summary | |
protected boolean |
current
current indicates that a namespace needs to be declared in the current context. |
protected int |
level
level is used to determine where in a tree a given namespace applies. |
protected java.lang.String |
name
|
protected java.lang.String |
value
|
Constructor Summary | |
NSDecl()
|
Method Summary | |
int |
getLevel()
getLevel()is used by the namespace context object to figure out which declarations appeared where. |
java.lang.String |
getLocalName()
Returns the local name for the component |
java.lang.String |
getPrefix()
Prefix for namespaces is always xmlns. |
java.lang.String |
getQName()
Returns the Qualified Name (QName) for the component. |
java.lang.String |
getUri()
Namespace URIs for namespace declarations are always http://www.w3.org/TR/REC-xml-names/. |
java.lang.String |
getValue()
The value contains the namespace URI. |
int |
hashCode()
The hashCode() method uses nsURI+">"+localName to generate an int. |
void |
setLevel(int _level)
setLevel()is used by the namespace context object to establish which declarations appeared where. |
void |
setLocalName(java.lang.String _localName)
Use setLocalName to identify the namespace prefix being used. |
void |
setPrefix(java.lang.String prefix)
Attempts to set prefixes on namespace names will be ignored. |
void |
setQName(java.lang.String QName)
currently null; needs work. |
void |
setUri(java.lang.String nsURI)
Attempts to set URIs on namespace names will be ignored. |
void |
setValue(java.lang.String _value)
The value contains the namespace URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.simonstl.common.NamingI |
equals |
Field Detail |
protected int level
protected boolean current
protected java.lang.String name
protected java.lang.String value
Constructor Detail |
public NSDecl()
Method Detail |
public java.lang.String getPrefix()
getPrefix
in interface NamingI
public int hashCode()
hashCode
in interface NamingI
hashCode
in class java.lang.Object
public void setPrefix(java.lang.String prefix)
setPrefix
in interface NamingI
public java.lang.String getUri()
getUri
in interface NamingI
public void setUri(java.lang.String nsURI)
setUri
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 int getLevel()
public void setLevel(int _level)
public java.lang.String getValue()
public void setValue(java.lang.String _value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |