deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.crs
Class Identifiable

java.lang.Object
  extended by org.deegree.crs.Identifiable
Direct Known Subclasses:
CoordinateSystem, CRSTransformation, Datum, Ellipsoid, PrimeMeridian, Projection, WGS84ConversionInfo

public class Identifiable
extends Object

The Identifiable class can be used to identify a crs, ellipsoid, Datum and primemeridian

Version:
$Revision:$, $Date:$
Author:
Rutger Bezema, last edited by: $Author:$

Constructor Summary
Identifiable(Identifiable other)
          Takes the references of the other object and stores them in this Identifiable Object.
Identifiable(String[] identifiers)
          Creates arrays fromt the given identifier and name without setting the versions, descriptions and areasOfUse.
Identifiable(String[] identifiers, String[] names, String[] versions, String[] descriptions, String[] areasOfUse)
           
 
Method Summary
protected  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
 String getAreaOfUse()
           
 String[] getAreasOfUse()
           
 String getDescription()
           
 String[] getDescriptions()
           
 String getIdAndName()
           
 String getIdentifier()
           
 String[] getIdentifiers()
           
 String getName()
           
 String[] getNames()
           
 String getVersion()
           
 String[] getVersions()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Identifiable

public Identifiable(Identifiable other)
Takes the references of the other object and stores them in this Identifiable Object.

Parameters:
other - identifiable object.

Identifiable

public Identifiable(String[] identifiers,
                    String[] names,
                    String[] versions,
                    String[] descriptions,
                    String[] areasOfUse)
Parameters:
identifiers -
names - the human readable names of the object.
versions -
descriptions -
areasOfUse -
Throws:
IllegalArgumentException - if no identifier(s) was/were given.

Identifiable

public Identifiable(String[] identifiers)
Creates arrays fromt the given identifier and name without setting the versions, descriptions and areasOfUse.

Parameters:
identifiers - of the object.
Method Detail

getAreaOfUse

public final String getAreaOfUse()
Returns:
the first of all areasOfUse or null if no areasOfUse were given.

getDescription

public final String getDescription()
Returns:
the first of all descriptions or null if no descriptions were given.

getIdentifier

public final String getIdentifier()
Returns:
the first of all identifiers.

getName

public final String getName()
Returns:
the first of all names or null if no names were given.

getVersion

public final String getVersion()
Returns:
the first of all versions or null if no versions were given.

checkForNullObject

protected void checkForNullObject(Object toBeChecked,
                                  String message)
                           throws IllegalArgumentException
throws an InvalidParameterException if the given object is null

Parameters:
toBeChecked - for null
message - to put into the exception. If absend, the default message (CRS_INVALID_NULL_PARAMETER) will be inserted.
Throws:
IllegalArgumentException - if the given object is null.

checkForNullObject

protected void checkForNullObject(Object[] toBeChecked,
                                  String message)
                           throws IllegalArgumentException
throws an IllegalArgumentException if the given object array is null or empty

Parameters:
toBeChecked - for null or empty
message - to put into the exception. If absend, the default message (CRS_INVALID_NULL_PARAMETER) will be inserted.
Throws:
IllegalArgumentException - if the given object array is null or empty.

toString

public String toString()
Overrides:
toString in class Object

getIdAndName

public String getIdAndName()
Returns:
the first id and the name (if given) as id: id, name: name.

getAreasOfUse

public final String[] getAreasOfUse()
Returns:
the areasOfUse or null if no areasOfUse were given.

getDescriptions

public final String[] getDescriptions()
Returns:
the descriptions or null if no descriptions were given.

getIdentifiers

public final String[] getIdentifiers()
Returns:
the identifiers, each identifiable object has atleast one id.

getNames

public final String[] getNames()
Returns:
the names or null if no names were given.

getVersions

public final String[] getVersions()
Returns:
the versions or null if no versions were given.

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net