/** * Determines if the given component needs to have a value * constructor (a constructor that takes a parmater.) on ObjectFactory. */ private boolean needValueConstructor( XSComponent sc ) { if(!(sc instanceof XSElementDecl)) return false; XSElementDecl decl = (XSElementDecl)sc; if(!decl.getType().isSimpleType()) return false; return true; }
/** * Determines if the given component needs to have a value * constructor (a constructor that takes a parmater.) on ObjectFactory. */ private boolean needValueConstructor( XSComponent sc ) { if(!(sc instanceof XSElementDecl)) return false; XSElementDecl decl = (XSElementDecl)sc; if(!decl.getType().isSimpleType()) return false; return true; }
List<XSElementDecl> getChildElements() { final List<XSElementDecl> childs = new ArrayList<XSElementDecl>(); SchemaWalker schemaWalker = new SchemaWalker() { @Override public void elementDecl(XSElementDecl child) { childs.add(child); } }; element.getType().visit(schemaWalker); return childs; }
/** * Determines if the given component needs to have a value * constructor (a constructor that takes a parmater.) on ObjectFactory. */ private boolean needValueConstructor( XSComponent sc ) { if(!(sc instanceof XSElementDecl)) return false; XSElementDecl decl = (XSElementDecl)sc; if(!decl.getType().isSimpleType()) return false; return true; }
public void elementDecl(XSElementDecl e) { SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); stb.refererStack.push(e); // referer is element builder.ying(e.getType(),e); stb.refererStack.pop(); }
public void elementDecl(XSElementDecl e) { SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); stb.refererStack.push(e); // referer is element builder.ying(e.getType(),e); stb.refererStack.pop(); }
public void elementDecl(XSElementDecl e) { SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); stb.refererStack.push(e); // referer is element builder.ying(e.getType(),e); stb.refererStack.pop(); }
public List<XSElementDecl> getElementDecls() { ArrayList declList = new ArrayList(); XSSchemaSet schemaSet = getRoot(); for (XSSchema sch : schemaSet.getSchemas()) { for (XSElementDecl decl : sch.getElementDecls().values()) { if (decl.getType().equals(this)) { declList.add(decl); } } } return declList; } }
public List<XSElementDecl> getElementDecls() { ArrayList declList = new ArrayList(); XSSchemaSet schemaSet = getRoot(); for (XSSchema sch : schemaSet.getSchemas()) { for (XSElementDecl decl : sch.getElementDecls().values()) { if (decl.getType().equals(this)) { declList.add(decl); } } } return declList; } }
public List<XSElementDecl> getElementDecls() { ArrayList declList = new ArrayList(); XSSchemaSet schemaSet = getRoot(); for (XSSchema sch : schemaSet.getSchemas()) { for (XSElementDecl decl : sch.getElementDecls().values()) { if (decl.getType().equals(this)) { declList.add(decl); } } } return declList; } }
private QName determineType(XSElementDecl xsElementDecl) { // Check for a:type annotation. If present, this overrides the type QName type = getTypeAnnotation(xsElementDecl); if (type != null) { return type; } XSType xsType = xsElementDecl.getType(); if (xsType == null) { return null; } return getType(xsType); }
public void elementDecl(XSElementDecl decl) { if(check(decl)) { decl.getType().visit(this); for( XSIdentityConstraint id : decl.getIdentityConstraints() ) id.visit(this); } }
public void elementDecl(XSElementDecl decl) { if(check(decl)) { decl.getType().visit(this); for( XSIdentityConstraint id : decl.getIdentityConstraints() ) id.visit(this); } }
public Iterator<XSComponent> elementDecl(XSElementDecl decl) { XSComplexType ct = decl.getType().asComplexType(); if(ct==null) return empty(); else { // also pick up model groups inside this complex type return new Iterators.Union<XSComponent>(singleton(ct),complexType(ct)); } }
public Iterator<XSComponent> elementDecl(XSElementDecl decl) { XSComplexType ct = decl.getType().asComplexType(); if(ct==null) return empty(); else { // also pick up model groups inside this complex type return new Iterators.Union<XSComponent>(singleton(ct),complexType(ct)); } }