Class

org.apache.daffodil.dsom

Import

Related Doc: package dsom

Permalink

final class Import extends IIBase

An import statement.

The enclosingGoalNamespace argument is Some(noNamespace) for a topLevel schema file that has no targetNamespace attribute.

Now consider that we could be an import which is inside an included schema which includes another included, etc. A nest of included schemas the innermost of which then contains an import. We have to verify that the ultimate goal namespace at the start of that chain of includes is different from this imported schema's goalNamespace.

Linear Supertypes
IIBase, NestingLexicalMixin, SchemaComponent, PropTypes, SchemaFileLocatableImpl, SchemaFileLocatable, HasSchemaFileLocation, LookupLocation, LocationInSchemaFile, ResolvesQNames, SchemaComponentIncludesAndImportsMixin, CommonContextMixin, NestingMixin, GetAttributesMixin, ImplementsThrowsOrSavesSDE, SavesErrorsAndWarnings, ImplementsThrowsSDE, ThrowsSDE, OOLAGHost, NamedMixinBase, WithDiagnostics, Logging, Identity, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Import
  2. IIBase
  3. NestingLexicalMixin
  4. SchemaComponent
  5. PropTypes
  6. SchemaFileLocatableImpl
  7. SchemaFileLocatable
  8. HasSchemaFileLocation
  9. LookupLocation
  10. LocationInSchemaFile
  11. ResolvesQNames
  12. SchemaComponentIncludesAndImportsMixin
  13. CommonContextMixin
  14. NestingMixin
  15. GetAttributesMixin
  16. ImplementsThrowsOrSavesSDE
  17. SavesErrorsAndWarnings
  18. ImplementsThrowsSDE
  19. ThrowsSDE
  20. OOLAGHost
  21. NamedMixinBase
  22. WithDiagnostics
  23. Logging
  24. Identity
  25. AnyRef
  26. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Import(importNode: Node, xsd: XMLSchemaDocument, seenArg: IIMap)

    Permalink

