org.eclipse.cosmos.rm.validation.internal.content
Class AbstractXMLContentDescriber
java.lang.Object
org.eclipse.cosmos.rm.validation.internal.content.AbstractXMLContentDescriber
- All Implemented Interfaces:
- org.eclipse.core.runtime.content.IContentDescriber
- Direct Known Subclasses:
- DefinitionContentDescriber, InstanceContentDescriber, SMLIFContentDescriber
public abstract class AbstractXMLContentDescriber
- extends java.lang.Object
- implements org.eclipse.core.runtime.content.IContentDescriber
The abstract XML Content describer provides generic mechanisms for
determining the content of an XML document
|
Field Summary |
static int |
CONTINUE
Indicates that the content search should continue |
| Fields inherited from interface org.eclipse.core.runtime.content.IContentDescriber |
INDETERMINATE, INVALID, VALID |
|
Method Summary |
int |
describe(java.io.InputStream contents,
org.eclipse.core.runtime.content.IContentDescription description)
|
abstract int |
determineType(java.lang.String line)
Used to determine the type of the content based on the line passed in |
org.eclipse.core.runtime.QualifiedName[] |
getSupportedOptions()
|
protected java.lang.String |
retrieveElementName(java.lang.String line)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTINUE
public static final int CONTINUE
- Indicates that the content search should continue
- See Also:
- Constant Field Values
AbstractXMLContentDescriber
public AbstractXMLContentDescriber()
describe
public int describe(java.io.InputStream contents,
org.eclipse.core.runtime.content.IContentDescription description)
throws java.io.IOException
- Specified by:
describe in interface org.eclipse.core.runtime.content.IContentDescriber
- Throws:
java.io.IOException- See Also:
IContentDescriber.describe(java.io.InputStream, org.eclipse.core.runtime.content.IContentDescription)
determineType
public abstract int determineType(java.lang.String line)
- Used to determine the type of the content based on the line passed in
- Parameters:
line - The line being processed
getSupportedOptions
public org.eclipse.core.runtime.QualifiedName[] getSupportedOptions()
- Specified by:
getSupportedOptions in interface org.eclipse.core.runtime.content.IContentDescriber
- See Also:
IContentDescriber.getSupportedOptions()
retrieveElementName
protected java.lang.String retrieveElementName(java.lang.String line)