org.eclipse.xsd
Interface XSDAnnotation

All Superinterfaces:
EObject, Notifier, XSDComponent, XSDConcreteComponent, XSDRedefineContent, XSDSchemaContent
All Known Implementing Classes:
XSDAnnotationImpl

public interface XSDAnnotation
extends XSDComponent, XSDRedefineContent

A representation of the model object 'Annotation'. Access to the contents of an annotation is provided via their DOM representation.

The following features are supported:

See Also:
XSDPackage.getXSDAnnotation()

Method Summary
 Element createApplicationInformation(String sourceURI)
          Creates a new appinfo element using the containing schema's document as the factory.
 Element createUserInformation(String sourceURI)
          This creates a new documentation element using the containing schema's document as the factory.
 EList getApplicationInformation()
          Returns the value of the 'Application Information' attribute list.
 EList getApplicationInformation(String sourceURI)
          Returns only those elements returned by getApplicationInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
 Set getApplicationInformationSources()
          Returns the set of source attribute values of all the appinfo elements.
 EList getAttributes()
          Returns the value of the 'Attributes' attribute list.
 EList getUserInformation()
          Returns the value of the 'User Information' attribute list.
 EList getUserInformation(String sourceURI)
          Returns only those elements returned by getUserInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
 Set getUserInformationSources()
          Returns the set of source attribute values of all the documentation elements.
 
Methods inherited from interface org.eclipse.xsd.XSDConcreteComponent
clearDiagnostics, cloneConcreteComponent, contains, elementAttributesChanged, elementChanged, elementContentsChanged, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getElement, getRootContainer, getSchema, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, updateElement, updateElement, validate
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getApplicationInformation

public EList getApplicationInformation()
Returns the value of the 'Application Information' attribute list. The list contents are of type Element.

This represents the application information infoset property, i.e., a list of appinfo elements.

Returns:
the value of the 'Application Information' attribute list.
See Also:
XSDPackage.getXSDAnnotation_ApplicationInformation()

getUserInformation

public EList getUserInformation()
Returns the value of the 'User Information' attribute list. The list contents are of type Element.

This represents the user information infoset property, i.e., a list of documentation elements.

Returns:
the value of the 'User Information' attribute list.
See Also:
XSDPackage.getXSDAnnotation_UserInformation()

getAttributes

public EList getAttributes()
Returns the value of the 'Attributes' attribute list. The list contents are of type Attr.

This represents the attributes infoset property.

Returns:
the value of the 'Attributes' attribute list.
See Also:
XSDPackage.getXSDAnnotation_Attributes()

createApplicationInformation

public Element createApplicationInformation(String sourceURI)
Creates a new appinfo element using the containing schema's document as the factory. The caller is responsible for adding the appinfo element to annotation element.

Parameters:
sourceURI - the initial value of the source attribute.
Returns:
a new appinfo element.

createUserInformation

public Element createUserInformation(String sourceURI)
This creates a new documentation element using the containing schema's document as the factory. The caller is responsible for adding the documentation element to annotation element.

Parameters:
sourceURI - the initial value of the source attribute.
Returns:
a new documentation element.

getApplicationInformation

public EList getApplicationInformation(String sourceURI)
Returns only those elements returned by getApplicationInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.

Parameters:
sourceURI - the source URI to match.
Returns:
the elements with the given sourceURI.

getUserInformation

public EList getUserInformation(String sourceURI)
Returns only those elements returned by getUserInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.

Parameters:
sourceURI - the source URI to match.
Returns:
the elements with the given sourceURI.

getApplicationInformationSources

public Set getApplicationInformationSources()
Returns the set of source attribute values of all the appinfo elements.

Returns:
the set of source attribute values of all the appinfo elements.

getUserInformationSources

public Set getUserInformationSources()
Returns the set of source attribute values of all the documentation elements.

Returns:
the set of source attribute values of all the documentation elements.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.