Java Code Examples for org.apache.xerces.xs.XSModel

The following examples show how to use org.apache.xerces.xs.XSModel. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: exificient   Source File: DatatypeMappingTest.java    License: MIT License 6 votes vote down vote up
public static Datatype getSimpleDatatypeFor(String schemaAsString,
		String typeName, String typeURI) throws EXIException {
	XSDGrammarsBuilder xsdGB = XSDGrammarsBuilder.newInstance();
	ByteArrayInputStream bais = new ByteArrayInputStream(
			schemaAsString.getBytes());
	xsdGB.loadGrammars(bais);
	xsdGB.toGrammars();

	XSModel xsModel = xsdGB.getXSModel();

	XSTypeDefinition td = xsModel.getTypeDefinition(typeName, typeURI);

	assertTrue("SimpleType expected",
			td.getTypeCategory() == XSTypeDefinition.SIMPLE_TYPE);

	Datatype dt = xsdGB.getDatatype((XSSimpleTypeDefinition) td);

	return dt;
}
 
Example 2
Source Project: jlibs   Source File: XSDOutlinePanel.java    License: Apache License 2.0 6 votes vote down vote up
@SuppressWarnings({"unchecked"})
public void setXSModel(XSModel model, MyNamespaceSupport nsSupport){
    Navigator navigator1 = new FilteredTreeNavigator(new XSNavigator(), new XSDisplayFilter());
    Navigator navigator = new PathNavigator(navigator1);
    XSPathDiplayFilter filter = new XSPathDiplayFilter(navigator1);
    navigator = new FilteredTreeNavigator(navigator, filter);
    
    TreeModel treeModel = new NavigatorTreeModel(new Path(model), navigator);
    RowModel rowModel = new DefaultRowModel(new DefaultColumn("Detail", String.class, new XSDisplayValueVisitor(nsSupport))/*, new ClassColumn()*/);

    outline.setModel(DefaultOutlineModel.createOutlineModel(treeModel, rowModel));
    outline.getColumnModel().getColumn(1).setMinWidth(150);

    DefaultRenderDataProvider dataProvider = new DefaultRenderDataProvider();
    dataProvider.setDisplayNameVisitor(new XSDisplayNameVisitor(nsSupport, filter));
    dataProvider.setForegroundVisitor(new XSColorVisitor(filter));
    dataProvider.setFontStyleVisitor(new XSFontStyleVisitor(filter));
    outline.setRenderDataProvider(dataProvider);
}
 
Example 3
Source Project: iaf   Source File: Json2Xml.java    License: Apache License 2.0 6 votes vote down vote up
public static String translate(JsonStructure json, URL schemaURL, boolean compactJsonArrays, String rootElement, boolean strictSyntax, boolean deepSearch, String targetNamespace, Map<String,Object> overrideValues) throws SAXException, IOException {
	ValidatorHandler validatorHandler = getValidatorHandler(schemaURL);
	List<XSModel> schemaInformation = getSchemaInformation(schemaURL);

	// create the validator, setup the chain
	Json2Xml j2x = new Json2Xml(validatorHandler,schemaInformation,compactJsonArrays,rootElement,strictSyntax);
	if (overrideValues!=null) {
		j2x.setOverrideValues(overrideValues);
	}
	if (targetNamespace!=null) {
		//if (DEBUG) System.out.println("setting targetNamespace ["+targetNamespace+"]");
		j2x.setTargetNamespace(targetNamespace);
	}
	j2x.setDeepSearch(deepSearch);

	return j2x.translate(json);
}
 
Example 4
Source Project: iaf   Source File: XmlTypeToJsonSchemaConverter.java    License: Apache License 2.0 6 votes vote down vote up
public JsonObject getDefinitions() {
	JsonObjectBuilder definitionsBuilder = Json.createObjectBuilder();
	for (XSModel model:models) {
		XSNamedMap elements = model.getComponents(XSConstants.ELEMENT_DECLARATION);
		for (int i=0; i<elements.getLength(); i++) {
			XSElementDeclaration elementDecl = (XSElementDeclaration)elements.item(i);
			handleElementDeclaration(definitionsBuilder, elementDecl, false, false);
		}
		XSNamedMap types = model.getComponents(XSConstants.TYPE_DEFINITION);
		for (int i=0; i<types.getLength(); i++) {
			XSTypeDefinition typeDefinition = (XSTypeDefinition)types.item(i);
			String typeNamespace = typeDefinition.getNamespace();
			if (typeNamespace==null || !typeDefinition.getNamespace().equals(XML_SCHEMA_NS)) {
				definitionsBuilder.add(typeDefinition.getName(), getDefinition(typeDefinition, false));
			}
		}
	}
	return definitionsBuilder.build();
}
 
Example 5
Source Project: iaf   Source File: ToXml.java    License: Apache License 2.0 6 votes vote down vote up
public Set<XSElementDeclaration> findElementDeclarationsForName(String namespace, String name) {
	Set<XSElementDeclaration> result=new LinkedHashSet<XSElementDeclaration>();
	if (schemaInformation==null) {
		log.warn("No SchemaInformation specified, cannot find namespaces for ["+namespace+"]:["+name+"]");
		return null;
	}
	for (XSModel model:schemaInformation) {
		XSNamedMap components = model.getComponents(XSConstants.ELEMENT_DECLARATION);
		for (int i=0;i<components.getLength();i++) {
			XSElementDeclaration item=(XSElementDeclaration)components.item(i);
			if ((namespace==null || namespace.equals(item.getNamespace())) && (name==null || name.equals(item.getName()))) {
				if (log.isTraceEnabled()) log.trace("name ["+item.getName()+"] found in namespace ["+item.getNamespace()+"]");
				result.add(item);
			}
		}
	}
	return result;
}
 
Example 6
Source Project: lemminx   Source File: CMXSDDocument.java    License: Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Create files tracker to track all XML Schema (root and imported) from the XS
 * model.
 * 
 * @return a files tracker to track all XML Schema (root and imported) from the
 *         XS model.
 */
private static FilesChangedTracker createFilesChangedTracker(XSModel model) {
	Set<SchemaGrammar> grammars = new HashSet<>();
	XSNamespaceItemList namespaces = model.getNamespaceItems();
	for (int i = 0; i < namespaces.getLength(); i++) {
		SchemaGrammar grammar = getSchemaGrammar(namespaces.item(i));
		if (grammar != null) {
			grammars.add(grammar);
		}
	}
	return XSDUtils.createFilesChangedTracker(grammars);
}
 
Example 7
Source Project: lemminx   Source File: CMXSDContentModelProvider.java    License: Eclipse Public License 2.0 5 votes vote down vote up
@Override
public CMDocument createCMDocument(String key) {
	XSLoaderImpl loader = getLoader();
	XSModel model = loader.loadURI(key);
	if (model != null) {
		// XML Schema can be loaded
		return new CMXSDDocument(model, loader);
	}
	return null;
}
 
Example 8
Source Project: exificient   Source File: ParallelTest.java    License: MIT License 5 votes vote down vote up
public void testParallelXerces() throws XNIException, IOException,
		InterruptedException, ExecutionException {

	Collection<Callable<XSModel>> tasks = new ArrayList<Callable<XSModel>>();
	for (int i = 0; i < 25; i++) {
		Callable<XSModel> task = new Callable<XSModel>() {
			public XSModel call() throws Exception {
				XMLEntityResolver entityResolver = new TestXSDResolver();
				String sXSD = "./data/XSLT/schema-for-xslt20.xsd";
				// load XSD schema & get XSModel
				XMLSchemaLoader sl = new XMLSchemaLoader();
				sl.setEntityResolver(entityResolver);
				XMLInputSource xsdSource = new XMLInputSource(null, sXSD,
						null);

				SchemaGrammar g = (SchemaGrammar) sl.loadGrammar(xsdSource);
				XSModel xsModel = g.toXSModel();
				return xsModel;
			}
		};

		tasks.add(task);
	}

	ExecutorService executor = Executors.newFixedThreadPool(4);
	List<Future<XSModel>> results = executor.invokeAll(tasks);

	for (Future<XSModel> result : results) {
		System.out.println("XSModel: " + result.get());
	}
}
 
