public class AppSchemaUtils extends Object
Constructor and Description |
---|
AppSchemaUtils() |
Modifier and Type | Method and Description |
---|---|
static List<org.apache.xerces.xs.XSElementDeclaration> |
getAllFeatureProperties(org.apache.xerces.xs.XSModel model,
QName featureTypeName)
Produces a list of all properties for a specified feature type.
|
static QName |
getBuiltInDatatype(org.apache.xerces.xs.XSElementDeclaration propDecl)
Determines the built-in XML Schema datatype from which the given element
declaration is derived.
|
static org.apache.xerces.xs.XSElementDeclaration |
getComplexPropertyValue(org.apache.xerces.xs.XSElementDeclaration propertyDecl)
Returns the expected value of the given (complex) property declaration.
|
static List<org.apache.xerces.xs.XSElementDeclaration> |
getFeaturePropertiesByType(org.apache.xerces.xs.XSModel model,
QName featureTypeName,
org.apache.xerces.xs.XSTypeDefinition typeDef)
Produces a list of feature properties where the property value has a type
derived from the given (simple or complex) type definition.
|
static List<org.apache.xerces.xs.XSElementDeclaration> |
getNillableProperties(org.apache.xerces.xs.XSModel model,
QName featureTypeName)
Produces a list of nillable properties for the specified feature type.
|
static List<org.apache.xerces.xs.XSElementDeclaration> |
getRequiredProperties(org.apache.xerces.xs.XSModel model,
QName featureTypeName)
Produces a list of all required properties for a given feature type.
|
static List<org.apache.xerces.xs.XSElementDeclaration> |
getSimpleFeatureProperties(org.apache.xerces.xs.XSModel model,
QName featureTypeName)
Produces a list of properties for a specified feature type that have
either (a) a simple type definition or (b) a complex type definition with
a simple content model.
|
static Set<org.apache.xerces.xs.XSTypeDefinition> |
getSimpleTemporalDataTypes(org.apache.xerces.xs.XSModel model)
Returns a set of primitive, non-recurring temporal data type definitions,
including:
xsd:dateTime ("yyyy-MM-dd'T'HH:mm:ssZ")
xsd:date ("yyyy-MM-ddZ")
xsd:gYearMonth ("yyyy-MM")
xsd:gYear ("yyyy")
|
static List<org.apache.xerces.xs.XSElementDeclaration> |
getTemporalFeatureProperties(org.apache.xerces.xs.XSModel model,
QName featureType)
Finds all simple and complex temporal properties defined for a particular
feature type.
|
static void |
removeDeprecatedGMLElements(List<org.apache.xerces.xs.XSElementDeclaration> elemDecls,
org.apache.xerces.xs.XSModel model)
Removes deprecated GML feature properties from a given list of element
declarations.
|
public static List<org.apache.xerces.xs.XSElementDeclaration> getFeaturePropertiesByType(org.apache.xerces.xs.XSModel model, QName featureTypeName, org.apache.xerces.xs.XSTypeDefinition typeDef)
model
- An XSModel object representing an application schema.featureTypeName
- A qualified feature type name.typeDef
- A (simple or complex) type definition that characterizes the
property value domain.public static List<org.apache.xerces.xs.XSElementDeclaration> getNillableProperties(org.apache.xerces.xs.XSModel model, QName featureTypeName)
model
- An XSModel object representing an application schema.featureTypeName
- A qualified feature type name.public static List<org.apache.xerces.xs.XSElementDeclaration> getAllFeatureProperties(org.apache.xerces.xs.XSModel model, QName featureTypeName)
model
- An XSModel object representing an application schema.featureTypeName
- A qualified feature type name.public static List<org.apache.xerces.xs.XSElementDeclaration> getSimpleFeatureProperties(org.apache.xerces.xs.XSModel model, QName featureTypeName)
model
- An XSModel object representing an application schema.featureTypeName
- A qualified feature type name.public static List<org.apache.xerces.xs.XSElementDeclaration> getRequiredProperties(org.apache.xerces.xs.XSModel model, QName featureTypeName)
model
- An XSModel object representing an application schema.featureTypeName
- A qualified feature type name.public static void removeDeprecatedGMLElements(List<org.apache.xerces.xs.XSElementDeclaration> elemDecls, org.apache.xerces.xs.XSModel model)
elemDecls
- A List of XSElementDeclaration objects.model
- An XSModel object representing a GML application schema.public static QName getBuiltInDatatype(org.apache.xerces.xs.XSElementDeclaration propDecl)
propDecl
- An element declaration (simple content).public static Set<org.apache.xerces.xs.XSTypeDefinition> getSimpleTemporalDataTypes(org.apache.xerces.xs.XSModel model)
model
- An XSModel object representing an application schema.public static org.apache.xerces.xs.XSElementDeclaration getComplexPropertyValue(org.apache.xerces.xs.XSElementDeclaration propertyDecl)
propertyDecl
- An element declaration for some feature property.public static List<org.apache.xerces.xs.XSElementDeclaration> getTemporalFeatureProperties(org.apache.xerces.xs.XSModel model, QName featureType)
model
- A representation of a GML application schema.featureType
- The qualified name of a feature type.Copyright © 2022 Open Geospatial Consortium. All rights reserved.