org.enhydra.apache.xerces.validators.common
Class CMLeaf

java.lang.Object
  |
  +--org.enhydra.apache.xerces.validators.common.CMNode
        |
        +--org.enhydra.apache.xerces.validators.common.CMLeaf

public class CMLeaf
extends CMNode

Content model leaf node.

Version:
$Id: CMLeaf.java,v 1.2 2005/01/26 08:28:44 jkjome Exp $

Constructor Summary
CMLeaf(QName element)
          Constructs a content model leaf.
CMLeaf(QName element, int position)
          Constructs a content model leaf.
 
Method Summary
protected  void calcFirstPos(CMStateSet toSet)
           
protected  void calcLastPos(CMStateSet toSet)
           
(package private)  QName getElement()
           
(package private)  int getPosition()
           
(package private)  boolean isNullable()
           
(package private)  void setPosition(int newPosition)
           
(package private)  String toString(StringPool stringPool)
           
 
Methods inherited from class org.enhydra.apache.xerces.validators.common.CMNode
firstPos, lastPos, setFollowPos, setMaxStates, type
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMLeaf

public CMLeaf(QName element,
              int position)
       throws CMException
Constructs a content model leaf.

CMLeaf

public CMLeaf(QName element)
       throws CMException
Constructs a content model leaf.
Method Detail

getElement

final QName getElement()

getPosition

final int getPosition()

setPosition

final void setPosition(int newPosition)

isNullable

boolean isNullable()
             throws CMException
Overrides:
isNullable in class CMNode

toString

String toString(StringPool stringPool)

calcFirstPos

protected void calcFirstPos(CMStateSet toSet)
                     throws CMException
Overrides:
calcFirstPos in class CMNode

calcLastPos

protected void calcLastPos(CMStateSet toSet)
                    throws CMException
Overrides:
calcLastPos in class CMNode


Copyright © 1999 The Apache Software Foundation. All Rights reserved.