Trait

org.apache.daffodil.xml

SchemaAwareLoaderMixin

Related Doc: package xml

Permalink

trait SchemaAwareLoaderMixin extends AnyRef

Manages the care and feeding of the Xerces schema-aware XML parser that we use to do XML-Schema validation of the files we are reading.

Self Type
DFDLXercesAdapter
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SchemaAwareLoaderMixin
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def doValidation: Boolean

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. lazy val parser: SAXParser

    Permalink
  16. def resolver: DFDLCatalogResolver

    Permalink
  17. val sf: XMLSchemaFactory

    Permalink

    UPA errors are detected by xerces if the schema-full-checking feature is turned on, AND if you inform xerces that it is reading an XML Schema (i.e., xsd).

    UPA errors are detected by xerces if the schema-full-checking feature is turned on, AND if you inform xerces that it is reading an XML Schema (i.e., xsd).

    Detecting these requires that we do THREE passes 1) load the DFDL schema as an XML document. This validates it against the XML Schema for DFDL schemas. 2) load the DFDL schema as an XSD - xerces then does lots of more intensive checking of the schema 3) load the schema for our own consumption by Daffodil code. This uses the constructing parser so as to preserve CDATA regions (xerces just does the wrong thing with those,...fatally so). Then our own semantic checking is performed as part of compiling the DFDL schema.

    Checks like UPA are in step (2) above. They are coded algorithmically right into Xerces. This is accomplished by using the below SchemaFactory and SchemaFactory.newSchema calls. The newSchema call is what forces schema validation to take place.

    Attributes
    protected
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. def validateSchema(source: DaffodilSchemaSource): Unit

    Permalink

    This loads the DFDL schema as an XML Schema.

    This loads the DFDL schema as an XML Schema. This will check many more things about the DFDL schema other than just whether it validates against the XML Schema for DFDL schemas.

    Unfortunately, we don't have control over how Xerces loads up these schemas (other than the resolver anyway), so we can't really redirect the way it issues error messages so that it properly lays blame at say, the schema fragments inside an embedded schema of a TDML file.

    So if we want good file/line/column info from this, we have to give it a plain old file or resource, and not try to play games to get it to pick up the file/line/col information from attributes of the elements.

  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped