Package org.ogce.schemas.gfac.validator

Examples of org.ogce.schemas.gfac.validator.SchemaValidator


    }
    if (appInfo.getHostCount() != null) {
      appType.setHostCount(appInfo.getHostCount());
    }
   
    SchemaValidator validator = new SchemaValidator(appType);
    validator.validate();

    return appDescDoc.xmlText();
  }
View Full Code Here


  }

  public static HostDescriptionType parseHostDescirption(String hostDescStr) throws GfacException {
    try {
      HostDescriptionType hostDesc = HostDescriptionDocument.Factory.parse(hostDescStr).getHostDescription();
      SchemaValidator validator = new SchemaValidator(hostDesc);
      validator.validate();
      return hostDesc;
    } catch (Exception e) {
      throw new GfacException(e, FaultCode.InvaliedLocalArgumnet);
    }
  }
View Full Code Here

  }

  public static ApplicationDescriptionType parseAppDescirption(Reader reader) throws GfacException {
    try {
      ApplicationDescriptionType appDesc = ApplicationDescriptionDocument.Factory.parse(reader).getApplicationDescription();
      SchemaValidator validator = new SchemaValidator(appDesc);
      validator.validate();
      return appDesc;
    } catch (IOException e) {
      throw new GfacException(e, FaultCode.InvaliedLocalArgumnet);
    } catch (Exception e) {
      throw new GfacException(e, FaultCode.InvaliedLocalArgumnet);
View Full Code Here

    public static HostDescriptionType parseHostDescirption(String hostDescStr) throws GfacException {
        try {
            HostDescriptionType hostDesc = HostDescriptionDocument.Factory.parse(hostDescStr)
                    .getHostDescription();
            SchemaValidator validator = new SchemaValidator(hostDesc);
            validator.validate();
            return hostDesc;
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.InvaliedLocalArgumnet);
        } catch (Exception e) {
            throw new GfacException(e,FaultCode.InvaliedLocalArgumnet);
View Full Code Here

    public static ApplicationDescriptionType parseAppDescirption(Reader reader)
            throws GfacException {
        try {
            ApplicationDescriptionType appDesc = ApplicationDescriptionDocument.Factory.parse(
                    reader).getApplicationDescription();
            SchemaValidator validator = new SchemaValidator(appDesc);
            validator.validate();
            return appDesc;
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.InvaliedLocalArgumnet);
        } catch (IOException e) {
            throw new GfacException(e,FaultCode.InvaliedLocalArgumnet);
View Full Code Here

TOP

Related Classes of org.ogce.schemas.gfac.validator.SchemaValidator

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.