|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.scheduler.runtime.AbstractIdentifier
public abstract class AbstractIdentifier
XML Serializable
| Nested Class Summary | |
|---|---|
static interface |
AbstractIdentifier.ConcreteInstanceFactory
A helper interface. |
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial Version UID. |
| Constructor Summary | |
|---|---|
AbstractIdentifier()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this AbstractIdentifier This is a deep copy operation. |
boolean |
equals(Object other)
Compares another object to this AbstractIdentifier instance. |
byte[] |
getBytes()
Obtains a byte representation of this id. |
int |
hashCode()
|
protected static AbstractIdentifier |
parseID(byte[] byteGUID,
AbstractIdentifier.ConcreteInstanceFactory cf)
This is helper method used by ancestor to implement creation of an instance of the given ancestor class from a byte array representation of a guid. |
protected static AbstractIdentifier |
parseID(String stringGUID,
AbstractIdentifier.ConcreteInstanceFactory cf)
This is helper method used by heir to implement creation of an instance of the given heir class from a hex-string representation of a guid. |
void |
setBytes(byte[] byteGUID)
This method sets the guid contained in this AbstractIdentifier. |
protected void |
setBytesNoCloneAndCheck(byte[] byteGUID)
Sets the byte representation of guid for this identity object. |
String |
toString()
Obtains a hex-string representation of this GUID |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public AbstractIdentifier()
| Method Detail |
|---|
public byte[] getBytes()
GUID and it
can be used to construct a new GUID.
- Returns:
- - a byte representation of this ID.
public Object clone()
throws CloneNotSupportedException
AbstractIdentifier This is a deep copy operation.
clone in class ObjectCloneNotSupportedException - - thrown if some clone error occurred. Generally
this exception should not be thrown but it's left to allow subclasses to prohibit
clonning.
public void setBytes(byte[] byteGUID)
throws IllegalArgumentException
AbstractIdentifier.
byteGUID - - a byte array representation of a GUID
IllegalArgumentException - - if the byte array does not represent a valid guid.
NullPointerException - - if byteGUID is null.
protected void setBytesNoCloneAndCheck(byte[] byteGUID)
throws IllegalStateException
byteGUID - - the byte array representation of guid.
IllegalStateException - - if this AbstractIdentifier has already been initialized.public boolean equals(Object other)
AbstractIdentifier instance. Two abstract identifiers
are considered equal if they both contain the same guid.
equals in class Objectother - - the other object to compare to this one.
public int hashCode()
hashCode in class Objectpublic String toString()
GUID
toString in class ObjectGUID
protected static AbstractIdentifier parseID(byte[] byteGUID,
AbstractIdentifier.ConcreteInstanceFactory cf)
byteGUID - - a byte array representation of a guid.cf - - ConcreteInstanceFactory used to create instance of the concrete
ancestor.
byteGUID is null. Otherwise this method returns the object
return by cf.createNotInitialized(), holding the guid represented by
byteGUID
- Throws:
IllegalStateException - - if the supplied byte array does not contain a valid guid.
protected static AbstractIdentifier parseID(String stringGUID,
AbstractIdentifier.ConcreteInstanceFactory cf)
stringGUID - - a hex-string representation of a guid.cf - - ConcreteInstanceFactory used to create instance of the concrete
heir.
stringGUID is null. Otherwise this method returns the object
return by cf.createNotInitialized(), holding the guid represented by
stringGUID
- Throws:
IllegalStateException - - if the supplied hex-string does not contain a valid guid.
|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||