Trait

org.apache.daffodil.dsom

ElementFormDefaultMixin

Related Doc: package dsom

Permalink

trait ElementFormDefaultMixin extends AnyRef

elementFormDefault is an attribute of the xs:schema element. It defaults to 'qualified'. That means nested local element definitions, their names are in the target namespace. So, if you have

Examples:
  1. <foo xmlns="myURI>">42

    That is, you must explicitly go to the no-namespace syntax. It doesn't happen implicitly. This trait is mixed into things that are affected by elementFormDefault. Namely the local element declaration class.

  2. ,
  3. <tns:foo><bar>42</bar></tns:foo>

    In this case you really don't want to setup xmlns='myURI' because this happens:

  4. ,
  5. <foo xmlns="myURI"><bar>42</bar></foo>

    But if elementFormDefault='unqualified', the instance doc would be like:

  6. ,
  7. <tns:foo><tns:bar>42</tns:bar></tns:foo>

    or the possibly nicer (for a large result)

  8. ,
  9. <schema elementFormDefault='qualified'
            targetNamespace="myURI" xmlns:tns="myURI"...>
    <element name='foo'...>
       <complexType>
          <sequence>
             <element name='bar'.../>
          ...

    Now a DFDL/Xpath expression to reach that 'bar' element looks like /tns:foo/tns:bar Contrarywise, if elementFormDefault='unqualfied'...

     
    
       
          
             
          ...
    }}}
    Now a path to reach element bar would look like /tns:foo/bar.
    See how 'bar' isn't preceded by the tns prefix. That's becasue the child elements are
    all 'no namespace' elements.
    This also affects what a result document is like from namespaces perspective.
    Suppose the above 'bar' element is an xs:int. Then with elemenFormDefault='qualified', an
    instance would look like:

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

Abstract Value Members

  1. abstract def tunable: DaffodilTunables

    Permalink
  2. abstract def xml: Node

    Permalink
  3. abstract def xmlSchemaDocument: XMLSchemaDocument

    Permalink

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. lazy val elementFormDefault: String

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  13. final lazy val namespace: NS

    Permalink

    handle elementFormDefault to qualify

  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final lazy val prefix: String

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped