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; } }
private AttributeType createProxiedType( final Name assignedName, final XSDTypeDefinition typeDefinition, Map typeRegistry) { AttributeType type; if (null == typeDefinition.getSimpleType() && typeDefinition instanceof XSDComplexTypeDefinition) { if (helper.isFeatureType(typeDefinition)) { type = new FeatureTypeProxy(assignedName, typeRegistry); } else { type = new ComplexTypeProxy(assignedName, typeRegistry); } } else { if (helper.isGeometryType(typeDefinition)) { type = new GeometryTypeProxy(assignedName, typeRegistry); } else { type = new AttributeTypeProxy(assignedName, typeRegistry); } } return type; }
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; } }
private AttributeType createProxiedType( final Name assignedName, final XSDTypeDefinition typeDefinition, Map typeRegistry) { AttributeType type; if (null == typeDefinition.getSimpleType() && typeDefinition instanceof XSDComplexTypeDefinition) { if (helper.isFeatureType(typeDefinition)) { type = new FeatureTypeProxy(assignedName, typeRegistry); } else { type = new ComplexTypeProxy(assignedName, typeRegistry); } } else { if (helper.isGeometryType(typeDefinition)) { type = new GeometryTypeProxy(assignedName, typeRegistry); } else { type = new AttributeTypeProxy(assignedName, typeRegistry); } } return type; }
if (!isFeatureReference()) XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getType().getSimpleType(); if (xsdSimpleTypeDefinition != null)
if (!isFeatureReference()) XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getType().getSimpleType(); if (xsdSimpleTypeDefinition != null)
private AttributeType createProxiedType(final Name assignedName, final XSDTypeDefinition typeDefinition, Map typeRegistry) { AttributeType type; if (null == typeDefinition.getSimpleType() && typeDefinition instanceof XSDComplexTypeDefinition) { boolean isFeatureType = isDerivedFrom(typeDefinition, GML.getAbstractFeatureType()); if (isFeatureType) { type = new FeatureTypeProxy(assignedName, typeRegistry); } else { type = new ComplexTypeProxy(assignedName, typeRegistry); } } else { boolean isGeometryType = isDerivedFrom(typeDefinition, GML.getAbstractGeometryType()); if (isGeometryType) { type = new GeometryTypeProxy(assignedName, typeRegistry); } else { type = new AttributeTypeProxy(assignedName, typeRegistry); } } return type; }
theBaseTypeDefinition = handleNewBaseTypeDefinition(complexBaseTypeDefinition.getSimpleType());
theBaseTypeDefinition = handleNewBaseTypeDefinition(complexBaseTypeDefinition.getSimpleType());