Package org.apache.ws.jaxme.xs.parser.impl

Examples of org.apache.ws.jaxme.xs.parser.impl.LocSAXException


    xsAnnotation = pAll.getAnnotation();
  }

  protected XsQName getQName(XsNCName pName) throws SAXException {
    if (pName == null) {
      throw new LocSAXException("Invalid group: Either of its 'ref' or 'name' attributes must be set.",
                                   getLocator());
    }
    XsESchema syntaxSchema = getXsObject().getXsESchema();
    return new XsQName(syntaxSchema.getTargetNamespace(), pName.toString(), syntaxSchema.getTargetNamespacePrefix());
  }
View Full Code Here


        // May be the referenced element is the head of a substitution group
        XsQName ref = localElement.getRef();
        if (ref != null) {
          XSElement referencedElement = getXSSchema().getElement(ref);
          if (referencedElement == null) {
            throw new LocSAXException("The referenced element " + ref + " is undefined.", localElement.getLocator());
          }
          XSGroup substitutedGroup = referencedElement.getSubstitutionGroup();
          if (substitutedGroup != null  &&  substitutedGroup != this) {
            XsObject parent = localElement.getParentObject();
            XsTGroupRefImpl groupRefImpl = (XsTGroupRefImpl) localElement.getObjectFactory().newXsTGroupRef(parent);
View Full Code Here

      if (myName == null) {
        throw new NullPointerException("Missing group name");
      }
      XSGroup group = getXSSchema().getGroup(myName);
      if (group == null) {
        throw new LocSAXException("Unknown group: " + myName, getLocator());
      }
      modelGroup = group;
    }

    if (particles != null) {
View Full Code Here

  }

  public void validate() throws SAXException {
    super.validate();
    if (itemType == null  &&  simpleType == null) {
      throw new LocSAXException("Either the 'itemType' attribute must be set or a 'simpleType' child element must be present.",
                                 getLocator());
    }
  }
View Full Code Here

  }

  public void validate() throws SAXException {
    super.validate();
    if (name == null) {
      throw new LocSAXException("Missing attribute: 'name'", getLocator());
    }
  }
View Full Code Here

  protected XsTLocalSimpleTypeImpl(XsObject pParent) {
    super(pParent);
  }

  public void setName(XsNCName pName) throws SAXException {
    throw new LocSAXException("A local simpleType must not have its 'name' attribute set.", getLocator());
  }
View Full Code Here

  public void setName(XsNCName pName) throws SAXException {
    throw new LocSAXException("A local simpleType must not have its 'name' attribute set.", getLocator());
  }

  public void setFinal(XsSimpleDerivationSet pFinal) throws SAXException {
    throw new LocSAXException("A local simpleType must not have its 'final' attribute set.", getLocator());
  }
View Full Code Here

  }

  public void validate() throws SAXException {
     super.validate();
     if (getName() == null) {
       throw new LocSAXException("Missing 'name' attribute", getLocator());
     }
   }
View Full Code Here

      if (particle.isElement()) {
        PropertySG elementSG = particle.getPropertySG();
        elementSG.generate(pSource);
      } else if (particle.isGroup()) {
        // TODO: Implement groups referencing groups
        throw new LocSAXException("Nested groups are yet unsupported", particle.getLocator());
      } else if (particle.isWildcard()) {
        // TODO: Implement Wildcard handling
        throw new LocSAXException("Wildcard handling is not implemented", particle.getLocator());
      } else {
        throw new IllegalStateException("Unknown particle type: Neither of element, group, or wildcard");
      }
    }
    log.finest(mName, "<-");
View Full Code Here

          ComplexTypeSG complexTypeSG = typeSG.getComplexTypeSG();
          complexTypeSG.getXMLInterface(pSource);
        }
      } else if (particle.isGroup()) {
        // TODO: Implement groups referencing groups
        throw new LocSAXException("Nested groups are yet unsupported", particle.getLocator());
      } else if (particle.isWildcard()) {
        // TODO: Implement Wildcard handling
        throw new LocSAXException("Wildcard handling is not implemented", particle.getLocator());
      } else {
        throw new IllegalStateException("Unknown particle type: Neither of element, group, or wildcard");
      }
    }
    log.finest(mName, "<-");
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.xs.parser.impl.LocSAXException

Copyright © 2018 www.massapicom. 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.