private int getIntegerFacet(XSFacet facet) { if (facet == null) return 0; String ret = facet.getValue().value; if (ret == null) return 0; return Integer.parseInt(ret); }
@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); } } } } }
@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); } } } } }
private void annotateMultiplePattern(final List<XSFacet> patternList, final JAnnotationUse patternAnnotation) { StringBuilder sb = new StringBuilder(); for (XSFacet xsFacet : patternList) { final String value = xsFacet.getValue().value; // cxf-codegen fix if (!"\\c+".equals(value)) { sb.append("(").append(replaceXmlProprietals(value)).append(")|"); } } patternAnnotation.param("regexp", sb.substring(0, sb.length() - 1)); }
private BigInteger readFacet(String facetName,int offset) { XSFacet me = initiatingType.getFacet(facetName); if(me==null) return null; BigInteger bi = DatatypeConverter.parseInteger(me.getValue().value); if(offset!=0) bi = bi.add(BigInteger.valueOf(offset)); return bi; }
private BigInteger readFacet(String facetName,int offset) { XSFacet me = initiatingType.getFacet(facetName); if(me==null) return null; BigInteger bi = DatatypeConverterImpl._parseInteger(me.getValue().value); if(offset!=0) bi = bi.add(BigInteger.valueOf(offset)); return bi; }
private BigInteger readFacet(String facetName,int offset) { XSFacet me = initiatingType.getFacet(facetName); if(me==null) return null; BigInteger bi = DatatypeConverter.parseInteger(me.getValue().value); if(offset!=0) bi = bi.add(BigInteger.valueOf(offset)); return bi; }
private BigInteger readFacet(String facetName,int offset) { XSFacet me = initiatingType.getFacet(facetName); if(me==null) return null; BigInteger bi = DatatypeConverterImpl._parseInteger(me.getValue().value); if(offset!=0) bi = bi.add(BigInteger.valueOf(offset)); return bi; }
private BigInteger readFacet(String facetName,int offset) { XSFacet me = initiatingType.getFacet(facetName); if(me==null) return null; BigInteger bi = DatatypeConverter.parseInteger(me.getValue().value); if(offset!=0) bi = bi.add(BigInteger.valueOf(offset)); return bi; }
public void facet( XSFacet facet ) { println(MessageFormat.format("<{0} value=\"{1}\"/>", facet.getName(), facet.getValue())); }
public void facet( XSFacet facet ) { println(MessageFormat.format("<{0} value=\"{1}\"/>", facet.getName(), facet.getValue())); }
public void facet( XSFacet facet ) { println(MessageFormat.format("<{0} value=\"{1}\"/>", facet.getName(), facet.getValue())); }
public void facet( XSFacet facet ) { println(MessageFormat.format("<{0} value=\"{1}\"/>", facet.getName(), facet.getValue())); }
public void facet( XSFacet facet ) { println(MessageFormat.format("<{0} value=\"{1}\"/>", facet.getName(), facet.getValue())); }
protected boolean isValidValue(XSFacet facet) { String value = facet.getValue().value; // cxf-codegen puts max and min as value when there is not anything defined in wsdl. return value != null && !Utils.isMax(value) && !Utils.isMin(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); }
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); }
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); }
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); }
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); }