|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.CRSIdentifiable
public class CRSIdentifiable
The CRSIdentifiable
class can be used to identify any crs, Ellipsoid, Geodetic Datum and Prime Meridian
Constructor Summary | |
---|---|
CRSIdentifiable(CRSCodeType id)
|
|
CRSIdentifiable(CRSCodeType[] identifiers)
Creates arrays fromt the given identifier and name without setting the versions, descriptions and areasOfUse. |
|
CRSIdentifiable(CRSCodeType[] codes,
String[] names,
String[] versions,
String[] descriptions,
String[] areasOfUse)
|
|
CRSIdentifiable(CRSIdentifiable other)
Takes the references of the other object and stores them in this CRSIdentifiable Object. |
Method Summary | |
---|---|
void |
addAreaOfUse(String areaOfUse)
|
void |
addName(String name)
|
static void |
checkForNullObject(Object[] toBeChecked,
String message)
throws an IllegalArgumentException if the given object array is null or empty |
protected void |
checkForNullObject(Object toBeChecked,
String message)
throws an InvalidParameterException if the given object is null |
static void |
checkForNullObject(Object toBeChecked,
String functionName,
String paramName)
throws an InvalidParameterException if the given object is null |
boolean |
equals(Object other)
|
String |
getAreaOfUse()
|
double[] |
getAreaOfUseBBox()
Returns the area of use, i.e. the domain where this CRSIdentifiable is valid. |
String[] |
getAreasOfUse()
|
CRSCodeType |
getCode()
|
String |
getCodeAndName()
|
CRSCodeType[] |
getCodes()
|
String |
getDescription()
|
String[] |
getDescriptions()
|
String |
getName()
|
String[] |
getNames()
|
String[] |
getOrignalCodeStrings()
|
String |
getVersion()
|
String[] |
getVersions()
|
boolean |
hasCode(CRSCodeType id)
|
boolean |
hasId(String id,
boolean caseSensitive,
boolean exact)
|
boolean |
hasIdOrName(String idOrName,
boolean caseSensitive,
boolean exact)
Iterates over all Ids (code type originals) and Names and tests if either one matches the given string. |
void |
setDefaultAreaOfUse(double[] bbox)
|
void |
setDefaultDescription(String newDescription,
boolean override)
|
void |
setDefaultId(CRSCodeType newCodeType,
boolean override)
|
void |
setDefaultName(String defaultName,
boolean override)
|
void |
setDefaultVersion(String newVersion,
boolean override)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CRSIdentifiable(CRSIdentifiable other)
other
- identifiable object.public CRSIdentifiable(CRSCodeType[] codes, String[] names, String[] versions, String[] descriptions, String[] areasOfUse)
codes
- names
- the human readable names of the object.versions
- descriptions
- areasOfUse
-
IllegalArgumentException
- if no identifier(s) was/were given.public CRSIdentifiable(CRSCodeType[] identifiers)
identifiers
- of the object.public CRSIdentifiable(CRSCodeType id)
id
- of the IdentifierMethod Detail |
---|
public final String getAreaOfUse()
null
if no areasOfUse were given.public final String getDescription()
null
if no descriptions were given.public final CRSCodeType getCode()
public final String getName()
null
if no names were given.public final String getVersion()
null
if no versions were given.protected void checkForNullObject(Object toBeChecked, String message) throws IllegalArgumentException
toBeChecked
- for null
message
- to put into the exception. If absent, the default message (CRS_INVALID_NULL_PARAMETER) will be
inserted.
IllegalArgumentException
- if the given object is null
.public static void checkForNullObject(Object toBeChecked, String functionName, String paramName) throws IllegalArgumentException
toBeChecked
- for null
functionName
- of the callerparamName
- of the parameter to be checked.
IllegalArgumentException
- if the given object is null
.public static void checkForNullObject(Object[] toBeChecked, String message) throws IllegalArgumentException
toBeChecked
- for null
or emptymessage
- to put into the exception. If absent, the default message (CRS_INVALID_NULL_PARAMETER) will be
inserted.
IllegalArgumentException
- if the given object array is null
or empty.public String toString()
toString
in class Object
public String getCodeAndName()
public boolean equals(Object other)
equals
in class Object
public final String[] getAreasOfUse()
null
if no areasOfUse were given.public final String[] getDescriptions()
null
if no descriptions were given.public final CRSCodeType[] getCodes()
public final String[] getOrignalCodeStrings()
public final String[] getNames()
null
if no names were given.public final String[] getVersions()
null
if no versions were given.public boolean hasCode(CRSCodeType id)
id
- a string which could match this identifiable.
public boolean hasIdOrName(String idOrName, boolean caseSensitive, boolean exact)
idOrName
- a String which might be an id or a name.caseSensitive
- should the match me case sensitiveexact
- should the names and ids contain the given string or match exact.
public boolean hasId(String id, boolean caseSensitive, boolean exact)
id
- caseSensitive
- exact
-
public double[] getAreaOfUseBBox()
CRSIdentifiable
is valid.
null
(-180,-90,180,90) if no such information is availablepublic void setDefaultId(CRSCodeType newCodeType, boolean override)
newCodeType
- override
- public void setDefaultAreaOfUse(double[] bbox)
bbox
- an envelope of validity in epsg:4326 coordinates, min(lon,lat) max(lon,lat);public void addAreaOfUse(String areaOfUse)
areaOfUse
- public void addName(String name)
name
- public void setDefaultName(String defaultName, boolean override)
defaultName
- the new default nameoverride
- true if the new name should override the name currently at position 0public void setDefaultDescription(String newDescription, boolean override)
newDescription
- the new default descriptionoverride
- true if the new description should override the description currently at position 0public void setDefaultVersion(String newVersion, boolean override)
newVersion
- the new default versionoverride
- true if the new version should override the version currently at position 0
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |