Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.lists.AbstractSequence
gnu.lists.TreeList
gnu.mapping.Values
gnu.kawa.xml.Nodes
public class Nodes
extends Values
Field Summary |
Fields inherited from class gnu.lists.TreeList | |
BEGIN_ATTRIBUTE_LONG , BEGIN_DOCUMENT , END_DOCUMENT , END_GROUP_LONG , END_GROUP_SHORT , INT_FOLLOWS , POSITION_PAIR_FOLLOWS , PROCESSING_INSTRUCTION , attrStart , data , docStart , gapEnd , gapStart , objects , oindex |
Method Summary | |
void |
|
void | |
void |
|
void | |
void | |
void |
|
int |
|
Object |
|
int | |
int |
|
Object |
|
AbstractSequence |
|
Node |
|
static SeqPosition |
|
int |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class gnu.mapping.Values | |
call_with , canonicalize , getValues , make , make , make , make , make , nextIndex , nextValue , print , readExternal , readResolve , values$V , writeExternal , writeValues |
public void beginAttribute(String attrName, Object attrType)
Write a attribute for the current group. This is only allowed immediately after a beginGroup.
- Specified by:
- beginAttribute in interface Consumer
- Overrides:
- beginAttribute in interface TreeList
public void beginDocument()
- Specified by:
- beginDocument in interface Consumer
- Overrides:
- beginDocument in interface TreeList
public void beginGroup(String typeName, Object type)
- Specified by:
- beginGroup in interface Consumer
- Overrides:
- beginGroup in interface TreeList
public void endAttribute()
- Specified by:
- endAttribute in interface Consumer
- Overrides:
- endAttribute in interface TreeList
public void endDocument()
- Specified by:
- endDocument in interface Consumer
- Overrides:
- endDocument in interface TreeList
public void endGroup(String typeName)
public int getLength()
public int getPos(int index)
Optimization of ((SeqPosition) get(index)). ipos.
public Object getPosNext(int ipos)
Get the element following the specified position.
- Overrides:
- getPosNext in interface TreeList
- Parameters:
ipos
- the specified position.
- Returns:
- the following element, or eofValue if there is none. Called by SeqPosition.getNext.
public AbstractSequence getSeq(int index)
Optimization of ((SeqPosition) get(index)).sequence. However returns null instead of throwing IndexOutOfBoundsException if index >= count.
public Node item(int index)
public void write(char[] buf, int off, int len)
public void writeBaseUri(Object uri)
Write/set the base-uri property of the current element or document. Only allowed immediately following beginDocument, beginGroup, or writeProcessingInstruction.
- Specified by:
- writeBaseUri in interface XConsumer
- Overrides:
- writeBaseUri in interface TreeList
public void writeBoolean(boolean v)
- Specified by:
- writeBoolean in interface Consumer
- Overrides:
- writeBoolean in interface TreeList
public void writeCDATA(char[] chars, int offset, int length)
- Specified by:
- writeCDATA in interface XConsumer
- Overrides:
- writeCDATA in interface TreeList
public void writeChar(int v)
public void writeChars(String str)
- Specified by:
- writeChars in interface Consumer
- Overrides:
- writeChars in interface TreeList
public void writeComment(char[] chars, int offset, int length)
- Specified by:
- writeComment in interface XConsumer
- Overrides:
- writeComment in interface TreeList
public void writeDouble(double v)
- Specified by:
- writeDouble in interface Consumer
- Overrides:
- writeDouble in interface TreeList
public void writeFloat(float v)
- Specified by:
- writeFloat in interface Consumer
- Overrides:
- writeFloat in interface TreeList
public void writeInt(int v)
public void writeLong(long v)
public void writeObject(Object v)
- Specified by:
- writeObject in interface Consumer
- Overrides:
- writeObject in interface TreeList
public void writePosition(AbstractSequence seq, int ipos)
- Specified by:
- writePosition in interface PositionConsumer
- Overrides:
- writePosition in interface TreeList
public void writeProcessingInstruction(String target, char[] content, int offset, int length)
- Specified by:
- writeProcessingInstruction in interface XConsumer
- Overrides:
- writeProcessingInstruction in interface TreeList