Class SchemaAdapterFactory

  • All Implemented Interfaces:
    AdapterFactory

    public class SchemaAdapterFactory
    extends AdapterFactoryImpl
    The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.
    See Also:
    SchemaPackage
    • Field Detail

      • modelPackage

        protected static SchemaPackage modelPackage
        The cached model package.
      • modelSwitch

        protected SchemaSwitch<Adapter> modelSwitch
        The switch that delegates to the createXXX methods.
    • Constructor Detail

      • SchemaAdapterFactory

        public SchemaAdapterFactory()
        Creates an instance of the adapter factory.
    • Method Detail

      • isFactoryForType

        public boolean isFactoryForType​(Object object)
        Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.
        Specified by:
        isFactoryForType in interface AdapterFactory
        Overrides:
        isFactoryForType in class AdapterFactoryImpl
        Returns:
        whether this factory is applicable for the type of the object.
      • createAdapter

        public Adapter createAdapter​(Notifier target)
        Creates an adapter for the target.
        Overrides:
        createAdapter in class AdapterFactoryImpl
        Parameters:
        target - the object to adapt.
        Returns:
        the adapter for the target.
      • createAllAdapter

        public Adapter createAllAdapter()
        Creates a new adapter for an object of class 'All'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        All
      • createAnnotatedAdapter

        public Adapter createAnnotatedAdapter()
        Creates a new adapter for an object of class 'Annotated'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Annotated
      • createAnnotationTypeAdapter

        public Adapter createAnnotationTypeAdapter()
        Creates a new adapter for an object of class 'Annotation Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AnnotationType
      • createAnyTypeAdapter

        public Adapter createAnyTypeAdapter()
        Creates a new adapter for an object of class 'Any Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AnyType
      • createAppinfoTypeAdapter

        public Adapter createAppinfoTypeAdapter()
        Creates a new adapter for an object of class 'Appinfo Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AppinfoType
      • createAttributeAdapter

        public Adapter createAttributeAdapter()
        Creates a new adapter for an object of class 'Attribute'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Attribute
      • createAttributeGroupAdapter

        public Adapter createAttributeGroupAdapter()
        Creates a new adapter for an object of class 'Attribute Group'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AttributeGroup
      • createAttributeGroupRefAdapter

        public Adapter createAttributeGroupRefAdapter()
        Creates a new adapter for an object of class 'Attribute Group Ref'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AttributeGroupRef
      • createComplexContentTypeAdapter

        public Adapter createComplexContentTypeAdapter()
        Creates a new adapter for an object of class 'Complex Content Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ComplexContentType
      • createComplexRestrictionTypeAdapter

        public Adapter createComplexRestrictionTypeAdapter()
        Creates a new adapter for an object of class 'Complex Restriction Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ComplexRestrictionType
      • createComplexTypeAdapter

        public Adapter createComplexTypeAdapter()
        Creates a new adapter for an object of class 'Complex Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ComplexType
      • createDocumentationTypeAdapter

        public Adapter createDocumentationTypeAdapter()
        Creates a new adapter for an object of class 'Documentation Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        DocumentationType
      • createDocumentRootAdapter

        public Adapter createDocumentRootAdapter()
        Creates a new adapter for an object of class 'Document Root'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        DocumentRoot
      • createElementAdapter

        public Adapter createElementAdapter()
        Creates a new adapter for an object of class 'Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Element
      • createExplicitGroupAdapter

        public Adapter createExplicitGroupAdapter()
        Creates a new adapter for an object of class 'Explicit Group'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ExplicitGroup
      • createExtensionTypeAdapter

        public Adapter createExtensionTypeAdapter()
        Creates a new adapter for an object of class 'Extension Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ExtensionType
      • createFacetAdapter

        public Adapter createFacetAdapter()
        Creates a new adapter for an object of class 'Facet'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Facet
      • createFieldTypeAdapter

        public Adapter createFieldTypeAdapter()
        Creates a new adapter for an object of class 'Field Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        FieldType
      • createGroupAdapter

        public Adapter createGroupAdapter()
        Creates a new adapter for an object of class 'Group'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Group
      • createGroupRefAdapter

        public Adapter createGroupRefAdapter()
        Creates a new adapter for an object of class 'Group Ref'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        GroupRef
      • createImportTypeAdapter

        public Adapter createImportTypeAdapter()
        Creates a new adapter for an object of class 'Import Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ImportType
      • createIncludeTypeAdapter

        public Adapter createIncludeTypeAdapter()
        Creates a new adapter for an object of class 'Include Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        IncludeType
      • createKeybaseAdapter

        public Adapter createKeybaseAdapter()
        Creates a new adapter for an object of class 'Keybase'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Keybase
      • createKeyrefTypeAdapter

        public Adapter createKeyrefTypeAdapter()
        Creates a new adapter for an object of class 'Keyref Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        KeyrefType
      • createListTypeAdapter

        public Adapter createListTypeAdapter()
        Creates a new adapter for an object of class 'List Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ListType
      • createLocalComplexTypeAdapter

        public Adapter createLocalComplexTypeAdapter()
        Creates a new adapter for an object of class 'Local Complex Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        LocalComplexType
      • createLocalElementAdapter

        public Adapter createLocalElementAdapter()
        Creates a new adapter for an object of class 'Local Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        LocalElement
      • createLocalSimpleTypeAdapter

        public Adapter createLocalSimpleTypeAdapter()
        Creates a new adapter for an object of class 'Local Simple Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        LocalSimpleType
      • createNamedAttributeGroupAdapter

        public Adapter createNamedAttributeGroupAdapter()
        Creates a new adapter for an object of class 'Named Attribute Group'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        NamedAttributeGroup
      • createNamedGroupAdapter

        public Adapter createNamedGroupAdapter()
        Creates a new adapter for an object of class 'Named Group'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        NamedGroup
      • createNarrowMaxMinAdapter

        public Adapter createNarrowMaxMinAdapter()
        Creates a new adapter for an object of class 'Narrow Max Min'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        NarrowMaxMin
      • createNoFixedFacetAdapter

        public Adapter createNoFixedFacetAdapter()
        Creates a new adapter for an object of class 'No Fixed Facet'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        NoFixedFacet
      • createNotationTypeAdapter

        public Adapter createNotationTypeAdapter()
        Creates a new adapter for an object of class 'Notation Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        NotationType
      • createNumFacetAdapter

        public Adapter createNumFacetAdapter()
        Creates a new adapter for an object of class 'Num Facet'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        NumFacet
      • createOpenAttrsAdapter

        public Adapter createOpenAttrsAdapter()
        Creates a new adapter for an object of class 'Open Attrs'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        OpenAttrs
      • createPatternTypeAdapter

        public Adapter createPatternTypeAdapter()
        Creates a new adapter for an object of class 'Pattern Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        PatternType
      • createRealGroupAdapter

        public Adapter createRealGroupAdapter()
        Creates a new adapter for an object of class 'Real Group'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        RealGroup
      • createRedefineTypeAdapter

        public Adapter createRedefineTypeAdapter()
        Creates a new adapter for an object of class 'Redefine Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        RedefineType
      • createRestrictionTypeAdapter

        public Adapter createRestrictionTypeAdapter()
        Creates a new adapter for an object of class 'Restriction Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        RestrictionType
      • createRestrictionType1Adapter

        public Adapter createRestrictionType1Adapter()
        Creates a new adapter for an object of class 'Restriction Type1'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        RestrictionType1
      • createSchemaTypeAdapter

        public Adapter createSchemaTypeAdapter()
        Creates a new adapter for an object of class 'Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        SchemaType
      • createSelectorTypeAdapter

        public Adapter createSelectorTypeAdapter()
        Creates a new adapter for an object of class 'Selector Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        SelectorType
      • createSimpleContentTypeAdapter

        public Adapter createSimpleContentTypeAdapter()
        Creates a new adapter for an object of class 'Simple Content Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        SimpleContentType
      • createSimpleExplicitGroupAdapter

        public Adapter createSimpleExplicitGroupAdapter()
        Creates a new adapter for an object of class 'Simple Explicit Group'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        SimpleExplicitGroup
      • createSimpleExtensionTypeAdapter

        public Adapter createSimpleExtensionTypeAdapter()
        Creates a new adapter for an object of class 'Simple Extension Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        SimpleExtensionType
      • createSimpleRestrictionTypeAdapter

        public Adapter createSimpleRestrictionTypeAdapter()
        Creates a new adapter for an object of class 'Simple Restriction Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        SimpleRestrictionType
      • createSimpleTypeAdapter

        public Adapter createSimpleTypeAdapter()
        Creates a new adapter for an object of class 'Simple Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        SimpleType
      • createTopLevelAttributeAdapter

        public Adapter createTopLevelAttributeAdapter()
        Creates a new adapter for an object of class 'Top Level Attribute'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        TopLevelAttribute
      • createTopLevelComplexTypeAdapter

        public Adapter createTopLevelComplexTypeAdapter()
        Creates a new adapter for an object of class 'Top Level Complex Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        TopLevelComplexType
      • createTopLevelElementAdapter

        public Adapter createTopLevelElementAdapter()
        Creates a new adapter for an object of class 'Top Level Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        TopLevelElement
      • createTopLevelSimpleTypeAdapter

        public Adapter createTopLevelSimpleTypeAdapter()
        Creates a new adapter for an object of class 'Top Level Simple Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        TopLevelSimpleType
      • createTotalDigitsTypeAdapter

        public Adapter createTotalDigitsTypeAdapter()
        Creates a new adapter for an object of class 'Total Digits Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        TotalDigitsType
      • createUnionTypeAdapter

        public Adapter createUnionTypeAdapter()
        Creates a new adapter for an object of class 'Union Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        UnionType
      • createWhiteSpaceTypeAdapter

        public Adapter createWhiteSpaceTypeAdapter()
        Creates a new adapter for an object of class 'White Space Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        WhiteSpaceType
      • createWildcardAdapter

        public Adapter createWildcardAdapter()
        Creates a new adapter for an object of class 'Wildcard'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Wildcard
      • createEObjectAdapter

        public Adapter createEObjectAdapter()
        Creates a new adapter for the default case. This default implementation returns null.
        Returns:
        the new adapter.