|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.koala.io.RawNode
public abstract class RawNode
A view of a node in byte representation. Nodes are created using the static
createNode(org.planx.xmlstore.koala.io.NodeFileSystem, org.planx.io.Locator) method.
| Method Summary | |
|---|---|
abstract int |
childCount()
|
static RawNode |
createNode(NodeFileSystem fs,
Locator loc)
Creates a RawNode based on the type read from the location
of a node. |
boolean |
equals(Object o)
|
abstract List<List<Byte>> |
getAttributes()
|
abstract RawNode |
getChild(NodeFileSystem fs,
int index)
|
abstract List<Locator> |
getChildren()
|
int |
getHeight()
|
Locator |
getLocator()
|
abstract byte |
getType()
|
abstract List<Byte> |
getValue()
|
Object |
getVisitToken()
|
int |
hashCode()
|
abstract boolean |
isDirty(int index)
|
abstract boolean |
isVirtual()
|
abstract Locator |
save(NodeFileSystem fs,
boolean doLazySave)
Synchronizes the byte representation of the node if necessary. |
abstract void |
setChild(int index,
Locator child)
|
abstract void |
setChild(int index,
RawNode child)
Changes a child pointer of this node in its in-memory representation. |
void |
setHeight(int height)
|
abstract void |
setIsShared(boolean isShared)
Updates the isShared status of this node in the underlying
byte representation. |
void |
setVisitToken(Object token)
|
abstract long |
size()
Returns the number of bytes that the byte representation of this RawNode occupies. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static RawNode createNode(NodeFileSystem fs,
Locator loc)
throws IOException
RawNode based on the type read from the location
of a node.
IOExceptionpublic abstract boolean isVirtual()
public abstract byte getType()
public abstract List<Byte> getValue()
public abstract List<List<Byte>> getAttributes()
public abstract List<Locator> getChildren()
public abstract int childCount()
public abstract RawNode getChild(NodeFileSystem fs,
int index)
throws IOException
IOException
public abstract void setChild(int index,
Locator child)
throws IOException
IOException
public abstract void setChild(int index,
RawNode child)
throws IOException
save(NodeFileSystem,boolean) method is called.
IOExceptionpublic abstract boolean isDirty(int index)
public abstract Locator save(NodeFileSystem fs,
boolean doLazySave)
throws IOException
FileSystem.allocate(long). In any
case, a Locator to the updated byte representation is
returned. This RawNode will henceforth represent the new
byte representation.
IOException
public abstract void setIsShared(boolean isShared)
throws IOException
isShared status of this node in the underlying
byte representation. Thus, this method can be called without calling
save(NodeFileSystem,boolean) later.
IOExceptionpublic abstract long size()
RawNode occupies.
public Locator getLocator()
public int getHeight()
public void setHeight(int height)
public Object getVisitToken()
public void setVisitToken(Object token)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||