@Test public void testIsSimpleContentType() { assertTrue(XPath.isSimpleContentType(GMLSchema.CODETYPE_TYPE)); assertTrue(XPath.isSimpleContentType(GMLSchema.MEASURETYPE_TYPE)); assertFalse(XPath.isSimpleContentType(GMLSchema.POINTTYPE_TYPE)); assertFalse(XPath.isSimpleContentType(GMLSchema.POINTPROPERTYTYPE_TYPE)); assertFalse(XPath.isSimpleContentType(GMLSchema.ABSTRACTFEATURETYPE_TYPE)); assertFalse(XPath.isSimpleContentType(GMLSchema.ABSTRACTFEATURECOLLECTIONTYPE_TYPE)); }
static boolean isSimpleContentType(AttributeType type) { if (type == XSSchema.ANYSIMPLETYPE_TYPE) { throw new RuntimeException("Unexpected simple type"); } AttributeType superType = type.getSuper(); if (superType == XSSchema.ANYSIMPLETYPE_TYPE) { return true; } else if (superType == null) { return false; } else { return isSimpleContentType(superType); } }
XPath { static boolean isSimpleContentType(AttributeType type) { if (type == XSSchema.ANYSIMPLETYPE_TYPE) { throw new RuntimeException("Unexpected simple type"); } AttributeType superType = type.getSuper(); if (superType == XSSchema.ANYSIMPLETYPE_TYPE) { return true; } else if (superType == null) { return false; } else { return isSimpleContentType(superType); } } }
XPath { static boolean isSimpleContentType(AttributeType type) { if (type == XSSchema.ANYSIMPLETYPE_TYPE) { throw new RuntimeException("Unexpected simple type"); } AttributeType superType = type.getSuper(); if (superType == XSSchema.ANYSIMPLETYPE_TYPE) { return true; } else if (superType == null) { return false; } else { return isSimpleContentType(superType); } } XPath();  XPath(FilterFactory ff, FeatureFactory featureFactory); }
XPath { static boolean isSimpleContentType(AttributeType type) { if (type == XSSchema.ANYSIMPLETYPE_TYPE) { throw new RuntimeException("Unexpected simple type"); } AttributeType superType = type.getSuper(); if (superType == XSSchema.ANYSIMPLETYPE_TYPE) { return true; } else if (superType == null) { return false; } else { return isSimpleContentType(superType); } } XPath();  XPath(FilterFactory ff, FeatureFactory featureFactory); void setFilterFactory(FilterFactory ff); void setCRS(CoordinateReferenceSystem crs); void setFeatureFactory(FeatureFactory featureFactory); static StepList steps(final AttributeDescriptor root, final String xpathExpression,
            final NamespaceSupport namespaces); Attribute set(final Attribute att, final StepList xpath, Object value, String id,
            AttributeType targetNodeType, boolean isXlinkRef, Expression sourceExpression); Attribute set(final Attribute att, final StepList xpath, Object value, String id,
            AttributeType targetNodeType, boolean isXlinkRef, AttributeDescriptor targetDescriptor,
            Expression sourceExpression); boolean isComplexType(final StepList attrXPath, final AttributeDescriptor featureType); }
XPath { static boolean isSimpleContentType(AttributeType type) { if (type == XSSchema.ANYSIMPLETYPE_TYPE) { throw new RuntimeException("Unexpected simple type"); } AttributeType superType = type.getSuper(); if (superType == XSSchema.ANYSIMPLETYPE_TYPE) { return true; } else if (superType == null) { return false; } else { return isSimpleContentType(superType); } } XPath();  XPath(FilterFactory ff, FeatureFactory featureFactory); void setFilterFactory(FilterFactory ff); void setCRS(CoordinateReferenceSystem crs); void setFeatureFactory(FeatureFactory featureFactory); static StepList steps(final AttributeDescriptor root, final String xpathExpression,
            final NamespaceSupport namespaces); Attribute set(final Attribute att, final StepList xpath, Object value, String id,
            AttributeType targetNodeType, boolean isXlinkRef, Expression sourceExpression); Attribute set(final Attribute att, final StepList xpath, Object value, String id,
            AttributeType targetNodeType, boolean isXlinkRef, AttributeDescriptor targetDescriptor,
            Expression sourceExpression); boolean isComplexType(final StepList attrXPath, final AttributeDescriptor featureType);  }