/** * Evaluates the SCD against the whole schema set and * returns the matched node. * * @return * null if the SCD didn't match anything. If the SCD matched more than one node, * the first one will be returned. */ public final XSComponent selectSingle(XSSchemaSet contextNode) { Iterator<XSComponent> r = select(contextNode.iterateSchema()); if(r.hasNext()) return r.next(); return null; }
/** * Evaluates the SCD against the whole schema set and * returns the matched node. * * @return * null if the SCD didn't match anything. If the SCD matched more than one node, * the first one will be returned. */ public final XSComponent selectSingle(XSSchemaSet contextNode) { Iterator<XSComponent> r = select(contextNode.iterateSchema()); if(r.hasNext()) return r.next(); return null; }
public Iterator<XSSchema> iterator(XSComponent contextNode) { return contextNode.getRoot().iterateSchema(); }
public Iterator<XSSchema> iterator(XSComponent contextNode) { return contextNode.getRoot().iterateSchema(); }
/** * Evaluates the SCD against the whole schema set and * returns the matched node. * * @return * null if the SCD didn't match anything. If the SCD matched more than one node, * the first one will be returned. */ public final XSComponent selectSingle(XSSchemaSet contextNode) { Iterator<XSComponent> r = select(contextNode.iterateSchema()); if(r.hasNext()) return r.next(); return null; }
/** * Evaluates the SCD against the whole schema set and * returns the matched node. * * @return * null if the SCD didn't match anything. If the SCD matched more than one node, * the first one will be returned. */ public final XSComponent selectSingle(XSSchemaSet contextNode) { Iterator<XSComponent> r = select(contextNode.iterateSchema()); if(r.hasNext()) return r.next(); return null; }
/** * Evaluates the SCD against the whole schema set and * returns the matched node. * * @return * null if the SCD didn't match anything. If the SCD matched more than one node, * the first one will be returned. */ public final XSComponent selectSingle(XSSchemaSet contextNode) { Iterator<XSComponent> r = select(contextNode.iterateSchema()); if(r.hasNext()) return r.next(); return null; }
public Iterator<XSSchema> iterator(XSComponent contextNode) { return contextNode.getRoot().iterateSchema(); }
public Iterator<XSSchema> iterator(XSComponent contextNode) { return contextNode.getRoot().iterateSchema(); }
public Iterator<XSSchema> iterator(XSComponent contextNode) { return contextNode.getRoot().iterateSchema(); }
public void visit( XSSchemaSet s ) { Iterator itr = s.iterateSchema(); while(itr.hasNext()) { schema((XSSchema)itr.next()); println(); } }
public void visit( XSSchemaSet s ) { Iterator itr = s.iterateSchema(); while(itr.hasNext()) { schema((XSSchema)itr.next()); println(); } }
public void visit( XSSchemaSet s ) { Iterator itr = s.iterateSchema(); while(itr.hasNext()) { schema((XSSchema)itr.next()); println(); } }
public void visit( XSSchemaSet s ) { Iterator itr = s.iterateSchema(); while(itr.hasNext()) { schema((XSSchema)itr.next()); println(); } }
public void visit( XSSchemaSet s ) { Iterator itr = s.iterateSchema(); while(itr.hasNext()) { schema((XSSchema)itr.next()); println(); } }
private void interpretResult(XSSchemaSet sset) { XSSchema xs; Iterator<XSSchema> it; Iterator<XSElementDecl> itt; XSElementDecl el; it = sset.iterateSchema(); while (it.hasNext()) { xs = it.next(); if (!xs.getTargetNamespace().endsWith("/XMLSchema")) { itt = xs.iterateElementDecls(); while (itt.hasNext()) { el = itt.next(); interpretElement(el, sset); } final Iterator<XSComplexType> ict = xs.iterateComplexTypes(); while (ict.hasNext()) { processComplexType(ict.next(), null, sset); } final Iterator<XSSimpleType> ist = xs.iterateSimpleTypes(); while (ist.hasNext()) { processSimpleType(ist.next(), null); } } } }
public RefPackage execute(File schemaFile) throws IllegalArgumentException { RefPackage result; Iterator<XSSchema> schemasIterator; XSOMParser parser; XSSchemaSet schemaSet; XSSchema schema; ModelFactory modelFactory; modelFactory = modelRepository.loadMetamodel("UML13"); result = modelFactory.instantiate(); factory = new Uml13ModelFactory( result); parser = constructSchemaParser(); try { parser.parse( schemaFile ); schemaSet = parser.getResult(); } catch (SAXException|IOException ex) { throw new IllegalArgumentException(ex); } if ( schemaSet != null ) { anyType = schemaSet.getAnyType(); stringType = schemaSet.getType( "http://www.w3.org/2001/XMLSchema", "string" ); schemasIterator = schemaSet.iterateSchema(); while ( schemasIterator.hasNext() ) { schema = schemasIterator.next(); describeSchema( schema ); } } else { throw new IllegalArgumentException( "No valid/complete schemas parsed"); } return result; }
Iterator<XSSchema> itr = schemaSet.iterateSchema(); while (itr.hasNext())