|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.xml.dtd.ElementStack
public class ElementStack
A stack of DTDElement instances, useful when using a SAX parser.
Constructor Summary | |
---|---|
ElementStack()
Constructor. |
Method Summary | |
---|---|
boolean |
isEmpty()
Indicates whether the stack is empty. |
DTDElement |
peek()
Peek at the top element on the stack without removing it from the stack. |
DTDElement |
pop()
Pop an item off of the stack. |
void |
push(DTDElement element)
Push an item onto the stack. |
int |
size()
Return the number of elements on the stack. |
boolean |
topHasPCDATA()
Indicates whether the top item on the stack contains PCDATA content. |
boolean |
topIsBlockElement()
Reports whether the top element on the stack should be treated as a block element or as an inline element. |
boolean |
topIsInsideMixedContent()
Reports whether the top element on the stack is inside of any element that contains mixed content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementStack()
Method Detail |
---|
public void push(DTDElement element)
element
- The element to push onto the stack.public DTDElement pop()
public DTDElement peek()
public int size()
public boolean isEmpty()
public boolean topIsBlockElement()
public boolean topIsInsideMixedContent()
public boolean topHasPCDATA()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |