|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectNCName
public final class NCName
Represents an NCName according to the XML namespace declaration.
| Constructor Summary | |
|---|---|
NCName(NCName src)
Constructs a new NCName which represents the same String. |
|
NCName(String ncname)
Constructs a new NCName from the given String. |
|
| Method Summary | |
|---|---|
boolean |
equals(NCName comp)
Returns true if the given NCName is equal to this one. |
int |
length()
Returns the length of this NCName. |
String |
toString()
Returns the String representation of this NCName. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NCName(String ncname)
String.
If the String does not conform to the NCName restrictions
then the characters which are not allowed will be removed. If the
first char is not valid it will be replaced by '_'. If the given
String is empty or null then the "_"
character will be used to build a valid NCName.
ncname - String from which to construct this NCName.public NCName(NCName src)
String.
src - source NCName.| Method Detail |
|---|
public String toString()
String representation of this NCName.
The returned String will conform to the restrictions of an NCName.
toString in class ObjectString which conforms to the constraints of an NCName.public int length()
public boolean equals(NCName comp)
comp - the object to compare to
true if the parameter and this object are equal,
false otherwise
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||