Example 9
Source Project: jlibs   Source File: OutlineNavigatorTest.java    License: Apache License 2.0 5 votes vote down vote up
@SuppressWarnings({"unchecked"})
public static void main(String[] args) throws Exception{
    String url = JOptionPane.showInputDialog("File/URL", "http://schemas.xmlsoap.org/wsdl/");
    if(url==null)
        return;
    XSModel model = new XSParser().parse(url);
    MyNamespaceSupport nsSupport = XSUtil.createNamespaceSupport(model);

    Navigator navigator1 = new FilteredTreeNavigator(new XSNavigator(), new XSDisplayFilter());
    Navigator navigator = new PathNavigator(navigator1);
    XSPathDiplayFilter filter = new XSPathDiplayFilter(navigator1);
    navigator = new FilteredTreeNavigator(navigator, filter);
    TreeModel treeModel = new NavigatorTreeModel(new Path(model), navigator);
    RowModel rowModel = new DefaultRowModel(new DefaultColumn("Detail", String.class, new XSDisplayValueVisitor(nsSupport))/*, new ClassColumn()*/);
    
    OutlineNavigatorTest test = new OutlineNavigatorTest("Navigator Test");
    Outline outline = test.getOutline();
    outline.setShowGrid(false);
    outline.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 14));
    outline.setModel(DefaultOutlineModel.createOutlineModel(treeModel, rowModel));
    outline.getColumnModel().getColumn(1).setMinWidth(150);

    DefaultRenderDataProvider dataProvider = new DefaultRenderDataProvider();
    dataProvider.setDisplayNameVisitor(new XSDisplayNameVisitor(nsSupport, filter));
    dataProvider.setForegroundVisitor(new XSColorVisitor(filter));
    dataProvider.setFontStyleVisitor(new XSFontStyleVisitor(filter));
    outline.setRenderDataProvider(dataProvider);
    
    test.setVisible(true);
}
 
Example 10
Source Project: jlibs   Source File: Path.java    License: Apache License 2.0 5 votes vote down vote up
public XSModel getSchema(){
    Path path = this;
    while(path!=null){
        if(path.schema!=null)
            return path.schema;
        path = path.parent;
    }
    return null;
}
 
Example 11
Source Project: iaf   Source File: JavaxXmlValidator.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public JavaxValidationContext createValidationContext(IPipeLineSession session, Set<List<String>> rootValidations, Map<List<String>, List<String>> invalidRootNamespaces) throws ConfigurationException, PipeRunException {
	// clear session variables
	super.createValidationContext(session, rootValidations, invalidRootNamespaces);

	String schemasId;
	Schema schema;
	Set<String> namespaceSet=new HashSet<String>();
	List<XSModel> xsModels=null;

	init();
	schemasId = schemasProvider.getSchemasId();
	if (schemasId == null) {
		schemasId = schemasProvider.getSchemasId(session);
		getSchemaObject(schemasId, schemasProvider.getSchemas(session));
	}
	schema = javaxSchemas.get(schemasId);

	if (schema!=null) {
		org.apache.xerces.jaxp.validation.XSGrammarPoolContainer xercesSchema = (org.apache.xerces.jaxp.validation.XSGrammarPoolContainer)schema;
		xercesSchema.getGrammarPool();

		xsModels=new LinkedList<XSModel>();
		Grammar[] grammars=xercesSchema.getGrammarPool().retrieveInitialGrammarSet(XMLGrammarDescription.XML_SCHEMA);
		for(int i=0;i<grammars.length;i++) {
			XSModel model=((XSGrammar)grammars[i]).toXSModel();
			xsModels.add(model);
			StringList namespaces=model.getNamespaces();
			for (int j=0;j<namespaces.getLength();j++) {
				String namespace=namespaces.item(j);
				namespaceSet.add(namespace);
			}
		}
	}

	JavaxValidationContext result= new JavaxValidationContext(schemasId, schema, namespaceSet, xsModels);
	result.init(schemasProvider, schemasId, namespaceSet, rootValidations, invalidRootNamespaces, ignoreUnknownNamespaces);
	return result;
}
 
Example 12
Source Project: iaf   Source File: JavaxXmlValidator.java    License: Apache License 2.0 5 votes vote down vote up
protected List<XSModel> getXSModels(List<nl.nn.adapterframework.validation.Schema> schemas) throws IOException, XMLStreamException, ConfigurationException {
	List<XSModel> result = new ArrayList<XSModel>();
	XMLSchemaLoader xsLoader = new XMLSchemaLoader();
	for (nl.nn.adapterframework.validation.Schema schema : schemas) {
		XSModel xsModel = xsLoader.loadURI(schema.getSystemId());
		result.add(xsModel);
	}
	return result;
}
 
