Examples of validate()


Examples of org.apache.ws.jaxme.xs.XSAnnotation.validate()

    if (xsAnnotation == null) {
      annotations = new XSAnnotation[0];
    } else {
      XSAnnotation result = getXSSchema().getXSObjectFactory().newXSAnnotation(this, xsAnnotation);
      result.validate();
      annotations = new XSAnnotation[]{result};
    }

    if (isSimple()) {
      XSSimpleType mySimpleType;
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSAny.validate()

    XSParticleImpl p;
    if (pParticle instanceof XsEAny) {
      XsEAny any = (XsEAny) pParticle;
      occurs = any;
      XSAny wildcard = getXSSchema().getXSObjectFactory().newXSAny(this, any);
      wildcard.validate();
      p = new XSParticleImpl(wildcard);
    } else if (pParticle instanceof XsEChoice) {
      XsEChoice choice = (XsEChoice) pParticle;
      occurs = choice;
      XSGroup group = getXSSchema().getXSObjectFactory().newXSGroup(this, choice);
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSAttribute.validate()

      Object o = allAttributes[i];
      if (o == null) {
        throw new NullPointerException("Null attribute detected.");
      } else if (o instanceof XsTAttribute) {
        XSAttribute attribute = pObject.getXSSchema().getXSObjectFactory().newXSAttribute(pObject, (XsTAttribute) o);
        attribute.validate();
        attributes.add(attribute);
      } else if (o instanceof XsTAttributeGroupRef) {
        XsTAttributeGroupRef agRef = (XsTAttributeGroupRef) o;
        XsQName ref = agRef.getRef();
        if (ref == null) {
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSAttributeGroup.validate()

      XSAttributeGroup referencedGroup = getXSSchema().getAttributeGroup(getName());
      if (referencedGroup == null) {
        throw new LocSAXException("Invalid attribute group: Unknown attribute group " + name + " referenced",
                                   getLocator());
      }
      referencedGroup.validate();
      attributes = referencedGroup.getAttributes();
    } else {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) getXsObject();
      attributes = getAttributes(this, attributeGroup);
    }
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSElement.validate()

        throw new IllegalStateException("Unknown particle type: " + pParticle.getClass().getName());
      }
      if (groupRef == null) {
        occurs = localElement;
        XSElement element = getXSSchema().getXSObjectFactory().newXSElement(this, localElement);
        element.validate();
        p = new XSParticleImpl(element);
      } else {
        occurs = groupRef;
        XSGroup group = getXSSchema().getXSObjectFactory().newXSGroup(this, groupRef);
        group.validate();
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSGroup.validate()

            }
            XSGroup group = getXSSchema().getGroup(myName);
            if (group == null) {
              throw new LocSAXException("Unknown group: " + myName, getLocator());
            }
            group.validate();
            myComplexType = new XSGroupComplexTypeImpl(this, myXsTComplexType, group);
          } else {
            throw new IllegalStateException("Invalid particle: " + particle.getClass().getName());
          }
        } else {
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSSchema.validate()

        };
        parse(syntaxSchema, pInputSource);
        XSSchema schema = context.getXSObjectFactory().newXSSchema(context, syntaxSchema);
        setSchema(schema);
    parse(syntaxSchema, pInputSource.getSystemId());
    schema.validate();
        return schema;
    }

    /** Sets the created schemas target namespace.
     */
 
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSType.validate()

    XSType type = getXSSchema().getType(myName);
    if (type == null) {
      throw new LocSAXException("Invalid 'restriction': Unknown 'base' type " + myName,
                                   pRestriction.getLocator());
    }
    type.validate();
    if (type.isSimple()) {
      throw new LocSAXException("The 'base' type " + myName + " of 'simpleContent/restriction' is simple." +
                                   " It ought to be a complex type with simple content: ",
                                   pRestriction.getLocator());
    }
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSWildcard.validate()

        for (int j = 0;  j < agAttributes.length;  j++) {
          attributes.add(agAttributes[j]);
        }
      } else if (o instanceof XsTWildcard) {
        XSWildcard wildcard = pObject.getXSSchema().getXSObjectFactory().newXSWildcard(pObject, (XsTWildcard) o);
        wildcard.validate();
        attributes.add(wildcard);
      } else {
        throw new IllegalStateException("Unknown attribute type: " + o.getClass().getName());
      }
    }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.validate.STValidator.validate()

                        + stValidator,
                        e);
            }
            try {

                res = stValidator.validate(req, res);

            } catch (java.lang.Exception e) {
                throw new WSTrustException("STSManager: could not validate the token " + stValidator,
                        e);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.