|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.cs.CRSCodeType
public class CRSCodeType
The CRSCodeType
class formalizes the access to CRSIdentifiable, replacing the old "identifiers". Any
prefix patterns that are noticed as for example
Constructor Summary | |
---|---|
CRSCodeType(String codeAsString)
Create a CRSCodeType from a string. |
|
CRSCodeType(String code,
String codeSpace)
Create a CRSCodeType from the code and codeSpace. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getCode()
|
String |
getCodeSpace()
|
String |
getCodeVersion()
|
String |
getOriginal()
|
static CRSCodeType |
getUndefined()
|
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. |
String |
toString()
Returns the codespace codeversion and code, or just the original string if it could not be parsed. |
static CRSCodeType |
valueOf(String codeAsString)
Returns the CRSCodeType that can be constructed from the string parameter. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CRSCodeType(String code, String codeSpace)
code
- codeSpace
- public CRSCodeType(String codeAsString)
codeAsString
- Method Detail |
---|
public static CRSCodeType valueOf(String codeAsString) throws IllegalArgumentException
codeAsString
-
IllegalArgumentException
public String getCode()
getOriginal()
public String getCodeSpace()
public String getCodeVersion()
public String getOriginal()
public static CRSCodeType getUndefined()
CRSIdentifiable
has no id. The code used is "NOT PROVIDED".public boolean equals(Object o)
equals
in class Object
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |