public EpisodeBuilder addClass(final ClassOutline classOutline) { this.outlines.add(new OutlineAdaptor(classOutline.target.getSchemaComponent(), OutlineAdaptor.OutlineType.CLASS, classOutline.implClass)); return this; }
@Override public XSComponent getSchemaComponent() { return getSource().getSchemaComponent(); }
public static boolean hasAnnotation(ClassOutline classOutline, QName qname) { XSComponent xsComponent = classOutline.target.getSchemaComponent(); if (xsComponent == null) { return false; } return hasAnnotation(xsComponent.getAnnotation(false), qname) != null; }
private Map<QName, List<QName>> getComplexTypeToElementName(ClassOutline classOutline) { Map<QName, List<QName>> complexTypeToElementName = new HashMap<>(); XSSchemaSet schemaSet = classOutline.target.getSchemaComponent().getRoot(); for (XSSchema schema : schemaSet.getSchemas()) { Map<String, XSElementDecl> elemDecls = schema.getElementDecls(); for (Entry<String, XSElementDecl> entry : elemDecls.entrySet()) { XSElementDecl decl = entry.getValue(); XSType xsType = decl.getType(); if (xsType.getName() == null) { continue; } QName type = new QName(xsType.getTargetNamespace(), xsType.getName()); List<QName> qnames = complexTypeToElementName.get(type); if (qnames == null) { qnames = new ArrayList<>(); complexTypeToElementName.put(type, qnames); } qnames.add(new QName(decl.getTargetNamespace(), decl.getName())); } } return complexTypeToElementName; }
private boolean containingChoice(CClassInfo typeBean) { XSComponent component = typeBean.getSchemaComponent(); if (component instanceof XSComplexType) { XSContentType contentType = ((XSComplexType) component).getContentType(); XSParticle particle = contentType.asParticle(); if (particle != null) { XSTerm term = particle.getTerm(); XSModelGroup modelGroup = term.asModelGroup(); if (modelGroup != null) { return (modelGroup.getCompositor() == XSModelGroup.Compositor.CHOICE); } } } return false; }
private boolean containingChoice(CClassInfo typeBean) { XSComponent component = typeBean.getSchemaComponent(); if (component instanceof XSComplexType) { XSContentType contentType = ((XSComplexType) component).getContentType(); XSParticle particle = contentType.asParticle(); if (particle != null) { XSTerm term = particle.getTerm(); XSModelGroup modelGroup = term.asModelGroup(); if (modelGroup != null) { return (modelGroup.getCompositor() == XSModelGroup.Compositor.CHOICE); } } } return false; }
private boolean containingChoice(CClassInfo typeBean) { XSComponent component = typeBean.getSchemaComponent(); if (component instanceof XSComplexType) { XSContentType contentType = ((XSComplexType) component).getContentType(); XSParticle particle = contentType.asParticle(); if (particle != null) { XSTerm term = particle.getTerm(); XSModelGroup modelGroup = term.asModelGroup(); if (modelGroup != null) { return (modelGroup.getCompositor() == XSModelGroup.Compositor.CHOICE); } } } return false; }
XSComponent sc = co.target.getSchemaComponent(); if(sc==null) continue; if (!(sc instanceof XSDeclaration)) child.scd(co.target.getSchemaComponent().apply(SCD)); child.klass().ref(co.implClass.fullName());
XSComponent sc = co.target.getSchemaComponent(); if(sc==null) continue; if (!(sc instanceof XSDeclaration)) child.scd(co.target.getSchemaComponent().apply(SCD)); child.klass().ref(co.implClass.fullName());
XSComponent sc = co.target.getSchemaComponent(); String fullName = co.implClass.fullName(); String packageName = co.implClass.getPackage().name();
XSComponent sc = co.target.getSchemaComponent(); String fullName = co.implClass.fullName(); String packageName = co.implClass.getPackage().name();
XSComponent sc = co.target.getSchemaComponent(); String fullName = co.implClass.fullName(); String packageName = co.implClass.getPackage().name();
final XSComponent xsTypeComponent = classOutline.target.getSchemaComponent(); final XSComplexType classComponent = getTypeDefinition(xsTypeComponent); if (classComponent != null) {
public Collection<CClassInfo> process(final ProcessModel context, CClassInfo classInfo) { final XSComponent component = classInfo.getSchemaComponent();
public Collection<CClassInfo> process(final ProcessModel context, CClassInfo classInfo) { final XSComponent component = classInfo.getSchemaComponent();
XSComponent sc = classOutline.target.getSchemaComponent();
XSComponent sc = classOutline.target.getSchemaComponent();