public Iterator<XSFacet> simpleType(XSSimpleType type) { // TODO: it's not clear if "facets" mean all inherited facets or just declared facets XSRestrictionSimpleType r = type.asRestriction(); if(r!=null) return r.iterateDeclaredFacets(); else return empty(); }
public Iterator<XSFacet> simpleType(XSSimpleType type) { // TODO: it's not clear if "facets" mean all inherited facets or just declared facets XSRestrictionSimpleType r = type.asRestriction(); if(r!=null) return r.iterateDeclaredFacets(); else return empty(); }
public Iterator<XSFacet> simpleType(XSSimpleType type) { // TODO: it's not clear if "facets" mean all inherited facets or just declared facets XSRestrictionSimpleType r = type.asRestriction(); if(r!=null) return r.iterateDeclaredFacets(); else return empty(); }
public Iterator<XSFacet> simpleType(XSSimpleType type) { // TODO: it's not clear if "facets" mean all inherited facets or just declared facets XSRestrictionSimpleType r = type.asRestriction(); if(r!=null) return r.iterateDeclaredFacets(); else return empty(); }
public Iterator<XSFacet> simpleType(XSSimpleType type) { // TODO: it's not clear if "facets" mean all inherited facets or just declared facets XSRestrictionSimpleType r = type.asRestriction(); if(r!=null) return r.iterateDeclaredFacets(); else return empty(); }
protected SimpleTypeRestriction getRestrictions(XSSimpleType xsSimpleType) { SimpleTypeRestriction simpleTypeRestriction = new SimpleTypeRestriction(); XSRestrictionSimpleType restriction = xsSimpleType.asRestriction(); if (restriction != null) {
if (xsType.isSimpleType()) { if (xsType.asSimpleType().isRestriction()) { XSRestrictionSimpleType restriction = xsType.asSimpleType().asRestriction(); List<XSFacet> enumerations = restriction.getDeclaredFacets(XSFacet.FACET_ENUMERATION); List<DisplayableValueImpl<T>> enumValues = new ArrayList<>(
public void simpleType(XSSimpleType simpleType) { if (simpleType.getName() != null) { typeNames.add(new QName(simpleType.getTargetNamespace(), simpleType .getName())); if (simpleType.isRestriction()) { final XSType baseType = simpleType.asRestriction() .getBaseType(); if (baseType != null) { baseType.visit(this); } } if (simpleType.isList()) { final XSSimpleType itemType = simpleType.asList().getItemType(); if (itemType != null) { itemType.visit(this); } } // simpleType.getSimpleBaseType() } }
public void simpleType(XSSimpleType simpleType) { if (simpleType.getName() != null) { typeNames.add(new QName(simpleType.getTargetNamespace(), simpleType .getName())); if (simpleType.isRestriction()) { final XSType baseType = simpleType.asRestriction() .getBaseType(); if (baseType != null) { baseType.visit(this); } } if (simpleType.isList()) { final XSSimpleType itemType = simpleType.asList().getItemType(); if (itemType != null) { itemType.visit(this); } } // simpleType.getSimpleBaseType() } } }
public void simpleType(XSSimpleType simpleType) { if (simpleType.getName() != null) { typeNames.add(new QName(simpleType.getTargetNamespace(), simpleType .getName())); if (simpleType.isRestriction()) { final XSType baseType = simpleType.asRestriction() .getBaseType(); if (baseType != null) { baseType.visit(this); } } if (simpleType.isList()) { final XSSimpleType itemType = simpleType.asList().getItemType(); if (itemType != null) { itemType.visit(this); } } // simpleType.getSimpleBaseType() } }
public void simpleType(XSSimpleType simpleType) { if (simpleType.getName() != null) { typeNames.add(new QName(simpleType.getTargetNamespace(), simpleType .getName())); if (simpleType.isRestriction()) { final XSType baseType = simpleType.asRestriction() .getBaseType(); if (baseType != null) { baseType.visit(this); } } if (simpleType.isList()) { final XSSimpleType itemType = simpleType.asList().getItemType(); if (itemType != null) { itemType.visit(this); } } // simpleType.getSimpleBaseType() } } }
createEnum(typeName, namespace, xs.asRestriction()); } else {
private OntClass convertRestriction(String mainURI, XSSimpleType simple, String URI) { XSRestrictionSimpleType restriction = simple.asRestriction(); baseFacets.initFacets(baseType.asRestriction());
private OntClass convertEnumeration(String mainURI, EnumeratedClass enumClass, XSSimpleType simple, SimpleTypeRestriction facets) { XSRestrictionSimpleType restriction = simple.asRestriction();
XSRestrictionSimpleType restriction = xsSimpleType.asRestriction(); if (restriction != null)
XSRestrictionSimpleType rst = type.asRestriction(); if(shouldBeMappedToTypeSafeEnumByDefault(rst)) { r = bindToTypeSafeEnum(rst,null,null, Collections.<String, BIEnumMember>emptyMap(),
XSRestrictionSimpleType rst = type.asRestriction(); if(shouldBeMappedToTypeSafeEnumByDefault(rst)) { r = bindToTypeSafeEnum(rst,null,null, Collections.<String, BIEnumMember>emptyMap(),
XSRestrictionSimpleType rst = type.asRestriction(); if(shouldBeMappedToTypeSafeEnumByDefault(rst)) { r = bindToTypeSafeEnum(rst,null,null, Collections.<String, BIEnumMember>emptyMap(),
XSRestrictionSimpleType rst = type.asRestriction(); if(shouldBeMappedToTypeSafeEnumByDefault(rst)) { r = bindToTypeSafeEnum(rst,null,null, Collections.<String, BIEnumMember>emptyMap(),
XSRestrictionSimpleType rst = type.asRestriction(); if(shouldBeMappedToTypeSafeEnumByDefault(rst)) { r = bindToTypeSafeEnum(rst,null,null, Collections.<String, BIEnumMember>emptyMap(),