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:
|
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)SchemaModel
public boolean isCompatible(javax.xml.namespace.QName type1, javax.xml.namespace.QName type2)
SchemaModel
Determines if two types are compatible using the following logic:
isCompatible
in interface SchemaModel
SchemaModel.isCompatible(javax.xml.namespace.QName,
javax.xml.namespace.QName)
public boolean isSimpleType(javax.xml.namespace.QName type)
SchemaModel
isSimpleType
in interface SchemaModel
SchemaModel.isSimpleType(javax.xml.namespace.QName)
public boolean knowsElementType(javax.xml.namespace.QName elementType)
SchemaModel
knowsElementType
in interface SchemaModel
SchemaModel.knowsElementType(javax.xml.namespace.QName)
public boolean knowsSchemaType(javax.xml.namespace.QName schemaType)
SchemaModel
knowsSchemaType
in interface SchemaModel
SchemaModel.knowsSchemaType(javax.xml.namespace.QName)