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

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


                Character.isWhitespace(type.charAt("NOTATION".length()))) {
              qName = XSNotation.getInstance().getName();
            } else {
              qName = XSNMToken.getInstance().getName();
            }
            XsTLocalSimpleType simpleType = attr.createSimpleType();
            XsERestriction restriction = simpleType.createRestriction();
            restriction.setBase(new XsQName(qName.getNamespaceURI(), qName.getLocalName(), "xs"));
            if (type.startsWith("(")) {
              type = type.substring(1).trim();
            } else {
              throw new SAXParseException("The enumeration in the type of attribute "
View Full Code Here


  }

  public XSListTypeImpl(XSType pOwner, XsEList pBaseList) throws SAXException {
    XsQName itemTypeName = pBaseList.getItemType();
    if (itemTypeName == null) {
      XsTLocalSimpleType simpleType = pBaseList.getSimpleType();
      if (simpleType == null) {
        throw new LocSAXException("You must either set the 'itemType' attribute or add a 'simpleType' element.",
                                   pBaseList.getLocator());
      }
      XSType type = pOwner.getXSSchema().getXSObjectFactory().newXSType(pOwner, simpleType);
View Full Code Here

        throw new LocSAXException("Invalid attribute reference: No type named " + getName() + " defined.",
                                     getXsTAttribute().getLocator());
      }
      myType = attribute.getType();
    } else if (isInnerSimpleType()) {
      XsTLocalSimpleType innerSimpleType = getXsTAttribute().getSimpleType();
      myType = getXSSchema().getXSObjectFactory().newXSType(this, innerSimpleType);
      myType.validate();
    } else {
      XsQName typeName = getXsTAttribute().getType();
      if (typeName == null) {
View Full Code Here

      }
    }
    XsTLocalSimpleType[] simpleTypes = pBaseUnion.getSimpleTypes();
    if (simpleTypes != null) {
      for (int i = 0;  i < simpleTypes.length;  i++) {
        XsTLocalSimpleType localSimpleType = simpleTypes[i];
        XSType type = pOwner.getXSSchema().getXSObjectFactory().newXSType(pOwner, localSimpleType);
        type.validate();
        memberTypes.add(type);
      }
    }
View Full Code Here

        throw new LocSAXException("Invalid attribute reference: No type named " + getName() + " defined.",
                                     getXsTAttribute().getLocator());
      }
      myType = attribute.getType();
    } else if (isInnerSimpleType()) {
      XsTLocalSimpleType innerSimpleType = getXsTAttribute().getSimpleType();
      myType = getXSSchema().getXSObjectFactory().newXSType(this, innerSimpleType);
      myType.validate();
    } else {
      XsQName typeName = getXsTAttribute().getType();
      if (typeName == null) {
View Full Code Here

                Character.isWhitespace(type.charAt("NOTATION".length()))) {
              qName = XSNotation.getInstance().getName();
            } else {
              qName = XSNMToken.getInstance().getName();
            }
            XsTLocalSimpleType simpleType = attr.createSimpleType();
            XsERestriction restriction = simpleType.createRestriction();
            restriction.setBase(new XsQName(qName.getNamespaceURI(), qName.getLocalName(), "xs"));
            if (type.startsWith("(")) {
              type = type.substring(1).trim();
            } else {
              throw new SAXParseException("The enumeration in the type of attribute "
View Full Code Here

      myType = attribute.getType();
      if (myType == null) {
          throw new IllegalStateException("The referenced attributes type must not be null.");
      }
    } else if (isInnerSimpleType()) {
      XsTLocalSimpleType innerSimpleType = getXsTAttribute().getSimpleType();
      myType = getXSSchema().getXSObjectFactory().newXSType(this, innerSimpleType);
      myType.validate();
    } else {
      XsQName typeName = getXsTAttribute().getType();
      if (typeName == null) {
View Full Code Here

      }
    }
    XsTLocalSimpleType[] simpleTypes = pBaseUnion.getSimpleTypes();
    if (simpleTypes != null) {
      for (int i = 0;  i < simpleTypes.length;  i++) {
        XsTLocalSimpleType localSimpleType = simpleTypes[i];
        XSType type = pOwner.getXSSchema().getXSObjectFactory().newXSType(pOwner, localSimpleType);
        type.validate();
        memberTypes.add(type);
      }
    }
View Full Code Here

                Character.isWhitespace(type.charAt("NOTATION".length()))) {
              qName = XSNotation.getInstance().getName();
            } else {
              qName = XSNMToken.getInstance().getName();
            }
            XsTLocalSimpleType simpleType = attr.createSimpleType();
            XsERestriction restriction = simpleType.createRestriction();
            restriction.setBase(new XsQName(qName.getNamespaceURI(), qName.getLocalName(), "xs"));
            if (type.startsWith("(")) {
              type = type.substring(1).trim();
            } else {
              throw new SAXParseException("The enumeration in the type of attribute "
View Full Code Here

  }

  public XSListTypeImpl(XSType pOwner, XsEList pBaseList) throws SAXException {
    XsQName itemTypeName = pBaseList.getItemType();
    if (itemTypeName == null) {
      XsTLocalSimpleType simpleType = pBaseList.getSimpleType();
      if (simpleType == null) {
        throw new LocSAXException("You must either set the 'itemType' attribute or add a 'simpleType' element.",
                                   pBaseList.getLocator());
      }
      XSType type = pOwner.getXSSchema().getXSObjectFactory().newXSType(pOwner, simpleType);
View Full Code Here

TOP

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

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.