Example 13
Source Project: iaf   Source File: JavaxXmlValidator.java    License: Apache License 2.0 5 votes vote down vote up
JavaxValidationContext(String schemasId, Schema schema, Set<String> namespaceSet, List<XSModel> xsModels) {
	super();
	this.schemasId=schemasId;
	this.schema=schema;
	this.namespaceSet=namespaceSet;
	this.xsModels=xsModels;
}
 
Example 14
Source Project: iaf   Source File: XercesXmlValidator.java    License: Apache License 2.0 5 votes vote down vote up
public List<XSModel> getXsModels() {
	if (xsModels==null) {
		xsModels=new LinkedList<XSModel>();
		Grammar[] grammars=grammarPool.retrieveInitialGrammarSet(XMLGrammarDescription.XML_SCHEMA);
		for(int i=0;i<grammars.length;i++) {
			xsModels.add(((XSGrammar)grammars[i]).toXSModel());
		}
	}
	return xsModels;
}
 
Example 15
Source Project: iaf   Source File: DomTreeAligner.java    License: Apache License 2.0 5 votes vote down vote up
public static String translate(Document xmlIn, URL schemaURL) throws SAXException, IOException {
ValidatorHandler validatorHandler = getValidatorHandler(schemaURL);
List<XSModel> schemaInformation = getSchemaInformation(schemaURL);

// create the validator, setup the chain
DomTreeAligner dta = new DomTreeAligner(validatorHandler,schemaInformation);

return dta.translate(xmlIn);
}
 
Example 16
Source Project: iaf   Source File: XmlTypeToJsonSchemaConverter.java    License: Apache License 2.0 5 votes vote down vote up
public XmlTypeToJsonSchemaConverter(List<XSModel> models, boolean skipArrayElementContainers, boolean skipRootElement, String schemaLocation, String definitionsPath) {
	this.models=models;
	this.skipArrayElementContainers=skipArrayElementContainers;
	this.skipRootElement=skipRootElement;
	this.schemaLocation=schemaLocation;
	this.definitionsPath=definitionsPath;
}
 
Example 17
Source Project: iaf   Source File: XmlTypeToJsonSchemaConverter.java    License: Apache License 2.0 5 votes vote down vote up
public JsonStructure createJsonSchema(String elementName, String namespace) {
	XSElementDeclaration elementDecl=findElementDeclaration(elementName, namespace);
	if (elementDecl==null && namespace!=null) {
		elementDecl=findElementDeclaration(elementName, null);
	}
	if (elementDecl==null) {
		log.warn("Cannot find declaration for element ["+elementName+"]");
		if (log.isTraceEnabled()) 
			for (XSModel model:models) {
				log.trace("model ["+ToStringBuilder.reflectionToString(model,ToStringStyle.MULTI_LINE_STYLE)+"]");
			}
		return null;
	}
	return createJsonSchema(elementName, elementDecl);
}
 
Example 18
Source Project: iaf   Source File: Properties2Xml.java    License: Apache License 2.0 5 votes vote down vote up
public static String translate(Map<String,String> data, URL schemaURL, String rootElement, String targetNamespace) throws SAXException, IOException {
ValidatorHandler validatorHandler = getValidatorHandler(schemaURL);
List<XSModel> schemaInformation = getSchemaInformation(schemaURL);

// create the validator, setup the chain
Properties2Xml p2x = new Properties2Xml(validatorHandler,schemaInformation,rootElement);
if (targetNamespace!=null) {
	p2x.setTargetNamespace(targetNamespace);
}

return p2x.translate(data);
}
 
Example 19
Source Project: iaf   Source File: XmlAligner.java    License: Apache License 2.0 5 votes vote down vote up
protected static List<XSModel> getSchemaInformation(URL schemaURL) {
	XMLSchemaLoader xsLoader = new XMLSchemaLoader();
	XSModel xsModel = xsLoader.loadURI(schemaURL.toExternalForm());
	List<XSModel> schemaInformation= new LinkedList<XSModel>();
	schemaInformation.add(xsModel);
	return schemaInformation;
}
 
