Package org.w3._2001.schema.util
Class SchemaAdapterFactory
Object
AdapterFactoryImpl
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static SchemaPackage
The cached model package.protected SchemaSwitch<Adapter>
The switch that delegates to thecreateXXX
methods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdapter
createAdapter
(Notifier target) Creates an adapter for thetarget
.Adapter
Creates a new adapter for an object of class 'All
'.Adapter
Creates a new adapter for an object of class 'Annotated
'.Adapter
Creates a new adapter for an object of class 'Annotation Type
'.Adapter
Creates a new adapter for an object of class 'Any Type
'.Adapter
Creates a new adapter for an object of class 'Appinfo Type
'.Adapter
Creates a new adapter for an object of class 'Attribute
'.Adapter
Creates a new adapter for an object of class 'Attribute Group
'.Adapter
Creates a new adapter for an object of class 'Attribute Group Ref
'.Adapter
Creates a new adapter for an object of class 'Complex Content Type
'.Adapter
Creates a new adapter for an object of class 'Complex Restriction Type
'.Adapter
Creates a new adapter for an object of class 'Complex Type
'.Adapter
Creates a new adapter for an object of class 'Documentation Type
'.Adapter
Creates a new adapter for an object of class 'Document Root
'.Adapter
Creates a new adapter for an object of class 'Element
'.Adapter
Creates a new adapter for the default case.Adapter
Creates a new adapter for an object of class 'Explicit Group
'.Adapter
Creates a new adapter for an object of class 'Extension Type
'.Adapter
Creates a new adapter for an object of class 'Facet
'.Adapter
Creates a new adapter for an object of class 'Field Type
'.Adapter
Creates a new adapter for an object of class 'Group
'.Adapter
Creates a new adapter for an object of class 'Group Ref
'.Adapter
Creates a new adapter for an object of class 'Import Type
'.Adapter
Creates a new adapter for an object of class 'Include Type
'.Adapter
Creates a new adapter for an object of class 'Keybase
'.Adapter
Creates a new adapter for an object of class 'Keyref Type
'.Adapter
Creates a new adapter for an object of class 'List Type
'.Adapter
Creates a new adapter for an object of class 'Local Complex Type
'.Adapter
Creates a new adapter for an object of class 'Local Element
'.Adapter
Creates a new adapter for an object of class 'Local Simple Type
'.Adapter
Creates a new adapter for an object of class 'Named Attribute Group
'.Adapter
Creates a new adapter for an object of class 'Named Group
'.Adapter
Creates a new adapter for an object of class 'Narrow Max Min
'.Adapter
Creates a new adapter for an object of class 'No Fixed Facet
'.Adapter
Creates a new adapter for an object of class 'Notation Type
'.Adapter
Creates a new adapter for an object of class 'Num Facet
'.Adapter
Creates a new adapter for an object of class 'Open Attrs
'.Adapter
Creates a new adapter for an object of class 'Pattern Type
'.Adapter
Creates a new adapter for an object of class 'Real Group
'.Adapter
Creates a new adapter for an object of class 'Redefine Type
'.Adapter
Creates a new adapter for an object of class 'Restriction Type1
'.Adapter
Creates a new adapter for an object of class 'Restriction Type
'.Adapter
Creates a new adapter for an object of class 'Type
'.Adapter
Creates a new adapter for an object of class 'Selector Type
'.Adapter
Creates a new adapter for an object of class 'Simple Content Type
'.Adapter
Creates a new adapter for an object of class 'Simple Explicit Group
'.Adapter
Creates a new adapter for an object of class 'Simple Extension Type
'.Adapter
Creates a new adapter for an object of class 'Simple Restriction Type
'.Adapter
Creates a new adapter for an object of class 'Simple Type
'.Adapter
Creates a new adapter for an object of class 'Top Level Attribute
'.Adapter
Creates a new adapter for an object of class 'Top Level Complex Type
'.Adapter
Creates a new adapter for an object of class 'Top Level Element
'.Adapter
Creates a new adapter for an object of class 'Top Level Simple Type
'.Adapter
Creates a new adapter for an object of class 'Total Digits Type
'.Adapter
Creates a new adapter for an object of class 'Union Type
'.Adapter
Creates a new adapter for an object of class 'White Space Type
'.Adapter
Creates a new adapter for an object of class 'Wildcard
'.boolean
isFactoryForType
(Object object) Returns whether this factory is applicable for the type of the object.Methods inherited from class AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
-
Field Details
-
modelPackage
The cached model package. -
modelSwitch
The switch that delegates to thecreateXXX
methods.
-
-
Constructor Details
-
SchemaAdapterFactory
public SchemaAdapterFactory()Creates an instance of the adapter factory.
-
-
Method Details
-
isFactoryForType
Returns whether this factory is applicable for the type of the object. This implementation returnstrue
if the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForType
in interfaceAdapterFactory
- Overrides:
isFactoryForType
in classAdapterFactoryImpl
- Returns:
- whether this factory is applicable for the type of the object.
-
createAdapter
public Adapter createAdapter(Notifier target) Creates an adapter for thetarget
.- Overrides:
createAdapter
in classAdapterFactoryImpl
- 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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
createEObjectAdapter
public Adapter createEObjectAdapter()Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
-