org.eclipse.xsd
Interface XSDDiagnostic

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.resource.Resource.Diagnostic, XSDConcreteComponent
All Known Implementing Classes:
XSDDiagnosticImpl

public interface XSDDiagnostic
extends XSDConcreteComponent, org.eclipse.emf.ecore.resource.Resource.Diagnostic

A representation of the model object 'Diagnostic'.

See Also:
XSDPackage.getXSDDiagnostic()

Field Summary
static java.lang.String MARKER
          This is the ID used for Eclipse markers that are based on diagnostics.
static java.lang.String URI_FRAGMENT_ATTRIBUTE
          This is the string for encoding a URI fragment for a diagnostic.
 
Method Summary
 java.lang.String getAnnotationURI()
          Returns the value of the 'Annotation URI' attribute.
 int getColumn()
          Returns the value of the 'Column' attribute.
 org.eclipse.emf.common.util.EList getComponents()
          Returns the value of the 'Components' reference list.
 int getLine()
          Returns the value of the 'Line' attribute.
 java.lang.String getLocationURI()
          Returns the value of the 'Location URI' attribute.
 java.lang.String getMessage()
          Returns the value of the 'Message' attribute.
 org.w3c.dom.Node getNode()
          Returns the value of the 'Node' attribute.
 XSDConcreteComponent getPrimaryComponent()
          Returns the value of the 'Primary Component' reference.
 XSDDiagnosticSeverity getSeverity()
          Returns the value of the 'Severity' attribute.
 void setAnnotationURI(java.lang.String value)
          Sets the value of the 'Annotation URI' attribute.
 void setColumn(int value)
          Sets the value of the 'Column' attribute.
 void setLine(int value)
          Sets the value of the 'Line' attribute.
 void setLocationURI(java.lang.String value)
          Sets the value of the 'Location URI' attribute.
 void setMessage(java.lang.String value)
          Sets the value of the 'Message' attribute.
 void setNode(org.w3c.dom.Node value)
          Sets the value of the 'Node' attribute.
 void setPrimaryComponent(XSDConcreteComponent value)
          Sets the value of the 'Primary Component' reference.
 void setSeverity(XSDDiagnosticSeverity value)
          Sets the value of the 'Severity' attribute.
 
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, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
getLocation
 

Field Detail

MARKER

public static final java.lang.String MARKER
This is the ID used for Eclipse markers that are based on diagnostics.

URI_FRAGMENT_ATTRIBUTE

public static final java.lang.String URI_FRAGMENT_ATTRIBUTE
This is the string for encoding a URI fragment for a diagnostic.
See Also:
Resource.getURIFragment(org.eclipse.emf.ecore.EObject)
Method Detail

getSeverity

public XSDDiagnosticSeverity getSeverity()
Returns the value of the 'Severity' attribute. The literals are from the enumeration XSDDiagnosticSeverity. This indicates the how bad the problem is.
Returns:
the value of the 'Severity' attribute.
See Also:
XSDDiagnosticSeverity, setSeverity(XSDDiagnosticSeverity), XSDPackage.getXSDDiagnostic_Severity()

setSeverity

public void setSeverity(XSDDiagnosticSeverity value)
Sets the value of the 'Severity' attribute.
Parameters:
value - the new value of the 'Severity' attribute.
See Also:
XSDDiagnosticSeverity, getSeverity()

getMessage

public java.lang.String getMessage()
Returns the value of the 'Message' attribute.

This describes the problem.

Specified by:
getMessage in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
Returns:
the value of the 'Message' attribute.
See Also:
setMessage(String), XSDPackage.getXSDDiagnostic_Message()

setMessage

public void setMessage(java.lang.String value)
Sets the value of the 'Message' attribute.
Parameters:
value - the new value of the 'Message' attribute.
See Also:
getMessage()

getLocationURI

public java.lang.String getLocationURI()
Returns the value of the 'Location URI' attribute.

This indicates the URI of the resource containing the problem.

Returns:
the value of the 'Location URI' attribute.
See Also:
setLocationURI(String), XSDPackage.getXSDDiagnostic_LocationURI()

setLocationURI

public void setLocationURI(java.lang.String value)
Sets the value of the 'Location URI' attribute.
Parameters:
value - the new value of the 'Location URI' attribute.
See Also:
getLocationURI()

getLine

public int getLine()
Returns the value of the 'Line' attribute. The default value is "1".

This indicates the line number within the resource containing the problem.

Specified by:
getLine in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
Returns:
the value of the 'Line' attribute.
See Also:
setLine(int), XSDPackage.getXSDDiagnostic_Line()

setLine

public void setLine(int value)
Sets the value of the 'Line' attribute.
Parameters:
value - the new value of the 'Line' attribute.
See Also:
getLine()

getColumn

public int getColumn()
Returns the value of the 'Column' attribute. The default value is "1".

This indicates the column number within the line of the resource containing the problem.

Specified by:
getColumn in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
Returns:
the value of the 'Column' attribute.
See Also:
setColumn(int), XSDPackage.getXSDDiagnostic_Column()

setColumn

public void setColumn(int value)
Sets the value of the 'Column' attribute.
Parameters:
value - the new value of the 'Column' attribute.
See Also:
getColumn()

getNode

public org.w3c.dom.Node getNode()
Returns the value of the 'Node' attribute.

This indicates the DOM node at which the problem occurs.

Returns:
the value of the 'Node' attribute.
See Also:
setNode(Node), XSDPackage.getXSDDiagnostic_Node()

setNode

public void setNode(org.w3c.dom.Node value)
Sets the value of the 'Node' attribute.
Parameters:
value - the new value of the 'Node' attribute.
See Also:
getNode()

getAnnotationURI

public java.lang.String getAnnotationURI()
Returns the value of the 'Annotation URI' attribute.

This provides a URI that can be used to locate more detailed documentation of the general type of problem encountered.

Returns:
the value of the 'Annotation URI' attribute.
See Also:
setAnnotationURI(String), XSDPackage.getXSDDiagnostic_AnnotationURI()

setAnnotationURI

public void setAnnotationURI(java.lang.String value)
Sets the value of the 'Annotation URI' attribute.
Parameters:
value - the new value of the 'Annotation URI' attribute.
See Also:
getAnnotationURI()

getComponents

public org.eclipse.emf.common.util.EList getComponents()
Returns the value of the 'Components' reference list. The list contents are of type XSDConcreteComponent.

This represents the components associated with the problem; the first component is al the primary component.

Returns:
the value of the 'Components' reference list.
See Also:
XSDPackage.getXSDDiagnostic_Components()

getPrimaryComponent

public XSDConcreteComponent getPrimaryComponent()
Returns the value of the 'Primary Component' reference.

This represents the component most directly associated with the problem.

Returns:
the value of the 'Primary Component' reference.
See Also:
setPrimaryComponent(XSDConcreteComponent), XSDPackage.getXSDDiagnostic_PrimaryComponent()

setPrimaryComponent

public void setPrimaryComponent(XSDConcreteComponent value)
Sets the value of the 'Primary Component' reference.
Parameters:
value - the new value of the 'Primary Component' reference.
See Also:
getPrimaryComponent()

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