com.esri.sde.sdk.pe
Class PeDatum

java.lang.Object
  extended by com.esri.sde.sdk.pe.PeObject
      extended by com.esri.sde.sdk.pe.PeHVDatum
          extended by com.esri.sde.sdk.pe.PeDatum
All Implemented Interfaces:
java.lang.Cloneable

public final class PeDatum
extends PeHVDatum

A Datum defines the position of the spheroid relative to the center of the Earth. A datum provides a frame of reference for measuring locations on the surface of the Earth. It defines the origin and orientation of latitude and longitude lines.


Constructor Summary
PeDatum(java.lang.String str)
          Constructor.
PeDatum(java.lang.String name, PeSpheroid spheroid)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clone a datum.
 void delete()
          Deconstructor.
static PeHVDatum fromString(java.lang.String str)
          Create a datum from a string
 PeAuthority getAuth()
          Retrieve a datum's authority.
 int getCode()
           
 java.lang.String getName()
          Retrieve a datum's name.
 PeSpheroid getSpheroid()
          Retrieve a datum's spheroid.
 int getStatus()
          Retrieve a datum's status.
 int getType()
          Retrieve a datum's type.
 boolean isEqual(PeDatum datum)
          Test if two datums are identical.
 boolean isEqual(PeObject peobj)
          Check if both objects are equal.
 void setAuth(PeAuthority authority)
          Store an authority in a datum.
 java.lang.String toString()
          Retrieve a datum's external representation.
 java.lang.String toString(int mode)
          Retrieve a datum's extended external representation.
 
Methods inherited from class com.esri.sde.sdk.pe.PeHVDatum
isEqual
 
Methods inherited from class com.esri.sde.sdk.pe.PeObject
fromAnyString, fromStringByType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeDatum

public PeDatum(java.lang.String name,
               PeSpheroid spheroid)
        throws PeProjectionException
Constructor.

Throws:
PeProjectionException

PeDatum

public PeDatum(java.lang.String str)
        throws PeProjectionException
Constructor.

Throws:
PeProjectionException
Method Detail

fromString

public static PeHVDatum fromString(java.lang.String str)
                            throws PeProjectionException
Create a datum from a string

Throws:
PeProjectionException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone a datum.

Overrides:
clone in class PeHVDatum
Throws:
java.lang.CloneNotSupportedException

delete

public void delete()
Deconstructor.

Overrides:
delete in class PeHVDatum

getName

public java.lang.String getName()
Retrieve a datum's name.

Specified by:
getName in class PeObject

getType

public int getType()
Retrieve a datum's type.

Specified by:
getType in class PeObject

getStatus

public int getStatus()
Retrieve a datum's status.

Specified by:
getStatus in class PeObject

isEqual

public boolean isEqual(PeObject peobj)
Check if both objects are equal.

Specified by:
isEqual in class PeObject

isEqual

public boolean isEqual(PeDatum datum)
Test if two datums are identical.


toString

public java.lang.String toString()
Retrieve a datum's external representation.

Overrides:
toString in class PeHVDatum

toString

public java.lang.String toString(int mode)
Retrieve a datum's extended external representation.

Overrides:
toString in class PeHVDatum

getAuth

public PeAuthority getAuth()
Retrieve a datum's authority.

Specified by:
getAuth in class PeObject

setAuth

public void setAuth(PeAuthority authority)
Store an authority in a datum.

Specified by:
setAuth in class PeObject

getSpheroid

public PeSpheroid getSpheroid()
Retrieve a datum's spheroid.


getCode

public int getCode()
Specified by:
getCode in class PeObject