xb.xml.bind.jaxb-osgi.4.0.0.source-code.modelGroup.rng Maven / Gradle / Ivy
The newest version!
import java.util.Vector;
private ModelGroupImpl result;
private final List particles = new ArrayList();
fa = (null);
(null,AnnotationContext.MODELGROUP);
particles.add(childParticle);
XSModelGroup.Compositor compositor = null;
if(compositorName.equals("all")) compositor = XSModelGroup.ALL;
if(compositorName.equals("sequence")) compositor = XSModelGroup.SEQUENCE;
if(compositorName.equals("choice")) compositor = XSModelGroup.CHOICE;
if(compositor==null)
throw new InternalError("unable to process "+compositorName);
result = new ModelGroupImpl( $runtime.document, annotation, locator, fa, compositor,
(ParticleImpl[])particles.toArray(new ParticleImpl[0]));
private Locator wloc;
private Locator loc;
private ParticleImpl result;
private String compositorName;
compositorName = $localName;
loc = $runtime.copyLocator();
all
choice
sequence
result = new ParticleImpl( $runtime.document, null, term, loc, occurs.max, occurs.min );
loc = $runtime.copyLocator();
(null,AnnotationContext.PARTICLE);
result = new ParticleImpl( $runtime.document, annotation, new DelayedRef.ModelGroup(
$runtime, loc, $runtime.currentSchema, groupName ),
loc, occurs.max, occurs.min );
loc = $runtime.copyLocator();
(null,AnnotationContext.PARTICLE);
result = new ParticleImpl( $runtime.document, annotation, new DelayedRef.Element(
$runtime, loc, $runtime.currentSchema, elementTypeName ),
loc, occurs.max, occurs.min );
result = new ParticleImpl( $runtime.document, null,
anonymousElementDecl,
loc, occurs.max, occurs.min );
wloc = $runtime.copyLocator();
result = new ParticleImpl( $runtime.document, null, wcBody, wloc, occurs.max, occurs.min );
private ModelGroupDeclImpl result;
private Locator loc,mloc;
private String compositorName;
loc = $runtime.copyLocator();
(null,AnnotationContext.MODELGROUP_DECL);
fa = (null);
mloc = $runtime.copyLocator();
compositorName = $localName;
all
choice
sequence
result = new ModelGroupDeclImpl( $runtime.document,
annotation, loc, fa,
$runtime.currentSchema.getTargetNamespace(),
name,
term
);