stuart.xmlApp.dtd
Class DTDChildElement

java.lang.Object
  |
  +--stuart.xmlApp.dtd.DTDChildElement
All Implemented Interfaces:
java.lang.Comparable

public class DTDChildElement
extends java.lang.Object
implements java.lang.Comparable

Used within complex elements, a child element is contained within the element tag itself.

E.g. <!ELEMENT name (child1* |child2)>


Field Summary
static boolean ALTERNATE
           
static char ONE
           
static char ONE_OR_MORE
           
static boolean ORDERED
           
static int sequenceGenerator
           
static char ZERO_OR_MORE
           
static char ZERO_OR_ONE
           
 
Constructor Summary
DTDChildElement(DTDElement e, char m, DTDElementOnlyElement p, boolean v)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 DTDElement getElement()
           
 char getMultiplicity()
           
 int getSequence()
           
 boolean getVisibility()
           
static void main(java.lang.String[] args)
           
 void setMultiplicity(char m)
           
 void setVisibility(boolean v)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ZERO_OR_MORE

public static final char ZERO_OR_MORE
See Also:
Constant Field Values

ONE_OR_MORE

public static final char ONE_OR_MORE
See Also:
Constant Field Values

ZERO_OR_ONE

public static final char ZERO_OR_ONE
See Also:
Constant Field Values

ONE

public static final char ONE
See Also:
Constant Field Values

ORDERED

public static final boolean ORDERED
See Also:
Constant Field Values

ALTERNATE

public static final boolean ALTERNATE
See Also:
Constant Field Values

sequenceGenerator

public static int sequenceGenerator
Constructor Detail

DTDChildElement

public DTDChildElement(DTDElement e,
                       char m,
                       DTDElementOnlyElement p,
                       boolean v)
                throws java.lang.IllegalArgumentException
Method Detail

getMultiplicity

public char getMultiplicity()

setMultiplicity

public void setMultiplicity(char m)

getSequence

public int getSequence()

getElement

public DTDElement getElement()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

setVisibility

public void setVisibility(boolean v)

getVisibility

public boolean getVisibility()

main

public static void main(java.lang.String[] args)