com.esri.sde.sdk.pe
Class PeAuthority

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

public final class PeAuthority
extends PeObject

An authority defines the source and optionally the version for a factory code used to create the pe object.


Constructor Summary
PeAuthority(java.lang.String str)
          Constructor.
PeAuthority(java.lang.String name, int code, java.lang.String version)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clone an authority.
 void delete()
          Delete a authority object.
static PeAuthority fromString(java.lang.String str)
          Create an authority from a string.
 PeAuthority getAuth()
          Retrieve an authority's authority.
 int getCode()
           
 java.lang.String getName()
          Retrieve a authority's name.
 int getStatus()
          Retrieve a authority's status.
 int getType()
          Retrieve a authority's type.
 java.lang.String getVersion()
           
 boolean isEqual(PeAuthority authority)
          Test if two authorities are identical.
 boolean isEqual(PeObject peobj)
          Check if both objects are equal.
 void setAuth(PeAuthority authority)
          Store an authority in an authority.
 java.lang.String toString()
          Retrieve an authority's external representation.
 java.lang.String toString(int mode)
          Retrieve an authority's extended external representation.
 
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

PeAuthority

public PeAuthority(java.lang.String name,
                   int code,
                   java.lang.String version)
            throws PeProjectionException
Constructor.

Throws:
PeProjectionException

PeAuthority

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

Throws:
PeProjectionException
Method Detail

fromString

public static PeAuthority fromString(java.lang.String str)
                              throws PeProjectionException
Create an authority from a string.

Throws:
PeProjectionException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone an authority.

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

delete

public void delete()
Delete a authority object.

Specified by:
delete in class PeObject

getName

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

Specified by:
getName in class PeObject

getType

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

Specified by:
getType in class PeObject

getStatus

public int getStatus()
Retrieve a authority'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(PeAuthority authority)
Test if two authorities are identical.


toString

public java.lang.String toString()
Retrieve an authority's external representation.

Specified by:
toString in class PeObject

toString

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

Specified by:
toString in class PeObject

getAuth

public PeAuthority getAuth()
Retrieve an authority's authority.

Specified by:
getAuth in class PeObject

setAuth

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

Specified by:
setAuth in class PeObject

getCode

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

getVersion

public java.lang.String getVersion()