|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.types.ResourceName
public final class ResourceName
Represents a valid resource name in CCC. A valid name must contain one or more characters. Characters must be members of the group [a-zA-Z_0-9]. See the following links for further details on URL encoding: http://en.wikipedia.org/wiki/Percent-encoding http://i-technica.com/whitestuff/urlencodechart.html
Field Summary | |
---|---|
static java.lang.String |
VALID_CHARACTERS
VALID_CHARACTERS : String. |
Constructor Summary | |
---|---|
ResourceName(java.lang.String stringRepresentation)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static ResourceName |
escape(java.lang.String invalidCharacters)
Escape a string to provide a valid ResourceName. |
int |
hashCode()
|
static boolean |
isValid(java.lang.String value)
Confirm the specified string is a valid resource name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VALID_CHARACTERS
Constructor Detail |
---|
public ResourceName(java.lang.String stringRepresentation)
stringRepresentation
- The representation of this name - as a string.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static ResourceName escape(java.lang.String invalidCharacters)
invalidCharacters
- A string that may contain invalid characters.
public static boolean isValid(java.lang.String value)
value
- The potential resource name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |