@Override public QName particle(final XSParticle particle) { return particle.getTerm().apply(MetaPlugin.SCHEMA_TYPE_FUNC); }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
public Multiplicity particle( XSParticle p ) { Multiplicity m = p.getTerm().apply(this); BigInteger max; if (m.max==null || (BigInteger.valueOf(XSParticle.UNBOUNDED).equals(p.getMaxOccurs()))) max=null; else max=p.getMaxOccurs(); return Multiplicity.multiply( m, Multiplicity.create(p.getMinOccurs(),max) ); }
public Multiplicity particle(XSParticle p) { Multiplicity m = p.getTerm().apply(this); BigInteger max; if (m == null || m.max == null || (BigInteger.valueOf(XSParticle.UNBOUNDED).equals(p .getMaxOccurs()))) max = null; else max = p.getMaxOccurs(); return Multiplicity.multiply(m, Multiplicity.create(p.getMinOccurs(), max)); }
public Multiplicity particle( XSParticle p ) { Multiplicity m = p.getTerm().apply(this); BigInteger max; if (m.max==null || (BigInteger.valueOf(XSParticle.UNBOUNDED).equals(p.getMaxOccurs()))) max=null; else max=p.getMaxOccurs(); return Multiplicity.multiply( m, Multiplicity.create(p.getMinOccurs(),max) ); }
public Expression particle(XSParticle p) { current = p; Expression e = p.getTerm().apply(this); if(p.isRepeated()) e = new OneOrMore(e); if (BigInteger.ZERO.equals(p.getMinOccurs())) e = new Choice(e,Expression.EPSILON); return e; }
public Expression particle(XSParticle p) { current = p; Expression e = p.getTerm().apply(this); if(p.isRepeated()) e = new OneOrMore(e); if (BigInteger.ZERO.equals(p.getMinOccurs())) e = new Choice(e,Expression.EPSILON); return e; }
public Expression particle(XSParticle p) { current = p; Expression e = p.getTerm().apply(this); if(p.isRepeated()) e = new OneOrMore(e); if (BigInteger.ZERO.equals(p.getMinOccurs())) e = new Choice(e,Expression.EPSILON); return e; }
public NameClass modelGroup(XSModelGroup group) { NameClass nc = NameClass.NULL; for( int i=0; i<group.getSize(); i++ ) nc = new ChoiceNameClass(nc, group.getChild(i).getTerm().apply(this)); return nc; }
@Override public NameClass modelGroup(XSModelGroup group) { NameClass nc = NameClass.NULL; for( int i=0; i<group.getSize(); i++ ) nc = new ChoiceNameClass(nc, group.getChild(i).getTerm().apply(this)); return nc; }
public NameClass modelGroup(XSModelGroup group) { NameClass nc = NameClass.NULL; for( int i=0; i<group.getSize(); i++ ) nc = new ChoiceNameClass(nc, group.getChild(i).getTerm().apply(this)); return nc; }
@Override public NameClass modelGroup(XSModelGroup group) { NameClass nc = NameClass.NULL; for( int i=0; i<group.getSize(); i++ ) nc = new ChoiceNameClass(nc, group.getChild(i).getTerm().apply(this)); return nc; }
public Expression particle(XSParticle p) { current = p; Expression e = p.getTerm().apply(this); if(p.isRepeated()) e = new OneOrMore(e); if(p.getMinOccurs()==0) e = new Choice(e,Expression.EPSILON); return e; }
public Expression particle(XSParticle p) { current = p; Expression e = p.getTerm().apply(this); if(p.isRepeated()) e = new OneOrMore(e); if(p.getMinOccurs()==0) e = new Choice(e,Expression.EPSILON); return e; }
public Multiplicity particle( XSParticle p ) { Multiplicity m = p.getTerm().apply(this); Integer max; if(m.max==null || p.getMaxOccurs()==XSParticle.UNBOUNDED) max=null; else max=p.getMaxOccurs(); return Multiplicity.multiply( m, Multiplicity.create(p.getMinOccurs(),max) ); }
public Multiplicity particle( XSParticle p ) { Multiplicity m = p.getTerm().apply(this); Integer max; if(m.max==null || p.getMaxOccurs()==XSParticle.UNBOUNDED) max=null; else max=p.getMaxOccurs(); return Multiplicity.multiply( m, Multiplicity.create(p.getMinOccurs(),max) ); }