Search in sources :

Example 6 with AbstractIdentifiedType

use of org.apache.sis.feature.AbstractIdentifiedType in project sis by apache.

the class TypesTest method testResources.

/**
 * Verifies that all designations and definitions can be read from the resources.
 */
private static void testResources(final DefaultFeatureType type) {
    for (final AbstractIdentifiedType p : type.getProperties(false)) {
        final GenericName name = p.getName();
        if (!AttributeConvention.contains(name)) {
            final String label = name.toString();
            assertNonEmpty(label, p.getDesignation());
            assertNonEmpty(label, p.getDefinition());
        }
    }
}
Also used : GenericName(org.opengis.util.GenericName) AbstractIdentifiedType(org.apache.sis.feature.AbstractIdentifiedType) InternationalString(org.opengis.util.InternationalString)

Aggregations

AbstractIdentifiedType (org.apache.sis.feature.AbstractIdentifiedType)6 DefaultFeatureType (org.apache.sis.feature.DefaultFeatureType)4 DefaultFeatureTypeTest (org.apache.sis.feature.DefaultFeatureTypeTest)3 DependsOnMethod (org.apache.sis.test.DependsOnMethod)3 Test (org.junit.Test)3 GenericName (org.opengis.util.GenericName)2 Geometry (com.esri.core.geometry.Geometry)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Set (java.util.Set)1 AbstractOperation (org.apache.sis.feature.AbstractOperation)1 DefaultAssociationRole (org.apache.sis.feature.DefaultAssociationRole)1 DefaultAttributeType (org.apache.sis.feature.DefaultAttributeType)1 CorruptedObjectException (org.apache.sis.util.CorruptedObjectException)1 FactoryException (org.opengis.util.FactoryException)1 InternationalString (org.opengis.util.InternationalString)1