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;
//
// 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;