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

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


    XSType myType;
    if (isReference()) {
      XSAttribute attribute = getXSSchema().getAttribute(getName());
      if (attribute == null) {
        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) {
        typeName = XSAnySimpleType.getInstance().getName();
      }
      myType = getXSSchema().getType(typeName);
      if (myType == null) {
        throw new LocSAXException("Invalid attribute: The referenced type " + typeName + " is not defined in the schema.",
                                     getXsTAttribute().getLocator());
      }
    }
    this.type = myType;
  }
View Full Code Here


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

  public XsTLocalSimpleType createSimpleType() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'simpleType' child element.", getLocator());
  }
View Full Code Here

  public XsTLocalSimpleType createSimpleType() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'simpleType' child element.", getLocator());
  }

  public XsEMinExclusive createMinExclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'minExclusive' child element.", getLocator());
  }
View Full Code Here

  public XsEMinExclusive createMinExclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'minExclusive' child element.", getLocator());
  }

  public XsEMinInclusive createMinInclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'minInclusive' child element.", getLocator());
  }
View Full Code Here

  public XsEMinInclusive createMinInclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'minInclusive' child element.", getLocator());
  }

  public XsEMaxExclusive createMaxExclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'maxExclusive' child element.", getLocator());
  }
View Full Code Here

  public XsEMaxExclusive createMaxExclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'maxExclusive' child element.", getLocator());
  }

  public XsEMaxInclusive createMaxInclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'maxInclusive' child element.", getLocator());
  }
View Full Code Here

  public XsEMaxInclusive createMaxInclusive() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'maxInclusive' child element.", getLocator());
  }

  public XsETotalDigits createTotalDigits() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'totalDigits' child element.", getLocator());
  }
View Full Code Here

  public XsETotalDigits createTotalDigits() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'totalDigits' child element.", getLocator());
  }

  public XsEFractionDigits createFractionDigits() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'fractionDigits' child element.", getLocator());
  }
View Full Code Here

  public XsEFractionDigits createFractionDigits() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'fractionDigits' child element.", getLocator());
  }

  public XsELength createLength() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'length' child element.", getLocator());
  }
View Full Code Here

  public XsELength createLength() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'length' child element.", getLocator());
  }

  public XsEMinLength createMinLength() throws SAXException {
    throw new LocSAXException("A restriction with complex content doesn't support the 'minLength' child element.", getLocator());
  }
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.