Package org.apache.ws.jaxme.xs.xml

Examples of org.apache.ws.jaxme.xs.xml.XsTElement


                                     getLocator());
      }
      element.validate();
      myType = element.getType();
    } else {
      XsTElement element = getXsTElement();
      if (isInnerSimpleType()) {
        myType = getXSSchema().getXSObjectFactory().newXSType(this, element.getSimpleType());
      } else if (isInnerComplexType()) {
        myType = getXSSchema().getXSObjectFactory().newXSType(this, element.getComplexType());
      } else {
        XsQName typeName = element.getType();
        if (typeName == null) {
          throw new LocSAXException("Invalid element: Either of its 'type' or 'ref' attributes or its 'simpleType' or 'complexType' children must be set.",
                                       getLocator());
        }
        myType = getXSSchema().getType(typeName);
View Full Code Here


    super.validate();
    jaxbClass = (JAXBClass) XSUtil.getSingleAppinfo(getAnnotations(), JAXBClass.class);
    jaxbProperty = (JAXBProperty) XSUtil.getSingleAppinfo(getAnnotations(), JAXBProperty.class);

    if (jaxbProperty == null) {
      XsTElement elem = (XsTElement) getXsObject();
      if (elem.getRef() != null) {
        JAXBElement refElem = (JAXBElement) getXSSchema().getAttribute(elem.getRef());
        if (refElem != null) {
          jaxbProperty = refElem.getJAXBProperty();
        }
      }
    } else {
View Full Code Here

                                     getLocator());
      }
      element.validate();
      myType = element.getType();
    } else {
      XsTElement element = getXsTElement();
      if (isInnerSimpleType()) {
        myType = factory.newXSType(this, element.getSimpleType());
      } else if (isInnerComplexType()) {
        myType = factory.newXSType(this, element.getComplexType());
      } else {
        XsQName typeName = element.getType();
        if (typeName == null) {
          throw new LocSAXException("Invalid element: Either of its 'type' or 'ref' attributes or its 'simpleType' or 'complexType' children must be set.",
                                       getLocator());
        }
        myType = schema.getType(typeName);
View Full Code Here

    super.validate();
    jaxbClass = (JAXBClass) XSUtil.getSingleAppinfo(getAnnotations(), JAXBClass.class);
    jaxbProperty = (JAXBProperty) XSUtil.getSingleAppinfo(getAnnotations(), JAXBProperty.class);

    if (jaxbProperty == null) {
      XsTElement elem = (XsTElement) getXsObject();
      if (elem.getRef() != null) {
        JAXBElement refElem = (JAXBElement) getXSSchema().getElement(elem.getRef());
        if (refElem != null) {
          jaxbProperty = refElem.getJAXBProperty();
        }
      }
    } else {
View Full Code Here

      element.validate();
      isNillable = element.isNillable();   
      myType = element.getType();
     
    } else {
      XsTElement element = getXsTElement();
      if (isInnerSimpleType()) {
        myType = factory.newXSType(this, element.getSimpleType());
      } else if (isInnerComplexType()) {
        myType = factory.newXSType(this, element.getComplexType());
      } else {
        XsQName typeName = element.getType();
        if (typeName == null) {
          throw new LocSAXException("Invalid element: Either of its 'type' or 'ref' attributes or its 'simpleType' or 'complexType' children must be set.",
                                       getLocator());
        }
        myType = schema.getType(typeName);
View Full Code Here

    super.validate();
    jaxbClass = (JAXBClass) XSUtil.getSingleAppinfo(getAnnotations(), JAXBClass.class);
    jaxbProperty = (JAXBProperty) XSUtil.getSingleAppinfo(getAnnotations(), JAXBProperty.class);

    if (jaxbProperty == null) {
      XsTElement elem = (XsTElement) getXsObject();
      if (elem.getRef() != null) {
        JAXBElement refElem = (JAXBElement) getXSSchema().getAttribute(elem.getRef());
        if (refElem != null) {
          jaxbProperty = refElem.getJAXBProperty();
        }
      }
    } else {
View Full Code Here

      element.validate();
      isNillable = element.isNillable();   
      myType = element.getType();
     
    } else {
      XsTElement element = getXsTElement();
      if (isInnerSimpleType()) {
        myType = factory.newXSType(this, element.getSimpleType());
      } else if (isInnerComplexType()) {
        myType = factory.newXSType(this, element.getComplexType());
      } else {
        XsQName typeName = element.getType();
        if (typeName == null) {
          throw new LocSAXException("Invalid element: Either of its 'type' or 'ref' attributes or its 'simpleType' or 'complexType' children must be set.",
                                       getLocator());
        }
        myType = schema.getType(typeName);
View Full Code Here

                                     getLocator());
      }
      element.validate();
      myType = element.getType();
    } else {
      XsTElement element = getXsTElement();
      if (isInnerSimpleType()) {
        myType = factory.newXSType(this, element.getSimpleType());
      } else if (isInnerComplexType()) {
        myType = factory.newXSType(this, element.getComplexType());
      } else {
        XsQName typeName = element.getType();
        if (typeName == null) {
          throw new LocSAXException("Invalid element: Either of its 'type' or 'ref' attributes or its 'simpleType' or 'complexType' children must be set.",
                                       getLocator());
        }
        myType = schema.getType(typeName);
View Full Code Here

      for (XSParticle child : group.getParticles()) {
        if (child.isElement())
          current.addChild(readElement(child.getElement()));
      }
    }
    XsTElement xele = getXsTElement(element);
    current.setMinOccurrences(xele.getMinOccurs());

    if (xele.getMaxOccurs() == -1) {
      current.setMaxOccurrences(100);
    } else {
      current.setMaxOccurrences(xele.getMaxOccurs());
    }
    handleAnnotation(current, element);

    return current;
  }
View Full Code Here

    return null;

  }

  private static XsTElement getXsTElement(XSElement element) {
    XsTElement base = null;
    try {
      Field field = XSObjectImpl.class.getDeclaredField("baseObject");
      field.setAccessible(true);
      base = (XsTElement) field.get(element);
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.xs.xml.XsTElement

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.