org.apache.ode.utils.xsd

## Interface SchemaModel

- All Known Implementing Classes:
    SchemaModelImpl

      public interface SchemaModel

- - ### Method Summary

    Methods
    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.

- - ### Method Detail

    - #### isCompatible

          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.
      - if type a and/or b is element/schema, schema/element, or schema/schema, they are compatible if one is derived from the other
      Returns:

    - #### isSimpleType

          boolean isSimpleType(javax.xml.namespace.QName type)

      Checks if type is a simple type.
      Returns:
        DOCUMENTME

    - #### knowsElementType

          boolean knowsElementType(javax.xml.namespace.QName elementType)

      Checks if model knows the type as an element type.
      Returns:
        DOCUMENTME

    - #### knowsSchemaType

          boolean knowsSchemaType(javax.xml.namespace.QName schemaType)

      Checks if the model know the type as a schema type.
      Returns:
        DOCUMENTME