Type Members

  1. type PropItem = (String, (String, LookupLocation))

    Permalink
    Definition Classes
    PropTypes
  2. type PropMap = Map[String, (String, LookupLocation)]

    Permalink
    Definition Classes
    PropTypes

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 LV[T](sym: Symbol)(body: ⇒ T): OOLAGValue[T]

    Permalink
    Attributes
    protected
    Definition Classes
    OOLAGHost
  5. def NoAnnotationContext: Option[SchemaFileLocation]

    Permalink
    Definition Classes
    ImplementsThrowsSDE
  6. def SDE(id: String, args: Any*): Nothing

    Permalink
    Definition Classes
    ImplementsThrowsSDE → ThrowsSDE
  7. final def SDE(th: Throwable): Nothing

    Permalink
    Definition Classes
    ThrowsSDE
  8. def SDEButContinue(id: String, args: Any*): Unit

    Permalink
    Definition Classes
    ImplementsThrowsOrSavesSDE → SavesErrorsAndWarnings
  9. def SDW(warnID: WarnID, fmt: String, args: Any*): Unit

    Permalink
    Definition Classes
    ImplementsThrowsOrSavesSDE → SavesErrorsAndWarnings
  10. def ThrowSDE: PartialFunction[Throwable, Nothing]

    Permalink
    Definition Classes
    ThrowsSDE
  11. final def areLogging(lvl: Type): Boolean

    Permalink
    Definition Classes
    Logging
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. final def assuming(pred: Boolean): Unit

    Permalink
    Definition Classes
    OOLAGHost
  14. final def checkErrors: Unit

    Permalink
    Definition Classes
    OOLAGHost
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final lazy val columnAttribute: Option[String]

    Permalink
    Definition Classes
    SchemaFileLocatableImpl → SchemaFileLocatable
  17. lazy val columnDescription: String

    Permalink
    Definition Classes
    SchemaFileLocatable → HasSchemaFileLocation → LocationInSchemaFile
  18. lazy val columnNumber: Option[String]

    Permalink
    Definition Classes
    SchemaFileLocatable
  19. val context: SchemaComponent

    Permalink
    Definition Classes
    SchemaComponent
  20. final var currentOVList: Seq[OOLAGValueBase]

    Permalink
    Definition Classes
    OOLAGHost
  21. def dafAttributes(n: Node): MetaData

    Permalink
    Definition Classes
    GetAttributesMixin
  22. def dfdlAttributes(n: Node): MetaData

    Permalink
    Definition Classes
    GetAttributesMixin
  23. lazy val diagnosticDebugName: String

    Permalink
    Definition Classes
    NamedMixinBase
  24. def diagnostics: Seq[Diagnostic]

    Permalink
    Definition Classes
    OOLAGHost
  25. def doLogging(lvl: Type, msg: String, args: Seq[Any]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. lazy val dpathCompileInfo: DPathCompileInfo

    Permalink
    Definition Classes
    SchemaComponent
  27. val emptyPropMap: PropMap

    Permalink
    Definition Classes
    PropTypes
  28. final lazy val enclosingComponent: Option[SchemaComponent]

    Permalink

    The enclosing component, and follows back-references from types to their elements, from globalElementDef to elementRefs, from simpleType defs to derived simpletype defs, from global group defs to group refs

    The enclosing component, and follows back-references from types to their elements, from globalElementDef to elementRefs, from simpleType defs to derived simpletype defs, from global group defs to group refs

    Note: the enclosing component of a global element or global group referenced from a element ref or group ref, is NOT the ref object, but the component that contains the ref object

    Definition Classes
    NestingMixin
  29. def enclosingComponentDef: Option[SchemaComponent]

    Permalink

    Define this for schema components that have back-references to ref objects.

    Define this for schema components that have back-references to ref objects. So group def to group ref, globalelementdecl to element ref, type to element, base type to derived type.

    Not for format annotations however. We don't backpoint those to other format annotations that ref them.

    Attributes
    protected
    Definition Classes
    NestingLexicalMixinNestingMixin
  30. final lazy val enclosingElement: Option[ElementBase]

    Permalink

    All schema components except the root have an enclosing element.

    All schema components except the root have an enclosing element.

    Definition Classes
    SchemaComponent
  31. final lazy val enclosingTerm: Option[Term]

    Permalink
    Definition Classes
    SchemaComponent
  32. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  34. def error(th: Diagnostic): Unit

    Permalink
    Definition Classes
    OOLAGHost
  35. final def errors: Seq[Diagnostic]

    Permalink
    Definition Classes
    OOLAGHost
  36. final lazy val fileAttribute: Option[String]

    Permalink
    Definition Classes
    SchemaFileLocatableImpl → SchemaFileLocatable
  37. lazy val fileDescription: String

    Permalink
    Definition Classes
    SchemaFileLocatable → HasSchemaFileLocation → LocationInSchemaFile
  38. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  39. def getAttributeOption(ns: NS, name: String): Option[String]

    Permalink
    Definition Classes
    GetAttributesMixin
  40. def getAttributeOption(name: String): Option[String]

    Permalink
    Definition Classes
    GetAttributesMixin
  41. def getAttributeRequired(name: String): String

    Permalink
    Definition Classes
    GetAttributesMixin
  42. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  43. def getDiagnostics: Seq[Diagnostic]

    Permalink
    Definition Classes
    OOLAGHost → WithDiagnostics
  44. def getLogWriter(): LogWriter

    Permalink
    Definition Classes
    Logging
  45. final def getLoggingLevel(): Type

    Permalink
    Definition Classes
    Logging
  46. final def hasOOLAGRootSetup: Boolean

    Permalink
    Definition Classes
    OOLAGHost
  47. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  48. final def iiSchemaFile: DFDLSchemaFile

    Permalink

    Unconditionally, get the schema file object.

    Unconditionally, get the schema file object.

    Definition Classes
    IIBase
  49. final def iiSchemaFileMaybe: Option[DFDLSchemaFile]

    Permalink

    Get the schema file if it isn't one we have seen before.

    Get the schema file if it isn't one we have seen before.

    If it new to us, then get it. This can cause a failure if the file doesn't exist but we need it to determine the namespace. That is, the Option here does NOT return None for file-not-found. It's only about whether we've already got this file in the (ns, url) map we're maintaining.

    This can succeed even if the file will not be found later when someone asks for the schema document, or if at that point its namespace is not acceptable given the import statement.

    Definition Classes
    IIBase
  50. lazy val importElementNS: Option[NS]

    Permalink
  51. def isError: Boolean

    Permalink
    Definition Classes
    OOLAGHost → WithDiagnostics
  52. def isHidden: Boolean

    Permalink

    Whether the component is hidden.

    Whether the component is hidden.

    Override this in the components that can hide - SequenceGroupRef and ChoiceGroupRef

    Definition Classes
    SchemaComponent
  53. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  54. final def isValidURI(uri: String): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    IIBase
  55. lazy val lineAttribute: Option[String]

    Permalink

    Annotations can contain expressions, so we need to be able to compile them.

    Annotations can contain expressions, so we need to be able to compile them.

    We need our own instance so that the expression compiler has this schema component as its context.

    Definition Classes
    SchemaFileLocatableImpl → SchemaFileLocatable
  56. lazy val lineDescription: String

    Permalink
    Definition Classes
    SchemaFileLocatable → HasSchemaFileLocation → LocationInSchemaFile
  57. lazy val lineNumber: Option[String]

    Permalink
    Definition Classes
    SchemaFileLocatable
  58. lazy val locationDescription: String

    Permalink
    Definition Classes
    SchemaFileLocatable → HasSchemaFileLocation → LocationInSchemaFile
  59. final macro def log(lvl: Type, msg: String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  60. lazy val logID: String

    Permalink
    Definition Classes
    Logging → Identity
  61. var logLevel: Maybe[Type]

    Permalink
    Definition Classes
    Logging
  62. var logWriter: Maybe[LogWriter]

    Permalink
    Definition Classes
    Logging
  63. final def mapPair: (NS, DaffodilSchemaSource)

    Permalink
    Definition Classes
    ImportIIBase
  64. final def mapTuple: ((NS, DaffodilSchemaSource), IIBase)

    Permalink
    Attributes
    protected
    Definition Classes
    IIBase
  65. def nArgs: Args

    Permalink
    Attributes
    protected
    Definition Classes
    OOLAGHost
  66. final lazy val namespaces: NamespaceBinding

    Permalink

    Namespace scope for resolving QNames.

    Namespace scope for resolving QNames.

    We insist that the prefix "xsi" is properly defined for use in xsi:nil attributes, which is how we represent nilled elements when we convert to XML.

    Definition Classes
    CommonContextMixin
  67. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  68. final def newDFDLAnnotationXML(label: String): Elem

    Permalink

    Used as factory for the XML Node with the right namespace and prefix etc.

    Used as factory for the XML Node with the right namespace and prefix etc.

    Given "element" it creates <dfdl:element /> with the namespace definitions based on this schema component's corresponding XSD construct.

    Makes sure to inherit the scope so we have all the namespace bindings.

    Attributes
    protected
    Definition Classes
    SchemaComponent
  69. final def nonTermRuntimeData: NonTermRuntimeData

    Permalink
    Definition Classes
    SchemaComponent
  70. final def notSeenThisBefore: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    IIBase
  71. final def notYetImplemented(msg: String, args: Any*): Nothing

    Permalink
    Definition Classes
    ThrowsSDE
  72. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  74. final lazy val oolagContext: OOLAGHost

    Permalink
    Definition Classes
    OOLAGHost
  75. final def oolagContextViaArgs: Some[SchemaComponent]

    Permalink
    Definition Classes
    SchemaComponent → OOLAGHost
  76. def oolagError(th: Diagnostic): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OOLAGHost
  77. final def oolagParent: OOLAGHost

    Permalink
    Attributes
    protected
    Definition Classes
    OOLAGHost
  78. def oolagWarn(th: Diagnostic): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OOLAGHost
  79. final val orElseURL: String

    Permalink
    Attributes
    protected
    Definition Classes
    SchemaComponentIncludesAndImportsMixin
  80. final def parent: XMLSchemaDocument

    Permalink

    The lexically enclosing schema component

    The lexically enclosing schema component

    Definition Classes
    IIBaseSchemaComponentSchemaFileLocatableImplCommonContextMixinNestingMixin
  81. lazy val path: String

    Permalink

    path is used in diagnostic messages and code debug messages; hence, it is very important that it be very dependable.

    path is used in diagnostic messages and code debug messages; hence, it is very important that it be very dependable.

    Definition Classes
    SchemaComponent → OOLAGHost
  82. def qNameForProperty(local: String, ns: NS): GlobalQName

    Permalink
    Definition Classes
    ResolvesQNames
  83. def removePrefix(prefixedValue: String): String

    Permalink
    Definition Classes
    ResolvesQNames
  84. final def requiredEvaluations(lv: OOLAGValueBase): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OOLAGHost
  85. final def requiredEvaluations(arg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OOLAGHost
  86. def resolveQName(qnString: String): RefQName

    Permalink
    Definition Classes
    ResolvesQNames
  87. lazy val resolvedLocation: DaffodilSchemaSource

    Permalink

    XML Catalog is tried first, then classpath

    XML Catalog is tried first, then classpath

    Definition Classes
    ImportIIBase
  88. lazy val resolvedNamespaceURI: Option[DaffodilSchemaSource]

    Permalink

    Only import has a namespace URI.

    Only import has a namespace URI.

    This will be Some(URL) for reading an imported schema, if we resolved the namespace URI via the XML Catalog.

  89. final lazy val resolvedSchemaLocation: Option[DaffodilSchemaSource]

    Permalink

    Both include and import have schemaLocation.

    Both include and import have schemaLocation. For import it is optional. If supplied we resolve it via the classpath, relative to the location of the including/importing file, etc.

    Attributes
    protected
    Definition Classes
    IIBase
  90. final lazy val rootElementDecl: Option[GlobalElementDecl]

    Permalink
    Definition Classes
    SchemaComponent
  91. final lazy val rootElementRef: Option[AbstractElementRef]

    Permalink
    Definition Classes
    SchemaComponent
  92. lazy val runtimeData: RuntimeData

    Permalink

    ALl non-terms get runtimeData from this definition.

    ALl non-terms get runtimeData from this definition. All Terms which are elements and model-groups) override this.

    The Term class has a generic termRuntimeData => TermRuntimeData function (useful since all Terms share things like having charset encoding) The Element classes all inherit an elementRuntimeData => ElementRuntimeData and the model groups all have modelGroupRuntimeData => ModelGroupRuntimeData.

    There is also VariableRuntimeData and SchemaSetRuntimeData.

    Definition Classes
    SchemaComponent
  93. final lazy val scPath: Seq[SchemaComponent]

    Permalink

    Includes instances.

    Includes instances. Ie., a global element will appear inside an element ref. a global group inside a group ref, a global type inside an element or for derived simple types inside another simple type, etc.

    Used in diagnostic messages and code debug messages

    Definition Classes
    SchemaComponent
  94. lazy val schema: Schema

    Permalink
    Definition Classes
    CommonContextMixin
  95. lazy val schemaComponent: LookupLocation

    Permalink
    Definition Classes
    SchemaComponent
  96. final def schemaDefinitionError(str: String, args: Any*): Nothing

    Permalink
    Definition Classes
    ThrowsSDE
  97. def schemaDefinitionErrorButContinue(str: String, args: Any*): Unit

    Permalink
    Definition Classes
    SavesErrorsAndWarnings
  98. def schemaDefinitionErrorDueToPropertyValue(propertyName: String, propertyValue: String, propertyLocation: LookupLocation, otherPropertyLocation: LookupLocation, str: String, args: Any*): Nothing

    Permalink
    Definition Classes
    SavesErrorsAndWarnings
  99. final macro def schemaDefinitionUnless(testThatWillThrowIfFalse: Boolean, str: String, args: Any*): Unit

    Permalink
    Definition Classes
    ThrowsSDE
  100. macro def schemaDefinitionWarningUnless(warnID: WarnID, testThatWillWarnIfFalse: Boolean, str: String, args: Any*): Unit

    Permalink
    Definition Classes
    SavesErrorsAndWarnings
  101. macro def schemaDefinitionWarningWhen(warnID: WarnID, testThatWillWarnIfTrue: Boolean, str: String, args: Any*): Unit

    Permalink
    Definition Classes
    SavesErrorsAndWarnings
  102. final macro def schemaDefinitionWhen(testThatWillThrowIfTrue: Boolean, str: String, args: Any*): Unit

    Permalink
    Definition Classes
    ThrowsSDE
  103. def schemaDocument: SchemaDocument

    Permalink
    Definition Classes
    CommonContextMixin
  104. lazy val schemaFile: Option[DFDLSchemaFile]

    Permalink
    Definition Classes
    CommonContextMixin
  105. lazy val schemaFileLocation: SchemaFileLocation

    Permalink
    Definition Classes
    SchemaFileLocatable → HasSchemaFileLocation → ThrowsSDE
  106. final lazy val schemaLocationProperty: Option[String]

    Permalink
    Definition Classes
    IIBase
  107. lazy val schemaSet: SchemaSet

    Permalink
    Definition Classes
    CommonContextMixin
  108. final def seenAfter: IIMap

    Permalink
    Definition Classes
    IIBase
  109. val seenBefore: IIMap

    Permalink
    Definition Classes
    IIBase
  110. final def seenBeforeThisFile: IIMap

    Permalink

    (ns, file) that we've seen before.

    (ns, file) that we've seen before.

    Includes this file we're currently on (if we haven't seen it) so that if our own includes/imports cycle back to us we will detect it.

    Attributes
    protected
    Definition Classes
    IIBase
  111. def setLogWriter(lw: LogWriter): Unit

    Permalink
    Definition Classes
    Logging
  112. def setLoggingLevel(level: Type): Unit

    Permalink
    Definition Classes
    Logging
  113. final def setOOLAGContext(oolagContextArg: OOLAGHost): Unit

    Permalink
    Definition Classes
    OOLAGHost
  114. final lazy val slashPath: String

    Permalink

    Elements only e.g., /foo/ex:bar

    Elements only e.g., /foo/ex:bar

    Definition Classes
    SchemaComponent
  115. def subset(testThatWillThrowIfFalse: Boolean, msg: String, args: Any*): Unit

    Permalink
    Definition Classes
    ImplementsThrowsOrSavesSDE
  116. def subsetError(msg: String, args: Any*): Nothing

    Permalink
    Definition Classes
    ImplementsThrowsOrSavesSDE
  117. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  118. lazy val targetNamespace: NS

    Permalink

    This is the root, or basic target namespace.

    This is the root, or basic target namespace. Every schema component gets its target namespace from its xmlSchemaDocument.

    Definition Classes
    ImportCommonContextMixin
  119. final lazy val targetNamespacePrefix: String

    Permalink
    Definition Classes
    CommonContextMixin
  120. def toString(): String

    Permalink
    Definition Classes
    SchemaComponent → AnyRef → Any
  121. final def toss(th: Throwable): Nothing

    Permalink
    Definition Classes
    ThrowsSDE
  122. def tunable: DaffodilTunables

    Permalink
    Definition Classes
    SchemaComponent → ResolvesQNames → ImplementsThrowsOrSavesSDE
  123. def uriString: String

    Permalink

    Used in diagnostic messages; hence, valueOrElse to avoid problems when this can't get a value due to an error.

    Used in diagnostic messages; hence, valueOrElse to avoid problems when this can't get a value due to an error.

    Definition Classes
    SchemaComponentIncludesAndImportsMixinCommonContextMixin
  124. lazy val uriStringFromAttribute: Option[String]

    Permalink
    Definition Classes
    SchemaFileLocatable
  125. def variableMap: VariableMap

    Permalink
    Definition Classes
    SchemaComponent
  126. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  129. def warn(th: Diagnostic): Unit

    Permalink
    Definition Classes
    OOLAGHost
  130. final def warnings: Seq[Diagnostic]

    Permalink
    Definition Classes
    OOLAGHost
  131. final lazy val whereSearched: String

    Permalink
    Attributes
    protected
    Definition Classes
    IIBase
  132. macro def withLoggingLevel[S](newLevel: Type)(body: ⇒ S): Unit

    Permalink
    Definition Classes
    Logging
  133. final val xml: Node

    Permalink
    Definition Classes
    IIBaseSchemaComponentSchemaFileLocatableImplCommonContextMixin → GetAttributesMixin
  134. lazy val xmlSchemaDocument: XMLSchemaDocument

    Permalink
    Definition Classes
    CommonContextMixin

Inherited from IIBase

Inherited from NestingLexicalMixin

Inherited from SchemaComponent

Inherited from PropTypes

Inherited from SchemaFileLocatableImpl

Inherited from SchemaFileLocatable

Inherited from HasSchemaFileLocation

Inherited from LookupLocation

Inherited from LocationInSchemaFile

Inherited from ResolvesQNames

Inherited from CommonContextMixin

Inherited from NestingMixin

Inherited from GetAttributesMixin

Inherited from ImplementsThrowsOrSavesSDE

Inherited from SavesErrorsAndWarnings

Inherited from ImplementsThrowsSDE

Inherited from ThrowsSDE

Inherited from OOLAGHost

Inherited from NamedMixinBase

Inherited from WithDiagnostics

Inherited from Logging

Inherited from Identity

Inherited from AnyRef

Inherited from Any

Ungrouped