Example 20
Source Project: lemminx   Source File: CMXSDDocument.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public CMXSDDocument(XSModel model, XSLoaderImpl xsLoaderImpl) {
	this.model = model;
	this.xsLoader = xsLoaderImpl;
	this.elementMappings = new HashMap<>();
	this.tracker = createFilesChangedTracker(model);
}
 
Example 21
Source Project: ts-reaktive   Source File: XMLToJSON.java    License: MIT License 4 votes vote down vote up
public XMLToJSON(XSModel model) {
    this.model = model;
}
 
Example 22
/**
 * @param args
 */
public static void main(String[] args)
{
   if (!args[0].equals("--dump"))
   {
      // Activates the resolver for Drb
      try
      {
         DrbFactoryResolver.setMetadataResolver (
               new DrbCortexMetadataResolver (
            DrbCortexModel.getDefaultModel ()));
      }
      catch (IOException e)
      {
         System.err.println ("Resolver cannot be handled.");
      }
      process(args[0]);
   }
   else
   {
   System.out.println("declare function local:deduplicate($list) {");
   System.out.println("  if (fn:empty($list)) then ()");
   System.out.println("  else");
   System.out.println("    let $head := $list[1],");
   System.out.println("      $tail := $list[position() > 1]");
   System.out.println("    return");
   System.out
         .println("      if (fn:exists($tail[ . = $head ])) then " +
               "local:deduplicate($tail)");
   System.out.println("      else ($head, local:deduplicate($tail))");
   System.out.println("};");
   System.out.println();
   System.out.println("declare function local:values($list) {");
   System.out
         .println("  fn:string-join(local:deduplicate(" +
               "fn:data($list)), ' ')");
   System.out.println("};");
   System.out.println();

   System.out.println("let $doc := !!!! GIVE PATH HERE !!!!");
   System.out.println("return\n(\n");

   /**
    * Open XML Schema
    */
   final XSLoader loader = new XMLSchemaLoader();

   final XSModel model = loader.loadURI(args[1]);

   XSNamedMap map = model.getComponents(XSConstants.ELEMENT_DECLARATION);

   if (map != null)
   {
      for (int j = 0; j < map.getLength(); j++)
      {
         dumpElement("", (XSElementDeclaration) map.item(j));
      }
   }

   System.out.println("\n) ^--- REMOVE LAST COMMA !!!");
   }
}
 
Example 23
Source Project: jlibs   Source File: Import.java    License: Apache License 2.0 4 votes vote down vote up
private void importWADL(String systemID) throws Exception{
    Application application = new WADLReader().read(systemID);

    DOMLSInputList inputList = new DOMLSInputList();
    XSModel schema = null;
    if(application.getGrammars()!=null){
        for(Include include: application.getGrammars().getInclude()){
            if(include.getHref()!=null)
                inputList.addSystemID(URLUtil.resolve(systemID, include.getHref()).toString());
        }
        for(Object any: application.getGrammars().getAny()){
            if(any instanceof Element)
                inputList.addStringData(DOMUtil.toString((Element)any), systemID);
        }
    }
    if(!inputList.isEmpty())
        schema = new XSParser().parse(inputList);

    Path root = null;
    for(Resources resources: application.getResources()){
        URI base = URI.create(resources.getBase());
        String url = base.getScheme()+"://"+base.getHost();
        if(base.getPort()!=-1)
            url += ":"+base.getPort();
        root = null;
        for(Path path: terminal.getRoots()){
            if(path.name.equals(url)){
                root = path;
                break;
            }
        }
        if(root==null){
            root = new Path(null, url);
            terminal.getRoots().add(root);
            if(base.getPath()!=null && !base.getPath().isEmpty())
                root = root.add(base.getPath());
        }
        root.schema = schema;
        for(Resource resource: resources.getResource())
            importResource(resource, root);
    }
    terminal.setCurrentPath(root);
}
 
Example 24
Source Project: jlibs   Source File: XSParser.java    License: Apache License 2.0 4 votes vote down vote up
public XSModel parse(String uri){
    XSModel xsModel = xsLoader.loadURI(uri);
    if(xsModel==null)
        throw new RuntimeException("Couldn't load XMLSchema from "+uri);
    return xsModel;
}
 
