org.geotools.feature
Class Types
Object
Types
Types
public class Types
- extends Types
This is a set of utility methods used when implementing types.
This set of classes captures the all important how does it work questions, particularly with
respect to super types.
- Author:
- Jody Garnett (Refractions Research), Justin Deoliveira (The Open Planning Project)
Constructor Summary |
Types()
|
Methods inherited from class Types |
assertNameAssignable, assertOrderAssignable, degloseName, descriptor, descriptor, descriptor, descriptors, descriptors, descriptors, equals, findDescriptor, findDescriptor, fromNames, fromTypeNames, isSuperType, isValid, names, parse, parse, toName, toNames, toQName, toQName, toTypeName, toTypeNames, typeName, typeName, typeName, validate, validate, validate, validate, validate, validate, validate, validate, validate |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Types
public Types()
isElement
public static boolean isElement(ComplexType type,
Name att)
- Return true if an attribute from a type is an element.
- Parameters:
type
- The type to search in.att
- The attribute name.
- Returns:
- True if the attribute exists in the type and is an element.
isSimpleContentType
public static boolean isSimpleContentType(PropertyType type)
- Return true if the type is either a simple type or has a simple type as its supertype. In
particular, complex types with simple content will return true.
- Parameters:
type
-
- Returns:
isGeometryType
public static boolean isGeometryType(AttributeType type)
Copyright © 1996-2014 Geotools. All Rights Reserved.