public class Types extends Types
This set of classes captures the all important how does it work questions, particularly with respect to super types.
DECLARED_NAMESPACES_MAP
Constructor and Description |
---|
Types() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canHaveTextContent(PropertyType type)
Returns true if the type is either
xs:anyType or is derived from
xs:anyType by extension and has mixed content. |
static boolean |
isElement(ComplexType type,
Name att)
Return true if an attribute from a type is an element.
|
static boolean |
isGeometryType(AttributeType type) |
static boolean |
isSimpleContentType(PropertyType type)
Return true if the type is either a simple type or has a simple type as its supertype.
|
assertNameAssignable, assertOrderAssignable, degloseName, descriptor, descriptor, descriptor, descriptors, descriptors, descriptors, equals, findDescriptor, findDescriptor, fromNames, fromTypeNames, isSuperType, isValid, names, parse, parse, toNames, toPrefixedName, toQName, toQName, toTypeName, toTypeNames, typeName, typeName, typeName, validate, validate, validate, validate, validate, validate, validate, validate, validate
public static boolean isElement(ComplexType type, Name att)
type
- The type to search in.att
- The attribute name.public static boolean isSimpleContentType(PropertyType type)
public static boolean isGeometryType(AttributeType type)
public static boolean canHaveTextContent(PropertyType type)
xs:anyType
or is derived from
xs:anyType
by extension and has mixed content.
Example:
<complexType name="TestType"> <complexContent> <extension base="anyType"> <attribute name="attr1" type="string" /> </extension> </complexContent> </complexType>
Copyright © 1996–2022 Geotools. All rights reserved.