|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.could.util.location.Path.Element
The Element
class represents a path
element within the Path
structure.
Field Summary |
Fields inherited from interface it.could.util.encoding.EncodingAware |
DEFAULT_ENCODING, PLATFORM_ENCODING |
Constructor Summary | |
Path.Element(String name,
String extra)
Create a new Element instance given its
url-decoded components name and extra. |
Method Summary | |
boolean |
equals(Object object)
Check if the specified Object is equal to this
Element instance. |
String |
getExtra()
Return the url-decoded String extra path of this
Element . |
String |
getName()
Return the url-decoded String name of this
Element . |
int |
hashCode()
Return the hash code value of this Element instance. |
String |
toString()
Return the URL-encoded String representation of this
Element instance. |
String |
toString(String encoding)
Return the URL-encoded String representation of this
Element instance using the specified
character encoding. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Path.Element(String name, String extra)
Create a new Element
instance given its
url-decoded components name and extra.
NullPointerException
- if the specified name was null.Method Detail |
public String getName()
public String getExtra()
public String toString()
Return the URL-encoded String
representation of this
Element
instance.
toString
in interface Encodable
public String toString(String encoding) throws UnsupportedEncodingException
Return the URL-encoded String
representation of this
Element
instance using the specified
character encoding.
toString
in interface Encodable
UnsupportedEncodingException
- if the specified encoding is not
supported by the platform.public int hashCode()
Return the hash code value of this
Element
instance.
public boolean equals(Object object)
Check if the specified Object
is equal to this
Element
instance.
The specified Object
is considered equal to this one if
it is non-null, is a Element
instance and its string representation
equals
this one's.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |