FileDocCategorySizeDatePackage
XSCMUniOp.javaAPI DocJava SE 6 API3312Tue Jun 10 00:22:46 BST 2008com.sun.org.apache.xerces.internal.impl.xs.models

XSCMUniOp

public class XSCMUniOp extends CMNode
Content model Uni-Op node.
xerces.internal
author
Neil Graham, IBM
version
$$

Fields Summary
private CMNode
fChild
Constructors Summary
public XSCMUniOp(int type, CMNode childNode)

        super(type);

        // Insure that its one of the types we require
        if ((type() != XSParticleDecl.PARTICLE_ZERO_OR_ONE)
        &&  (type() != XSParticleDecl.PARTICLE_ZERO_OR_MORE)
        &&  (type() != XSParticleDecl.PARTICLE_ONE_OR_MORE)) {
            throw new RuntimeException("ImplementationMessages.VAL_UST");
        }

        // Store the node and init any data that needs it
        fChild = childNode;
    
Methods Summary
protected voidcalcFirstPos(com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet toSet)

        // Its just based on our child node's first pos
        toSet.setTo(fChild.firstPos());
    
protected voidcalcLastPos(com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet toSet)

        // Its just based on our child node's last pos
        toSet.setTo(fChild.lastPos());
    
final com.sun.org.apache.xerces.internal.impl.dtd.models.CMNodegetChild()

        return fChild;
    
public booleanisNullable()

        //
        //  For debugging purposes, make sure we got rid of all non '*'
        //  repetitions. Otherwise, '*' style nodes are always nullable.
        //
        if (type() == XSParticleDecl.PARTICLE_ONE_OR_MORE)
	        return fChild.isNullable();
	    else
	        return true;