private int getIntegerFacet(XSFacet facet) { if (facet == null) return 0; String ret = facet.getValue().value; if (ret == null) return 0; return Integer.parseInt(ret); }
public void facet(XSFacet facet) { SchemaTreeNode newNode = new SchemaTreeNode(MessageFormat.format( "{0} value=\"{1}\"", new Object[]{facet.getName(), facet.getValue(), }), facet.getLocator()); this.currNode.add(newNode); }
String mdoc=builder.getBindInfo(facet).getDocumentation(); if(!enums.add(facet.getValue().value)) continue; // ignore the 2nd occasion String facetValue = facet.getValue().value; BIEnumMember mem = members.get(facetValue); if( mem==null ) memberList.add(new CEnumConstant(name,mdoc,facet.getValue().value,facet.getLocator()));
protected boolean match(XSFacet f) { return f.getName().equals(name); } }
enumerations.size()); for (XSFacet facet : enumerations) { String value = facet.getValue().value; Element descriptionE = SchemaProcessorUtil.getAnnotationElement(facet.getAnnotation(), SCHEMA_DOCUMENTATION); Element appInfo = SchemaProcessorUtil.getAnnotationElement(facet.getAnnotation(), SCHEMA_APP_INFO); Element valueE = null;
public T restrictionSimpleType( XSRestrictionSimpleType restrictionSimpleType) { final List<T> values = new LinkedList<T>(); final T parentValue; if (restrictionSimpleType.getBaseType() != null) { parentValue = restrictionSimpleType.getBaseType().apply(this); } else { parentValue = null; } values.add(parentValue); // for () for (XSFacet facet : restrictionSimpleType.getDeclaredFacets()) { final T facetValue = facet.apply(this); values.add(facetValue); } return aggregate(values); }
String mdoc=builder.getBindInfo(facet).getDocumentation(); if(!enums.add(facet.getValue().value)) continue; // ignore the 2nd occasion String facetValue = facet.getValue().value; BIEnumMember mem = members.get(facetValue); if( mem==null ) memberList.add(new CEnumConstant(name,mdoc,facet.getValue().value,facet,builder.getBindInfo(facet).toCustomizationList(),facet.getLocator()));
protected boolean match(XSFacet f) { return f.getName().equals(name); } }
public T restrictionSimpleType( XSRestrictionSimpleType restrictionSimpleType) { final List<T> values = new LinkedList<T>(); final T parentValue; if (restrictionSimpleType.getBaseType() != null) { parentValue = restrictionSimpleType.getBaseType().apply(this); } else { parentValue = null; } values.add(parentValue); // for () for (XSFacet facet : restrictionSimpleType.getDeclaredFacets()) { final T facetValue = facet.apply(this); values.add(facetValue); } return aggregate(values); }
@Override public void restrictionSimpleType(XSRestrictionSimpleType type) { final List<XSFacet> facets = type.getFacets(XSFacet.FACET_ENUMERATION); if (facets != null) { for (XSFacet facet : facets) { final XmlString value = facet.getValue(); if (value != null) { this.values.add(value); } } } } }
public void facet(XSFacet facet) { SchemaTreeNode newNode = new SchemaTreeNode(MessageFormat.format( "{0} value=\"{1}\"", new Object[]{facet.getName(), facet.getValue(), }), facet.getLocator()); this.currNode.add(newNode); }
String mdoc=builder.getBindInfo(facet).getDocumentation(); if(!enums.add(facet.getValue().value)) continue; // ignore the 2nd occasion String facetValue = facet.getValue().value; BIEnumMember mem = members.get(facetValue); if( mem==null ) memberList.add(new CEnumConstant(name,mdoc,facet.getValue().value,facet,builder.getBindInfo(facet).toCustomizationList(),facet.getLocator()));
protected boolean match(XSFacet f) { return f.getName().equals(name); } }
@Override public void restrictionSimpleType(XSRestrictionSimpleType type) { final List<XSFacet> facets = type.getFacets(XSFacet.FACET_ENUMERATION); if (facets != null) { for (XSFacet facet : facets) { final XmlString value = facet.getValue(); if (value != null) { this.values.add(value); } } } } }
public void facet(XSFacet facet) { SchemaTreeNode newNode = new SchemaTreeNode(MessageFormat.format( "{0} value=\"{1}\"", new Object[]{facet.getName(), facet.getValue(), }), facet.getLocator()); this.currNode.add(newNode); }
String mdoc=builder.getBindInfo(facet).getDocumentation(); if(!enums.add(facet.getValue().value)) continue; // ignore the 2nd occasion String facetValue = facet.getValue().value; BIEnumMember mem = members.get(facetValue); if( mem==null ) memberList.add(new CEnumConstant(name,mdoc,facet.getValue().value,facet,builder.getBindInfo(facet).toCustomizationList(),facet.getLocator()));