private static BigInteger getBigIntegerValue(XmlObject o) { SchemaType s = o.schemaType(); switch (s.getDecimalSize()) { case SchemaType.SIZE_BIG_DECIMAL: return ((XmlObjectBase)o).bigDecimalValue().toBigInteger(); case SchemaType.SIZE_BIG_INTEGER: return ((XmlObjectBase)o).bigIntegerValue(); default: throw new IllegalStateException("Bad facet type for Big Int: " + s); } }
protected int compare_to(XmlObject i) { if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER) return -i.compareTo(this); return _value.compareTo(((XmlObjectBase)i).bigIntegerValue()); }
protected boolean equal_to(XmlObject i) { if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER) return i.valueEquals(this); return _value.equals(((XmlObjectBase)i).bigIntegerValue()); }
if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) != v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) > v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) < v.length)
if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) != v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) > v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) < v.length)
if (len != null) int m = ((XmlObjectBase)len).bigIntegerValue().intValue(); if (v.length() != m) if (min != null) int m = ((XmlObjectBase)min).bigIntegerValue().intValue(); if (v.length() < m) if (max != null) int m = ((XmlObjectBase)max).bigIntegerValue().intValue(); if (v.length() > m)
private static boolean check(String v, SchemaType sType) { // check against length XmlObject len = sType.getFacet(SchemaType.FACET_LENGTH); if (len != null) { int m = ((XmlObjectBase)len).bigIntegerValue().intValue(); if (!(v.length() != m)) return false; } // check against min length XmlObject min = sType.getFacet(SchemaType.FACET_MIN_LENGTH); if (min != null) { int m = ((XmlObjectBase)min).bigIntegerValue().intValue(); if (!(v.length() >= m)) return false; } // check against min length XmlObject max = sType.getFacet(SchemaType.FACET_MAX_LENGTH); if (max != null) { int m = ((XmlObjectBase)max).bigIntegerValue().intValue(); if (!(v.length() <= m)) return false; } return true; }
protected boolean equal_to(XmlObject i) { if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER) return i.valueEquals(this); return _value.equals(((XmlObjectBase)i).bigIntegerValue()); }
private static BigInteger getBigIntegerValue(XmlObject o) { SchemaType s = o.schemaType(); switch (s.getDecimalSize()) { case SchemaType.SIZE_BIG_DECIMAL: return ((XmlObjectBase)o).bigDecimalValue().toBigInteger(); case SchemaType.SIZE_BIG_INTEGER: return ((XmlObjectBase)o).bigIntegerValue(); default: throw new IllegalStateException("Bad facet type for Big Int: " + s); } }
private static BigInteger getBigIntegerValue(XmlObject o) { SchemaType s = o.schemaType(); switch (s.getDecimalSize()) { case SchemaType.SIZE_BIG_DECIMAL: return ((XmlObjectBase)o).bigDecimalValue().toBigInteger(); case SchemaType.SIZE_BIG_INTEGER: return ((XmlObjectBase)o).bigIntegerValue(); default: throw new IllegalStateException("Bad facet type for Big Int: " + s); } }
protected int compare_to(XmlObject i) { if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER) return -i.compareTo(this); return _value.compareTo(((XmlObjectBase)i).bigIntegerValue()); }
protected int compare_to(XmlObject i) { if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER) return -i.compareTo(this); return _value.compareTo(((XmlObjectBase)i).bigIntegerValue()); }
protected boolean equal_to(XmlObject i) { if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER) return i.valueEquals(this); return _value.equals(((XmlObjectBase)i).bigIntegerValue()); }
private static long getLongValue(XmlObject o) { SchemaType s = o.schemaType(); switch (s.getDecimalSize()) { case SchemaType.SIZE_BIG_DECIMAL: return ((XmlObjectBase)o).bigDecimalValue().longValue(); case SchemaType.SIZE_BIG_INTEGER: return ((XmlObjectBase)o).bigIntegerValue().longValue(); case SchemaType.SIZE_LONG: return ((XmlObjectBase)o).longValue(); default: throw new IllegalStateException("Bad facet type: " + s); } }
private static int getIntValue(XmlObject o) { SchemaType s = o.schemaType(); switch (s.getDecimalSize()) { case SchemaType.SIZE_BIG_DECIMAL: return ((XmlObjectBase)o).bigDecimalValue().intValue(); case SchemaType.SIZE_BIG_INTEGER: return ((XmlObjectBase)o).bigIntegerValue().intValue(); case SchemaType.SIZE_LONG: return (int)((XmlObjectBase)o).longValue(); default: return ((XmlObjectBase)o).intValue(); } }
if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) != v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) > v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) < v.length)
if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) != v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) > v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) < v.length)
if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) != v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) > v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) < v.length)
if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) != v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) > v.length) if ((i = ((XmlObjectBase)o).bigIntegerValue().intValue()) < v.length)
if (len != null) int m = ((XmlObjectBase)len).bigIntegerValue().intValue(); if (v.length() != m) if (min != null) int m = ((XmlObjectBase)min).bigIntegerValue().intValue(); if (v.length() < m) if (max != null) int m = ((XmlObjectBase)max).bigIntegerValue().intValue(); if (v.length() > m)