Example 25
Source Project: jlibs   Source File: XSParser.java    License: Apache License 2.0 4 votes vote down vote up
public XSModel parse(String... uris){
    XSModel xsModel = xsLoader.loadURIList(new StringListImpl(uris, uris.length));
    if(xsModel==null)
        throw new RuntimeException("Couldn't load XMLSchema from "+ Arrays.asList(uris));
    return xsModel;
}
 
Example 26
Source Project: jlibs   Source File: XSParser.java    License: Apache License 2.0 4 votes vote down vote up
public XSModel parse(LSInputList inputList){
    XSModel xsModel = xsLoader.loadInputList(inputList);
    if(xsModel==null)
        throw new RuntimeException("Couldn't load XMLSchema from "+ inputList);
    return xsModel;
}
 
Example 27
Source Project: jlibs   Source File: XSParser.java    License: Apache License 2.0 4 votes vote down vote up
public static XSModel getBuiltInSchema(){
    return new XSModelImpl(new SchemaGrammar[0]);
}
 
Example 28
Source Project: jlibs   Source File: XSDOutlinePanel.java    License: Apache License 2.0 4 votes vote down vote up
public void setXSModel(XSModel model){
    setXSModel(model, XSUtil.createNamespaceSupport(model));
}
 
Example 29
Source Project: carbon-commons   Source File: WsdlValidator.java    License: Apache License 2.0 4 votes vote down vote up
private WSDLValidationInfo validaWSDLFromURI(InputStream stream) throws Exception {
       InputStream inputStream = null;
       URL url;

       try {
           String sanitizedXMLString = sanitizeXMLFileData(stream);
           Document doc = secureParseXML(sanitizedXMLString);
           url = loadXMLToFile(doc);
           inputStream = url.openStream();

           ResourceBundle rb = ResourceBundle.getBundle("validatewsdl");
           MessageGenerator messagegenerator = new MessageGenerator(rb);
           WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
           reader.setFeature("javax.wsdl.importDocuments", true);
           Definition wsdlDefinition = reader.readWSDL(url.toString());
           ControllerValidationInfo validateInfo = new ValidationInfoImpl(url.toString(),
                   messagegenerator);

           URIResolver uriResolver = new URIResolver();
           ((ValidationInfoImpl) validateInfo).setURIResolver(uriResolver);
           /*java.util.Hashtable attributes = new java.util.Hashtable();
            ((ValidationInfoImpl) validateInfo).setAttributes(attributes);*/

           WSDL11ValidationInfoImpl info = new WSDL11ValidationInfoImpl(validateInfo);
           info.setElementLocations(new java.util.Hashtable());
           WSDL11BasicValidator validator = new WSDL11BasicValidator();
//           registerExtensionValidators(validator.getClass().getClassLoader());
           /*validator.setResourceBundle(rb);*/
           IValidationMessage[] messages;

           ExtendedWSDL11ValidatorController wsdl11ValidatorController =
                   new ExtendedWSDL11ValidatorController();
           WSDLDocument[] wsdlDocs = wsdl11ValidatorController.readWSDLDocument(doc,
                   validateInfo.getFileURI(),
                   messagegenerator,
                   info);
           WSDLDocument document = wsdlDocs[0];
           List schema = document.getSchemas();
           for (Object aSchema : schema) {
               info.addSchema((XSModel) aSchema);
           }
           // Set the element locations table.
           info.setElementLocations(document.getElementLocations());
           validator.validate(wsdlDefinition, new ArrayList(), info);
           messages = validateInfo.getValidationMessages();

           WSDLValidationInfo wsdlValidationInfo = new WSDLValidationInfo();
           if (messages.length > 0) {
               wsdlValidationInfo.setStatus(WSDL_INVALID);
           } else {
               wsdlValidationInfo.setStatus(WSDL_VALID);
           }
           for (IValidationMessage message : messages) {
               String messageString =
                       "[" + message.getLine() + "][" + message.getColumn() + "]"
                               + message.getMessage();
               wsdlValidationInfo.addValidationMessage(messageString);
           }
           return wsdlValidationInfo;
       } finally {
           if (inputStream != null) {
               inputStream.close();
           }
       }
   }
 
Example 30
Source Project: iaf   Source File: JavaxXmlValidator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public List<XSModel> getXSModels() {
	throw new NotImplementedException("getXSModels()");
}