Interface ComplexTypeDefinition

    • Method Detail

      • getDefinitions

        @NotNull
        @NotNull List<? extends ItemDefinition<?>> getDefinitions()
        Returns definitions for all inner items. These are of type ItemDefinition. However, very often subtypes of this type are used, e.g. ResourceAttributeDefinition, RefinedAttributeDefinition, LayerRefinedAttributeDefinition, and so on. The returned structure is a List because the ordering is significant, e.g. for serialization purposes. The list is unmodifiable.
        Specified by:
        getDefinitions in interface LocalItemDefinitionStore
      • getExtensionForType

        @Nullable
        @Nullable QName getExtensionForType()
        If not null, indicates that this type defines the structure of `extension` element of a given type. E.g. `getExtensionForType()` == `c:UserType` means that this complex type defines structure of `extension` elements of `UserType` objects.
      • isReferenceMarker

        boolean isReferenceMarker()
        Flag indicating whether this type was marked as "objectReference" in the original schema.
      • isContainerMarker

        boolean isContainerMarker()
        Flag indicating whether this type was marked as "container" in the original schema. Does not provide any information to schema processing logic, just conveys the marker from original schema so we can serialize and deserialize the schema without loss of information.
      • isObjectMarker

        boolean isObjectMarker()
        Flag indicating whether this type was marked as "object" in the original schema. Does not provide any information to schema processing logic, just conveys the marker from original schema so we can serialized and deserialize the schema without loss of information.
      • isXsdAnyMarker

        boolean isXsdAnyMarker()
        True if the complex type definition contains xsd:any (directly or indirectly).
      • getDefaultNamespace

        @Nullable
        @Nullable String getDefaultNamespace()
        When resolving unqualified names for items contained in this CTD, what should be the default namespace to look into at first. Currently does NOT apply recursively (to inner CTDs). Set by parsing `defaultNamespace` XSD annotation.
      • getIgnoredNamespaces

        @NotNull
        @NotNull List<String> getIgnoredNamespaces()
        When resolving unqualified names for items contained in this CTD, what namespace(s) should be ignored. Names in this list are interpreted as a namespace prefixes. Currently does NOT apply recursively (to inner CTDs). Set by parsing `ignoredNamespace` XSD annotations.
      • merge

        void merge​(ComplexTypeDefinition otherComplexTypeDef)
        Copies cloned definitions from the other type definition into this one. (TODO remove from the interface?)
      • isEmpty

        boolean isEmpty()
        Returns true if there are no item definitions.
      • clone

        @NotNull
        @NotNull ComplexTypeDefinition clone()
        Does a shallow clone of this definition (i.e. item definitions themselves are NOT cloned).
        Specified by:
        clone in interface Definition
      • trimTo

        void trimTo​(@NotNull
                    @NotNull Collection<ItemPath> paths)
        Trims the definition (and any definitions it refers to) to contain only items related to given paths. USE WITH CARE. Be sure no shared definitions would be affected by this operation!
      • hasSubstitutions

        @Experimental
        default boolean hasSubstitutions​(QName qName)
        Returns true if item has substitutions in current container definition
      • isStrictAnyMarker

        @Experimental
        default boolean isStrictAnyMarker()
      • isItemDefinitionRemoved

        default boolean isItemDefinitionRemoved​(QName itemName)
        This allows to distinguish between missing and explicitly removed definitions.
      • hasOperationalOnlyItems

        @Experimental
        default boolean hasOperationalOnlyItems()