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 |
Method Summary | |
Consumer |
|
void |
|
void |
|
void | |
void | |
void | |
int |
|
Object |
|
int | |
int |
|
Object |
|
AbstractSequence |
|
static KNode | |
int |
|
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class gnu.mapping.Values | |
call_with , canonicalize , countValues , getValues , make , make , make , make , make , nextIndex , nextValue , print , readExternal , readResolve , values$V , writeExternal , writeValues |
public void beginEntity(Object base)
- Specified by:
- beginEntity in interface XConsumer
- Overrides:
- beginEntity in interface TreeList
public void endAttribute()
End of an attribute or end of an actual parameter. The former use matches a startAttribute; the latter may not, and can be used to separate parameters in a parameter list. This double duty suggsts the method should at least be re-named.
- 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 endElement()
- Specified by:
- endElement in interface Consumer
- Overrides:
- endElement in interface TreeList
public void endEntity()
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 void startAttribute(Object attrType)
Write a attribute for the current element. This is only allowed immediately after a startElement.
- Specified by:
- startAttribute in interface Consumer
- Overrides:
- startAttribute in interface TreeList
public void startDocument()
- Specified by:
- startDocument in interface Consumer
- Overrides:
- startDocument in interface TreeList
public void startElement(Object type)
- Specified by:
- startElement in interface Consumer
- Overrides:
- startElement in interface TreeList
public void write(CharSequence str, int start, int length)
public void write(String str)
public void write(char[] buf, int off, int len)
public void write(int v)
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 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