|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.Identifiable
public class Identifiable
The Identifiable
class can be used to identify a crs, ellipsoid, Datum and primemeridian
Constructor Summary | |
---|---|
Identifiable(Identifiable other)
Takes the references of the other object and stores them in this Identifiable Object. |
|
Identifiable(java.lang.String id)
|
|
Identifiable(java.lang.String[] identifiers)
Creates arrays fromt the given identifier and name without setting the versions, descriptions and areasOfUse. |
|
Identifiable(java.lang.String[] identifiers,
java.lang.String[] names,
java.lang.String[] versions,
java.lang.String[] descriptions,
java.lang.String[] areasOfUse)
|
Method Summary | |
---|---|
static void |
checkForNullObject(java.lang.Object[] toBeChecked,
java.lang.String message)
throws an IllegalArgumentException if the given object array is null or empty |
protected void |
checkForNullObject(java.lang.Object toBeChecked,
java.lang.String message)
throws an InvalidParameterException if the given object is null |
static void |
checkForNullObject(java.lang.Object toBeChecked,
java.lang.String functionName,
java.lang.String paramName)
throws an InvalidParameterException if the given object is null |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAreaOfUse()
|
double[] |
getAreaOfUseBBox()
Returns the area of use, i.e. the domain where this Identifiable is valid. |
java.lang.String[] |
getAreasOfUse()
|
java.lang.String |
getDescription()
|
java.lang.String[] |
getDescriptions()
|
java.lang.String |
getIdAndName()
|
java.lang.String |
getIdentifier()
|
java.lang.String[] |
getIdentifiers()
|
java.lang.String |
getName()
|
java.lang.String[] |
getNames()
|
java.lang.String |
getVersion()
|
java.lang.String[] |
getVersions()
|
boolean |
hasID(java.lang.String id)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Identifiable(Identifiable other)
other
- identifiable object.public Identifiable(java.lang.String[] identifiers, java.lang.String[] names, java.lang.String[] versions, java.lang.String[] descriptions, java.lang.String[] areasOfUse)
identifiers
- names
- the human readable names of the object.versions
- descriptions
- areasOfUse
-
java.lang.IllegalArgumentException
- if no identifier(s) was/were given.public Identifiable(java.lang.String[] identifiers)
identifiers
- of the object.public Identifiable(java.lang.String id)
id
- of the IdentifierMethod Detail |
---|
public final java.lang.String getAreaOfUse()
null
if no areasOfUse were given.public final java.lang.String getDescription()
null
if no descriptions were given.public final java.lang.String getIdentifier()
public final java.lang.String getName()
null
if no names were given.public final java.lang.String getVersion()
null
if no versions were given.protected void checkForNullObject(java.lang.Object toBeChecked, java.lang.String message) throws java.lang.IllegalArgumentException
toBeChecked
- for null
message
- to put into the exception. If absent, the default message (CRS_INVALID_NULL_PARAMETER) will be
inserted.
java.lang.IllegalArgumentException
- if the given object is null
.public static void checkForNullObject(java.lang.Object toBeChecked, java.lang.String functionName, java.lang.String paramName) throws java.lang.IllegalArgumentException
toBeChecked
- for null
functionName
- of the callerparamName
- of the parameter to be checked.
java.lang.IllegalArgumentException
- if the given object is null
.public static void checkForNullObject(java.lang.Object[] toBeChecked, java.lang.String message) throws java.lang.IllegalArgumentException
toBeChecked
- for null
or emptymessage
- to put into the exception. If absent, the default message (CRS_INVALID_NULL_PARAMETER) will be
inserted.
java.lang.IllegalArgumentException
- if the given object array is null
or empty.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getIdAndName()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final java.lang.String[] getAreasOfUse()
null
if no areasOfUse were given.public final java.lang.String[] getDescriptions()
null
if no descriptions were given.public final java.lang.String[] getIdentifiers()
public final java.lang.String[] getNames()
null
if no names were given.public final java.lang.String[] getVersions()
null
if no versions were given.public boolean hasID(java.lang.String id)
id
- a string which could match this identifiable.
public double[] getAreaOfUseBBox()
Identifiable
is valid.
null
(-180,-90,180,90) if no such information is available
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org