/** * 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; }
/** * 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; }
/** * 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 boolean isApplicable(XSComplexType ct) { return ct.getBaseType().isSimpleType(); }
public boolean isApplicable(XSComplexType ct) { return ct.getBaseType().isSimpleType(); }
public boolean isApplicable(XSComplexType ct) { return ct.getBaseType().isSimpleType(); }
public boolean isApplicable(XSComplexType ct) { return ct.getBaseType().isSimpleType(); }
public boolean isApplicable(XSComplexType ct) { return ct.getBaseType().isSimpleType(); }
private boolean isDerivedFromComplexType(XSSchema schema, String localPart) { XSType base = schema.getType(localPart); if (base != null) { if (base.isSimpleType()) { typeFlag.add(TypeFlag.NO_ABSTRACT_GML); typeFlag.add(TypeFlag.NO_FEATURE); typeFlag.add(TypeFlag.NO_FEATURE_COLLECTION); typeFlag.add(TypeFlag.NO_CITY_OBJECT); typeFlag.add(TypeFlag.NO_GEOMETRY); typeFlag.add(TypeFlag.NO_FEATURE_PROPERTY); typeFlag.add(TypeFlag.NO_GEOMETRY_PROPERTY); return false; } else return element.getType().isDerivedFrom(base); } return false; }
public static QName getSimpleTypeName(XSElementDecl decl) { if(decl==null) return null; QName typeName = null; if(decl.getType().isSimpleType()) typeName = BGMBuilder.getName(decl.getType()); return typeName; }
public static QName getSimpleTypeName(XSElementDecl decl) { if(decl==null || !decl.getType().isSimpleType()) return null; // null if not simple type return resolveSimpleTypeName(decl.getType()); }
public static QName getSimpleTypeName(XSElementDecl decl) { if(decl==null || !decl.getType().isSimpleType()) return null; // null if not simple type return resolveSimpleTypeName(decl.getType()); }
public static QName getSimpleTypeName(XSElementDecl decl) { if(decl==null || !decl.getType().isSimpleType()) return null; // null if not simple type return resolveSimpleTypeName(decl.getType()); }
public static QName getSimpleTypeName(XSElementDecl decl) { if(decl==null) return null; QName typeName = null; if(decl.getType().isSimpleType()) typeName = BGMBuilder.getName(decl.getType()); return typeName; }
if (type.isSimpleType()) { if (type instanceof XSListSimpleType) { ecmType = loadListType(schema, (XSListSimpleType) type, fieldName);
private void convertElement(String mainURI, XSElementDecl element, OntClass parent) { XSType elementType = element.getType(); String URI = getURI(mainURI, element); OntClass elementClass = null; if (element.isGlobal()) { if (elementType.isSimpleType()) { elementClass = convertSimpleType(mainURI, elementType.asSimpleType(), URI); } else if (elementType.isComplexType()) { elementClass = convertComplexType(mainURI, elementType.asComplexType(), URI); } } XSElementDecl subs = element.getSubstAffiliation(); if (subs != null && elementClass != null) { OntClass subsClass = ontology.createClass(getURI(mainURI, subs)); LOGGER.debug("Adding superclass: {}", subsClass); subsClass.addSubClass(elementClass); } } // mainURI is schema-specific
private void processTermElement(JFieldVar fieldVar, XSElementDecl element, List<FacetCustomization> customizations) { XSType elementType = element.getType(); if (elementType.isComplexType()) { validAnnotate(fieldVar); if (!element.isNillable()) notNullAnnotate(fieldVar); if (elementType.getBaseType().isSimpleType()) processSimpleType(elementType.getBaseType().asSimpleType(), fieldVar, customizations); } else processSimpleType(elementType.asSimpleType(), fieldVar, customizations); }
private void processTermElement(XSParticle particle, JFieldVar fieldVar, XSElementDecl element, List<FacetCustomization> customizations) { final int minOccurs = getOccursValue("minOccurs", particle); XSType elementType = element.getType(); if (elementType.isComplexType()) { validAnnotate(fieldVar); if (!element.isNillable() && minOccurs > 0) { notNullAnnotate(fieldVar); } if (elementType.getBaseType().isSimpleType()) { processSimpleType(particle, elementType.getBaseType().asSimpleType(), fieldVar, customizations); } } else { processSimpleType(particle, elementType.asSimpleType(), fieldVar, customizations); } }