• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching defs:particle

656  * A particle component.
664 xmlSchemaTreeItemPtr next; /* next particle */
685 xmlSchemaTreeItemPtr children; /* first particle (OR "element decl" OR "wildcard") */
1140 return(BAD_CAST "particle");
4258 * @particle: the schema particle
4265 xmlSchemaContentModelDump(xmlSchemaParticlePtr particle, FILE * output, int depth)
4272 if (particle == NULL)
4278 if (particle->children == NULL) {
4279 fprintf(output, "MISSING particle term\n");
4282 term = particle->children;
4310 if (particle->minOccurs != 1)
4311 fprintf(output, " min: %d", particle->minOccurs);
4312 if (particle->maxOccurs >= UNBOUNDED)
4314 else if (particle->maxOccurs != 1)
4315 fprintf(output, " max: %d", particle->maxOccurs);
4325 if (particle->next != NULL)
4326 xmlSchemaContentModelDump((xmlSchemaParticlePtr) particle->next,
5480 * Adds an XML schema particle component.
5494 fprintf(stderr, "Adding particle component\n");
5499 xmlSchemaPErrMemory(ctxt, "allocating particle component",
6824 * TODO: Maybe we should better not create the particle,
6863 * Parsea a XML schema <any> element. A particle and wildcard
6868 * Returns the particle or NULL in case of error or if minOccurs==maxOccurs==0
6874 xmlSchemaParticlePtr particle;
6941 * Create the particle.
6943 particle = xmlSchemaAddParticle(ctxt, node, min, max);
6944 if (particle == NULL)
6946 particle->annot = annot;
6947 particle->children = (xmlSchemaTreeItemPtr) wild;
6949 return (particle);
8431 * Returns the element declaration or a particle; NULL in case
8432 * of an error or if the particle has minOccurs==maxOccurs==0.
8439 xmlSchemaParticlePtr particle = NULL;
8478 * Skip particle part if a global declaration.
8483 * The particle part ==================================================
8488 particle = xmlSchemaAddParticle(ctxt, node, min, max);
8489 if (particle == NULL)
8552 * Create the reference item and attach it to the particle.
8558 particle->children = (xmlSchemaTreeItemPtr) refer;
8559 particle->annot = annot;
8561 * Add the particle to pending components, since the reference
8564 WXS_ADD_PENDING(ctxt, particle);
8565 return ((xmlSchemaBasicItemPtr) particle);
8804 particle->children = (xmlSchemaTreeItemPtr) decl;
8805 return ((xmlSchemaBasicItemPtr) particle);
8811 if (particle != NULL)
8812 particle->annot = NULL;
9323 * We will return a particle component with a qname-component or
11159 * @particleNeeded: if a a model group with a particle
11184 xmlSchemaParticlePtr particle = NULL;
11210 * Create a particle
11212 particle = xmlSchemaAddParticle(ctxt, node, min, max);
11213 if (particle == NULL)
11215 particle->children = (xmlSchemaTreeItemPtr) item;
11428 return ((xmlSchemaTreeItemPtr) particle);
12517 xmlSchemaParticlePtr particle, int counter, xmlAutomataStatePtr end)
12524 elemDecl = (xmlSchemaElementPtr) particle->children;
12533 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle),
12558 } else if (particle->maxOccurs == 1) {
12590 int maxOccurs = particle->maxOccurs == UNBOUNDED ?
12591 UNBOUNDED : particle->maxOccurs - 1;
12592 int minOccurs = particle->minOccurs < 1 ? 0 : particle->minOccurs - 1;
12618 if (particle->minOccurs == 0)
12625 xmlSchemaParticlePtr particle)
12627 if (((xmlSchemaElementPtr) particle->children)->flags &
12632 xmlSchemaBuildContentModelForSubstGroup(ctxt, particle, -1, NULL);
12637 elemDecl = (xmlSchemaElementPtr) particle->children;
12641 if (particle->maxOccurs == 1) {
12645 } else if ((particle->maxOccurs >= UNBOUNDED) &&
12646 (particle->minOccurs < 2)) {
12655 int maxOccurs = particle->maxOccurs == UNBOUNDED ?
12656 UNBOUNDED : particle->maxOccurs - 1;
12657 int minOccurs = particle->minOccurs < 1 ?
12658 0 : particle->minOccurs - 1;
12668 if (particle->minOccurs == 0)
12676 * @particle: the particle component
12684 xmlSchemaParticlePtr particle)
12686 if (particle == NULL) {
12687 PERROR_INT("xmlSchemaBuildAContentModel", "particle is NULL");
12690 if (particle->children == NULL) {
12692 * Just return in this case. A missing "term" of the particle
12698 switch (particle->children->type) {
12704 wild = (xmlSchemaWildcardPtr) particle->children;
12709 if (particle->maxOccurs == 1) {
12747 particle->maxOccurs == UNBOUNDED ? UNBOUNDED : particle->maxOccurs - 1;
12749 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1;
12780 if (particle->minOccurs == 0) {
12787 xmlSchemaBuildContentModelForElement(pctxt, particle);
12796 if ((particle->minOccurs == 1) && (particle->maxOccurs == 1)) {
12797 sub = particle->children->children;
12806 if (particle->maxOccurs >= UNBOUNDED) {
12807 if (particle->minOccurs > 1) {
12816 particle->minOccurs - 1, UNBOUNDED);
12818 sub = particle->children->children;
12836 sub = particle->children->children;
12851 if (particle->minOccurs == 0) {
12856 } else if ((particle->maxOccurs > 1)
12857 || (particle->minOccurs > 1)) {
12866 particle->minOccurs - 1,
12867 particle->maxOccurs - 1);
12869 sub = particle->children->children;
12881 if (particle->minOccurs == 0) {
12886 sub = particle->children->children;
12892 if (particle->minOccurs == 0) {
12911 if (particle->maxOccurs == 1) {
12912 sub = particle->children->children;
12923 int maxOccurs = particle->maxOccurs == UNBOUNDED ?
12924 UNBOUNDED : particle->maxOccurs - 1;
12926 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1;
12937 sub = particle->children->children;
12949 if (particle->minOccurs == 0) {
12961 sub = (xmlSchemaParticlePtr) particle->children->children;
12971 "<element> particle has no term");
13014 lax = particle->minOccurs == 0;
13032 WXS_ITEM_TYPE_NAME(particle->children), NULL);
13102 * or particle, which has an element declaration as it's
14544 * @particle: the particle
14552 xmlSchemaGetParticleTotalRangeMin(xmlSchemaParticlePtr particle)
14554 if ((particle->children == NULL) ||
14555 (particle->minOccurs == 0))
14557 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) {
14560 (xmlSchemaParticlePtr) particle->children->children;
14576 return (particle->minOccurs * min);
14581 (xmlSchemaParticlePtr) particle->children->children;
14593 return (particle->minOccurs * sum);
14600 * @particle: the particle
14608 xmlSchemaGetParticleTotalRangeMax(xmlSchemaParticlePtr particle)
14610 if ((particle->children == NULL) ||
14611 (particle->children->children == NULL))
14613 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) {
14616 (xmlSchemaParticlePtr) particle->children->children;
14632 return (particle->maxOccurs * max);
14637 (xmlSchemaParticlePtr) particle->children->children;
14649 if ((cur > 0) && (particle->maxOccurs == UNBOUNDED))
14654 return (particle->maxOccurs * sum);
14661 * @particle: the particle
14664 * Checks whether the given particle is emptiable.
14669 xmlSchemaIsParticleEmptiable(xmlSchemaParticlePtr particle)
14674 if ((particle == NULL) || (particle->minOccurs == 0) ||
14675 (particle->children == NULL))
14681 if (WXS_IS_MODEL_GROUP(particle->children)) {
14682 if (xmlSchemaGetParticleTotalRangeMin(particle) == 0)
14976 * The ball of letters below means, that if we have a particle
15006 /* Remove the particle. */
15009 /* Remove the particle. */
15014 * particle's {term}.
15021 * "1.2 the {term} property of a particle with
15030 "The particle's {max occurs} must be 1, since the "
15726 * type}'s particle must be ���emptiable��� as defined by
15737 "and a particle emptiable", NULL);
16181 * definition itself must specify a particle.
16186 "The content type must specify a particle", NULL);
16217 * URGENT TODO SPEC (1.4.3.2.2.2) "The particle of the
16219 * of the {base type definition}'s particle, as defined
16387 * and have a particle which is ���emptiable��� as defined in
16396 "a simple type or 'mixed' and an emptiable particle", NULL);
16416 * definition} must be elementOnly or mixed and have a particle
16426 "particle", NULL);
16449 * SPEC (5.4.2) "The particle of the complex type definition itself
16450 * must be a ���valid restriction��� of the particle of the {content
16586 * is mixed and a particle emptiable.
16627 "mixed content and particle emptiable. The base type "
16690 * @r: the restricting element declaration particle
16691 * @b: the base element declaration particle
16797 * @r: the restricting element declaration particle
16798 * @b: the base wildcard particle
16817 * SPEC "For an element declaration particle to be a ���valid restriction���
16818 * of a wildcard particle all of the following must be true:"
16841 * @r: the restricting element declaration particle
16842 * @b: the base model group particle
16867 * @r: the restricting wildcard particle
16868 * @b: the base wildcard particle
16923 * Particle Valid (Restriction) (cos-particle-restrict)
16944 * SPEC (1) "They are the same particle."
16957 * @r: the model group particle
16958 * @b: the base wildcard particle
16981 * SPEC "For a group particle to be a ���valid restriction��� of a
16982 * wildcard particle..."
17011 * @r: the <all> or <sequence> model group particle
17012 * @b: the base <all> or <sequence> model group particle
17037 * SPEC "For an all or sequence group particle to be a ���valid
17038 * restriction��� of another group particle with the same {compositor}..."
17929 "mixed as emptiable particle\n");
18170 * an emptiable particle, then a simple type definition which
18228 xmlSchemaParticlePtr particle =
18240 if ((particle == NULL) ||
18241 ((particle->type == XML_SCHEMA_TYPE_PARTICLE) &&
18242 ((particle->children->type == XML_SCHEMA_TYPE_ALL) ||
18243 (particle->children->type == XML_SCHEMA_TYPE_SEQUENCE) ||
18244 ((particle->children->type == XML_SCHEMA_TYPE_CHOICE) &&
18245 (particle->minOccurs == 0))) &&
18246 ( ((xmlSchemaTreeItemPtr) particle->children)->children == NULL))) {
18250 * a particle whose properties are as follows:..."
18253 * minOccurs/maxOccurs = 1 (i.e. a "particle emptiable").
18257 if ((particle == NULL) ||
18258 (particle->children->type != XML_SCHEMA_TYPE_SEQUENCE)) {
18260 * Create the particle.
18262 particle = xmlSchemaAddParticle(pctxt,
18264 if (particle == NULL)
18269 particle->children = (xmlSchemaTreeItemPtr)
18272 if (particle->children == NULL)
18275 type->subtypes = (xmlSchemaTypePtr) particle;
18287 * SPEC (2.2) "otherwise the particle corresponding to the
18385 * Create the particle.
18387 particle = xmlSchemaAddParticle(pctxt,
18389 if (particle == NULL)
18394 particle->children = (xmlSchemaTreeItemPtr)
18397 if (particle->children == NULL)
18399 WXS_TYPE_CONTENTTYPE(type) = (xmlSchemaTypePtr) particle;
18401 * SPEC "the particle of the {content type} of
18403 * Create a duplicate of the base type's particle
18406 particle->children->children =
18411 if (particle->children->children == NULL)
18413 particle = (xmlSchemaParticlePtr)
18414 particle->children->children;
18415 particle->children =
18420 particle->next = effectiveContent;
18423 * new-particle
18425 * new-particle
18427 * this-particle
18441 particle->children->children =
18777 * @particle: the first particle
18782 * Returns the particle with the circular model group definition reference,
18787 xmlSchemaTreeItemPtr particle)
18793 for (; particle != NULL; particle = particle->next) {
18794 term = particle->children;
18801 return (particle);
18846 * of a group there must not be at any depth a particle whose {term}
18888 * of the referencing particle.
18901 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg);
18903 while (particle != NULL) {
18904 if ((WXS_PARTICLE_TERM(particle) == NULL) ||
18905 ((WXS_PARTICLE_TERM(particle))->type !=
18908 particle = WXS_PTC_CAST particle->next;
18911 if (WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle)) == NULL) {
18913 * TODO: Remove the particle.
18915 WXS_PARTICLE_TERM(particle) = NULL;
18916 particle = WXS_PTC_CAST particle->next;
18920 * Assign the model group to the {term} of the particle.
18922 WXS_PARTICLE_TERM(particle) =
18923 WXS_TREE_CAST WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle));
18925 particle = WXS_PTC_CAST particle->next;
19771 * @ctxtParticle: the first particle of the context component
19772 * @searchParticle: the element declaration particle to be analysed
19793 * Just return in this case. A missing "term" of the particle
19853 sub = WXS_PARTICLE_TERM(particle)->children; (xmlSchemaParticlePtr)
19885 * @item: an schema element declaration/particle
19911 * @particle: a particle component
19922 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg);
19929 while (particle != NULL) {
19930 if ((WXS_PARTICLE_TERM(particle) == NULL) ||
19931 ((WXS_PARTICLE_TERM(particle))->type !=
19936 ref = WXS_QNAME_CAST WXS_PARTICLE_TERM(particle);
19941 particle->children = NULL;
19947 NULL, WXS_ITEM_NODE(particle), "ref", ref->name,
19949 /* TODO: remove the particle. */
19954 /* TODO: remove the particle. */
19958 * itself to the "term" of the particle. This will ease
19972 * (1.2) "the {term} property of a particle [... of] the "
19978 WXS_ITEM_NODE(particle), NULL,
19983 /* TODO: remove the particle. */
19986 particle->children = (xmlSchemaTreeItemPtr) refItem;
19992 particle->children = (xmlSchemaTreeItemPtr) refItem;
19995 particle = WXS_PTC_CAST particle->next;
20739 * (local components), and those particle components need a bucket
20789 * - the term of the particle (e.g. a model group)
20901 * Such a reference is reflected by a particle at the component
25800 * type}'s particle must be ���emptiable��� as defined by
25811 "or mixed content and a particle emptiable");
26504 * particle, as defined in Element Sequence Locally Valid