public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition; XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = definition.getSimpleType(); XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition; XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition; XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition; XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = definition .getSimpleType(); XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = definition .getSimpleType(); XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
public int length(XSDTypeDefinition definition) { try { XSDSimpleTypeDefinition simple = definition .getSimpleType(); XSDLengthFacet facet = simple.getLengthFacet(); if (facet == null) { return Integer.MAX_VALUE; } return Integer.parseInt(facet.getLexicalValue()); } catch (NumberFormatException ignore) { return Integer.MIN_VALUE; } }
XSDLengthFacet lengthFacet = xsdSimpleTypeDefinition.getLengthFacet();
/** * This tests whether the specified simple type definition, * <code>s</code>, can accomodate the given constraining facet, * <code>f</code>, based on its existing facet children. */ protected boolean canAccomodateFacet(XSDSimpleTypeDefinition s, XSDConstrainingFacet f) { return (f instanceof XSDRepeatableFacet) || (f instanceof XSDLengthFacet && s.getLengthFacet() == null && s.getMinLengthFacet() == null && s.getMaxLengthFacet() == null) || (f instanceof XSDMinLengthFacet && s.getMinLengthFacet() == null && s.getLengthFacet() == null) || (f instanceof XSDMaxLengthFacet && s.getMaxLengthFacet() == null && s.getLengthFacet() == null) || (f instanceof XSDWhiteSpaceFacet && s.getWhiteSpaceFacet() == null) || (f instanceof XSDMinInclusiveFacet && s.getMinFacet() == null) || (f instanceof XSDMinExclusiveFacet && s.getMinFacet() == null) || (f instanceof XSDMaxInclusiveFacet && s.getMaxFacet() == null) || (f instanceof XSDMaxExclusiveFacet && s.getMaxFacet() == null) || (f instanceof XSDTotalDigitsFacet && s.getTotalDigitsFacet() == null) || (f instanceof XSDFractionDigitsFacet && s.getFractionDigitsFacet() == null); } }
String maxValue = maxLengthText.getText().trim(); XSDLengthFacet lengthFacet = xsdSimpleTypeDefinition.getLengthFacet(); XSDMinLengthFacet minLengthFacet = xsdSimpleTypeDefinition.getMinLengthFacet(); XSDMaxLengthFacet maxLengthFacet = xsdSimpleTypeDefinition.getMaxLengthFacet();
if (type.getLengthFacet() != null) { XSDLengthFacet length = type.getLengthFacet();
if (type.getLengthFacet() != null) { XSDLengthFacet length = type.getLengthFacet();
if ( type.getLengthFacet() != null ) { XSDLengthFacet length = type.getLengthFacet(); if ( list.length != length.getValue() ) {