/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
protected static String getAnonymousTypeName(XSType type, String fieldName) { if (type.isComplexType()) { XSElementDecl container = type.asComplexType().getScope(); String elName = container.getName(); return elName + ANONYMOUS_TYPE_SUFFIX; } else { return fieldName + ANONYMOUS_TYPE_SUFFIX; } }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
/** * 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; }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
/** * Gets a {@link NameClass} that represents all the terms in the given content type. * If t is not a particle, just return an empty name class. */ private NameClass getNameClass(XSContentType t) { if(t==null) return NameClass.NULL; XSParticle p = t.asParticle(); if(p==null) return NameClass.NULL; else return p.getTerm().apply(contentModelNameClassBuilder); }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }