private void run( Map<String,? extends XSComponent> col ) { for( XSComponent c : col.values() ) c.visit(this); }
private void run( Map<String,? extends XSComponent> col ) { for( XSComponent c : col.values() ) c.visit(this); }
private void run( Map<String,? extends XSComponent> col ) { for( XSComponent c : col.values() ) c.visit(this); }
private void run( Map<String,? extends XSComponent> col ) { for( XSComponent c : col.values() ) c.visit(this); }
private void run( Map<String,? extends XSComponent> col ) { for( XSComponent c : col.values() ) c.visit(this); }
public static List<QName> getTypeNames(XSComponent component) { Validate.notNull(component); final SimpleTypeVisitor visitor = new SimpleTypeVisitor(); component.visit(visitor); return visitor.getTypeNames(); }
public static List<QName> getTypeNames(XSComponent component) { Validate.notNull(component); final SimpleTypeVisitor visitor = new SimpleTypeVisitor(); component.visit(visitor); return visitor.getTypeNames(); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
public TypeInfoProducer<T, C> visitBuiltinLeafInfo(MBuiltinLeafInfo<T, C> info) { final O origin = this.originated.getOrigin(); final List<QName> simpleTypeNames = new LinkedList<QName>(); if (origin instanceof SchemaComponentAware) { final XSComponent component = ((SchemaComponentAware) origin).getSchemaComponent(); if (component != null) { final CollectSimpleTypeNamesVisitor visitor = new CollectSimpleTypeNamesVisitor(); component.visit(visitor); simpleTypeNames.addAll(visitor.getTypeNames()); } } simpleTypeNames.add(info.getTypeName()); for (QName candidateName : simpleTypeNames) { final TypeInfoProducer<T, C> typeInfoProducer = XSD_TYPE_MAPPING.get(candidateName); if (typeInfoProducer != null) { return typeInfoProducer; } } return null; }
public TypeInfoCompiler<T, C> visitBuiltinLeafInfo(MBuiltinLeafInfo<T, C> info) { final O origin = this.originated.getOrigin(); final List<QName> simpleTypeNames = new LinkedList<QName>(); if (origin instanceof SchemaComponentAware) { final XSComponent component = ((SchemaComponentAware) origin).getSchemaComponent(); if (component != null) { final CollectSimpleTypeNamesVisitor visitor = new CollectSimpleTypeNamesVisitor(); component.visit(visitor); simpleTypeNames.addAll(visitor.getTypeNames()); } } simpleTypeNames.add(info.getTypeName()); for (QName candidateName : simpleTypeNames) { final TypeInfoCompiler<T, C> typeInfoCompiler = XSD_TYPE_MAPPING.get(candidateName); if (typeInfoCompiler != null) { return typeInfoCompiler; } } return null; }
public TypeInfoProducer<T, C> visitBuiltinLeafInfo(MBuiltinLeafInfo<T, C> info) { final O origin = this.originated.getOrigin(); final List<QName> simpleTypeNames = new LinkedList<QName>(); if (origin instanceof SchemaComponentAware) { final XSComponent component = ((SchemaComponentAware) origin).getSchemaComponent(); if (component != null) { final CollectSimpleTypeNamesVisitor visitor = new CollectSimpleTypeNamesVisitor(); component.visit(visitor); simpleTypeNames.addAll(visitor.getTypeNames()); } } simpleTypeNames.add(info.getTypeName()); for (QName candidateName : simpleTypeNames) { final TypeInfoProducer<T, C> typeInfoProducer = XSD_TYPE_MAPPING.get(candidateName); if (typeInfoProducer != null) { return typeInfoProducer; } } return null; }
public TypeInfoCompiler<T, C> visitBuiltinLeafInfo(MBuiltinLeafInfo<T, C> info) { final O origin = this.originated.getOrigin(); final List<QName> simpleTypeNames = new LinkedList<QName>(); if (origin instanceof SchemaComponentAware) { final XSComponent component = ((SchemaComponentAware) origin).getSchemaComponent(); if (component != null) { final CollectSimpleTypeNamesVisitor visitor = new CollectSimpleTypeNamesVisitor(); component.visit(visitor); simpleTypeNames.addAll(visitor.getTypeNames()); } } simpleTypeNames.add(info.getTypeName()); for (QName candidateName : simpleTypeNames) { final TypeInfoCompiler<T, C> typeInfoCompiler = XSD_TYPE_MAPPING.get(candidateName); if (typeInfoCompiler != null) { return typeInfoCompiler; } } return null; }
public XJCCMElementTypeRefOrigin(CElementPropertyInfo source, CTypeRef typeRef) { super(source, typeRef); final XSComponent schemaComponent = source.getSchemaComponent(); if (schemaComponent != null) { final FindXSElementDeclVisitor visitor = new FindXSElementDeclVisitor( typeRef.getTagName()); schemaComponent.visit(visitor); this.component = visitor.getElementDecl(); } else { this.component = null; } }
out.write("<pre>\n"); SchemaWriter sw = new SchemaWriter(new JavadocEscapeWriter(out)); sc.visit(sw); out.write("</pre>"); append(bean,out.toString());
out.write("<pre>\n"); SchemaWriter sw = new SchemaWriter(new JavadocEscapeWriter(out)); sc.visit(sw); out.write("</pre>"); append(bean,out.toString());
component.visit(collectEnumerationValuesVisitor); final List<XmlString> enumerationValues = collectEnumerationValuesVisitor.getValues(); if (enumerationValues != null && !enumerationValues.isEmpty()) {