|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.abstractcontent.MBaseID
public final class MBaseID
Objects of this class denote the reference to an element within an MBase as can
be reached using MBaseRef, it provides parsing and resolution mechanisms.
Objects of this class, currently, use an underlying MBaseID.NullMBaseID object which provides
the parsing and resolution facilities. It is meant as a more abstract construction
than the very concrete MBaseID.NullMBaseID object.
| Nested Class Summary | |
|---|---|
static class |
MBaseID.NullMBaseID
|
| Constructor Summary | |
|---|---|
MBaseID(ID id)
Constructs an MBaseID from an OmdocJdom MBaseID.NullMBaseID object. |
|
MBaseID(MBaseID baseID,
String stringID)
Contructs an ID that will be resolved relative to the baseID. |
|
MBaseID(String stringID)
Constructs an ID using a string expected to contain all information to create an absolute one. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object obj)
Compares to MBaseIDs comparing their OmdocJdom ID versions. |
String |
getAbsoluteForm()
Constructs the string containing all information so as to be reparsed into a an MBaseID. |
ID |
getOJID()
Returns the stored ojID or computes it if needed. |
String |
getRelativeForm(MBaseID base)
Constructs the string containing the fewest necessary information for an element to be used as attribute if child of an object of id base. |
int |
hashCode()
Returns a hashcode for the MBaseID computed from the absolute form. |
static void |
main(String[] args)
|
String |
toString()
Returns a string representation of this ID useful for debugging only. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MBaseID(MBaseID baseID,
String stringID)
baseID - The base-ID from where to interpret the IDstringID - The relative part expressing the difference with the base.public MBaseID(String stringID)
stringID - The MBaseIDpublic MBaseID(ID id)
MBaseID.NullMBaseID object.
id - From this object will be extracted all information.| Method Detail |
|---|
public String getAbsoluteForm()
public String getRelativeForm(MBaseID base)
base.
public ID getOJID()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - The MBaseID to compare to.public String toString()
toString in class Objectpublic int compareTo(Object o)
compareTo in interface Comparable
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||