public class SchemaModelImpl extends java.lang.Object implements SchemaModel
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaModelImpl.InternalSchemaResolver |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompatible(javax.xml.namespace.QName type1,
javax.xml.namespace.QName type2)
Determines if two types are compatible using the following logic:
if type a is Element, and type b is Element, they must be identical
element types.
|
boolean |
isSimpleType(javax.xml.namespace.QName type)
Checks if type is a simple type.
|
boolean |
knowsElementType(javax.xml.namespace.QName elementType)
Checks if model knows the type as an element type.
|
boolean |
knowsSchemaType(javax.xml.namespace.QName schemaType)
Checks if the model know the type as a schema type.
|
static SchemaModel |
newModel(java.util.Map<java.net.URI,byte[]> schemas)
Generate a schema model from a collection of schemas.
|
public static final SchemaModel newModel(java.util.Map<java.net.URI,byte[]> schemas)
schemas - collection of schemas (indexed by systemId)SchemaModelpublic boolean isCompatible(javax.xml.namespace.QName type1,
javax.xml.namespace.QName type2)
SchemaModelDetermines if two types are compatible using the following logic:
isCompatible in interface SchemaModelSchemaModel.isCompatible(javax.xml.namespace.QName,
javax.xml.namespace.QName)public boolean isSimpleType(javax.xml.namespace.QName type)
SchemaModelisSimpleType in interface SchemaModelSchemaModel.isSimpleType(javax.xml.namespace.QName)public boolean knowsElementType(javax.xml.namespace.QName elementType)
SchemaModelknowsElementType in interface SchemaModelSchemaModel.knowsElementType(javax.xml.namespace.QName)public boolean knowsSchemaType(javax.xml.namespace.QName schemaType)
SchemaModelknowsSchemaType in interface SchemaModelSchemaModel.knowsSchemaType(javax.xml.namespace.QName)