|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.schema.impl.iterator.ContentInfo
public class ContentInfo
Represents item returned by the InsertPointIterator
. This
class is immutable however extending classes may be mutable.
Field Summary | |
---|---|
sk.baka.ikslibs.ptr.DomPointer |
ptr
DOM pointer, pointing to context node. |
sk.baka.ikslibs.ptr.DomPointer |
ptrInsert
Points to point, where node is insertable. |
int |
type
Type of node, that follows the insertpoint. |
static int |
TYPE_CHARDATA
Node, following the insertpoint, is CharacterData. |
static int |
TYPE_ELEMENT
Node, following the insertpoint, is Element. |
static int |
TYPE_NONE
Following node is not valid/none. |
Constructor Summary | |
---|---|
ContentInfo(sk.baka.ikslibs.ptr.DomPointer ptr,
String value,
Element e)
Constructs instance of InsertPointInfo . |
Method Summary | |
---|---|
static ContentInfo |
create(sk.baka.ikslibs.ptr.DomPointer ptr,
Node node)
Creates instance of the object. |
boolean |
equals(Object obj)
|
Element |
getElement()
Returns element represented by this object. |
String |
getValue()
Returns string value of active node. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_ELEMENT
public static final int TYPE_CHARDATA
public static final int TYPE_NONE
public final sk.baka.ikslibs.ptr.DomPointer ptr
public final sk.baka.ikslibs.ptr.DomPointer ptrInsert
ptr
property. When the context node is first node in the
entity reference, then this pointer will point to this reference node.
Otherwise, no node is insertable before the context node and this pointer
is null
.
public final int type
TYPE_NONE
, then there is no node, that follows this
insertpoint (insertpoint is after last node).
Constructor Detail |
---|
public ContentInfo(sk.baka.ikslibs.ptr.DomPointer ptr, String value, Element e)
InsertPointInfo
.
ptr
- new pointer.value
- if this object will represent TYPE_CHARDATA
,
then it must specify non-null value. Otherwise, it must be
null
.e
- if this object will represent TYPE_ELEMENT
, then
it must hold non-null reference to element. Otherwise, it must be
null
.Method Detail |
---|
public String getValue()
TYPE_CHARDATA
.
IllegalStateException
- when function fails.public Element getElement()
TYPE_ELEMENT
type).
IllegalStateException
- when function fails.public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public static ContentInfo create(sk.baka.ikslibs.ptr.DomPointer ptr, Node node)
ptr
- the pointer.node
- the node. If null
then TYPE_NONE
object is constructed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |