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 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 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).Copyright © 2013. All Rights Reserved.