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 SchemaPackageThe cached model package.protected SchemaSwitch<Adapter>The switch that delegates to thecreateXXXmethods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdaptercreateAdapter(Notifier target) Creates an adapter for thetarget.AdapterCreates a new adapter for an object of class 'All'.AdapterCreates a new adapter for an object of class 'Annotated'.AdapterCreates a new adapter for an object of class 'Annotation Type'.AdapterCreates a new adapter for an object of class 'Any Type'.AdapterCreates a new adapter for an object of class 'Appinfo Type'.AdapterCreates a new adapter for an object of class 'Attribute'.AdapterCreates a new adapter for an object of class 'Attribute Group'.AdapterCreates a new adapter for an object of class 'Attribute Group Ref'.AdapterCreates a new adapter for an object of class 'Complex Content Type'.AdapterCreates a new adapter for an object of class 'Complex Restriction Type'.AdapterCreates a new adapter for an object of class 'Complex Type'.AdapterCreates a new adapter for an object of class 'Documentation Type'.AdapterCreates a new adapter for an object of class 'Document Root'.AdapterCreates a new adapter for an object of class 'Element'.AdapterCreates a new adapter for the default case.AdapterCreates a new adapter for an object of class 'Explicit Group'.AdapterCreates a new adapter for an object of class 'Extension Type'.AdapterCreates a new adapter for an object of class 'Facet'.AdapterCreates a new adapter for an object of class 'Field Type'.AdapterCreates a new adapter for an object of class 'Group'.AdapterCreates a new adapter for an object of class 'Group Ref'.AdapterCreates a new adapter for an object of class 'Import Type'.AdapterCreates a new adapter for an object of class 'Include Type'.AdapterCreates a new adapter for an object of class 'Keybase'.AdapterCreates a new adapter for an object of class 'Keyref Type'.AdapterCreates a new adapter for an object of class 'List Type'.AdapterCreates a new adapter for an object of class 'Local Complex Type'.AdapterCreates a new adapter for an object of class 'Local Element'.AdapterCreates a new adapter for an object of class 'Local Simple Type'.AdapterCreates a new adapter for an object of class 'Named Attribute Group'.AdapterCreates a new adapter for an object of class 'Named Group'.AdapterCreates a new adapter for an object of class 'Narrow Max Min'.AdapterCreates a new adapter for an object of class 'No Fixed Facet'.AdapterCreates a new adapter for an object of class 'Notation Type'.AdapterCreates a new adapter for an object of class 'Num Facet'.AdapterCreates a new adapter for an object of class 'Open Attrs'.AdapterCreates a new adapter for an object of class 'Pattern Type'.AdapterCreates a new adapter for an object of class 'Real Group'.AdapterCreates a new adapter for an object of class 'Redefine Type'.AdapterCreates a new adapter for an object of class 'Restriction Type1'.AdapterCreates a new adapter for an object of class 'Restriction Type'.AdapterCreates a new adapter for an object of class 'Type'.AdapterCreates a new adapter for an object of class 'Selector Type'.AdapterCreates a new adapter for an object of class 'Simple Content Type'.AdapterCreates a new adapter for an object of class 'Simple Explicit Group'.AdapterCreates a new adapter for an object of class 'Simple Extension Type'.AdapterCreates a new adapter for an object of class 'Simple Restriction Type'.AdapterCreates a new adapter for an object of class 'Simple Type'.AdapterCreates a new adapter for an object of class 'Top Level Attribute'.AdapterCreates a new adapter for an object of class 'Top Level Complex Type'.AdapterCreates a new adapter for an object of class 'Top Level Element'.AdapterCreates a new adapter for an object of class 'Top Level Simple Type'.AdapterCreates a new adapter for an object of class 'Total Digits Type'.AdapterCreates a new adapter for an object of class 'Union Type'.AdapterCreates a new adapter for an object of class 'White Space Type'.AdapterCreates a new adapter for an object of class 'Wildcard'.booleanisFactoryForType(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 thecreateXXXmethods.
-
-
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 returnstrueif the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForTypein interfaceAdapterFactory- Overrides:
isFactoryForTypein 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:
createAdapterin 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.
-