|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectacedb.Aceobj
The Aceobj objects are constructed by the Ace class. It is internally represented by a genreal tree suited for the Ace model. It does not have any database functions as defined in the AcePerl interface. For database functions use the Ace class.
| Nested Class Summary | |
protected class |
Aceobj.AceobjNode
|
protected class |
Aceobj.DumpStore
for storing the aceDump temperarily |
| Constructor Summary | |
Aceobj()
Construct an empty object. |
|
Aceobj(Aceobj.AceobjNode node)
construct an object from a tree node. |
|
Aceobj(java.lang.String objdump)
Construct a full Aceobj from the acedump, should implement construction one line at time ON-DEMAND for efficiency. |
|
| Method Summary | |
Aceobj |
at(java.lang.String tag_path)
take a tag path separated by dot (.). |
Aceobj |
down()
similar to right(), return a subtree of the parent |
protected static Aceobj.AceobjNode |
find(Aceobj.AceobjNode n,
java.lang.String tag)
A search function, not to be used by the public. |
Aceobj |
get(java.lang.String tag)
Search the object for the tag. |
java.lang.String |
getAceClass()
return the Ace class type such as Sequence, Paper, int,. |
boolean |
isTag()
|
void |
make(java.lang.String aceDump)
make an object out of ace dump string. |
java.lang.String |
name()
return the value of the class, such as Sequence, Paper, etc |
void |
print()
print the object tree, row first. |
protected static void |
print(Aceobj.AceobjNode o)
dump out the node type:value, same format as ACE model. |
Aceobj |
right()
low level tree traversal, will not follow into the database. |
protected Aceobj.AceobjNode |
searchDown(Aceobj.AceobjNode subtree,
java.lang.String tag)
search the immediate right tags downward. |
java.util.Vector |
tags()
return the top level tags as a vector. |
java.lang.String |
toString()
return the root's value as string |
java.lang.String |
type()
return the ace class type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Aceobj()
public Aceobj(java.lang.String objdump)
public Aceobj(Aceobj.AceobjNode node)
| Method Detail |
public void make(java.lang.String aceDump)
aceDump - is the dump from one object dump onlyprotected static void print(Aceobj.AceobjNode o)
public void print()
protected static Aceobj.AceobjNode find(Aceobj.AceobjNode n,
java.lang.String tag)
public java.lang.String getAceClass()
public java.lang.String type()
public java.lang.String name()
public java.lang.String toString()
public boolean isTag()
public java.util.Vector tags()
public Aceobj right()
public Aceobj down()
public Aceobj at(java.lang.String tag_path)
throws AceException
AceExceptionpublic Aceobj get(java.lang.String tag)
protected Aceobj.AceobjNode searchDown(Aceobj.AceobjNode subtree,
java.lang.String tag)
throws AceException
AceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||