AddParticle() private method

private AddParticle ( XmlSchemaParticle particle ) : void
particle XmlSchemaParticle
return void
Example #1
0
 /*
     <any 
       id = ID 
       maxOccurs = for maxOccurs : 1
       minOccurs = nonNegativeInteger : 1
       namespace = ##any | ##other | list of {uri, ##targetNamespace, ##local} : ##any
       processContents = skip | lax | strict : strict
       {any attributes with non-schema namespace . . .}>
       Content: (annotation?)
     </any>
 */
 private static void InitAny(XsdBuilder builder, string value) {
     builder.xso = builder.particle = builder.anyElement = new XmlSchemaAny();
     builder.AddParticle(builder.anyElement);
 } 
Example #2
0
 /*
      <sequence 
       id = ID 
       maxOccurs = for maxOccurs : 1
       minOccurs = nonNegativeInteger : 1
       {any attributes with non-schema namespace . . .}>
       Content: (annotation? , (element | group | choice | sequence | any)*)
     </sequence>
 */
 private static void InitSequence(XsdBuilder builder, string value) {
     builder.xso = builder.particle = builder.sequence = new XmlSchemaSequence();
     builder.AddParticle(builder.sequence);
 }
Example #3
0
 /*
     <all 
       id = ID 
       maxOccurs = for maxOccurs : 1
       minOccurs = nonNegativeInteger : 1
       {any attributes with non-schema namespace . . .}>
       Content: (annotation? , element*)
     </all>
 */
 private static void InitAll(XsdBuilder builder, string value) {
     builder.xso = builder.particle = builder.all = new XmlSchemaAll();
     builder.AddParticle(builder.all);
 }
Example #4
0
 /*
     <choice 
       id = ID 
       maxOccurs = for maxOccurs : 1
       minOccurs = nonNegativeInteger : 1
       {any attributes with non-schema namespace . . .}>
       Content: (annotation? , (element | group | choice | sequence | any)*)
     </choice>
 */
 private static void InitChoice(XsdBuilder builder, string value) {
     builder.xso = builder.particle = builder.choice = new XmlSchemaChoice();
     builder.AddParticle(builder.choice);
 }
Example #5
0
 /*
     <group 
       id = ID 
       maxOccurs = for maxOccurs : 1
       minOccurs = nonNegativeInteger : 1
       ref = QName 
       {any attributes with non-schema namespace . . .}>
       Content: (annotation?)
     </group>
 */
 private static void InitGroupRef(XsdBuilder builder, string value) {
     builder.xso = builder.particle = builder.groupRef = new XmlSchemaGroupRef();
     builder.AddParticle(builder.groupRef);
 }