public abstract class AbstractSourceContainerTypeDelegate extends Object implements ISourceContainerTypeDelegate
Clients implementing source container delegates should subclass this class.
Constructor and Description |
---|
AbstractSourceContainerTypeDelegate() |
Modifier and Type | Method and Description |
---|---|
protected void |
abort(String message,
Throwable exception)
Throws an exception with the given message and underlying exception.
|
protected Document |
newDocument()
Creates and returns a new XML document.
|
protected Element |
parseDocument(String document)
Parses the given XML document, returning its root element.
|
protected String |
serializeDocument(Document document)
Returns the given XML document as a string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSourceContainer, getMemento
protected void abort(String message, Throwable exception) throws CoreException
message
- error messageexception
- underlying exception, or null
CoreException
- if a problem is encounteredprotected Document newDocument() throws CoreException
CoreException
- if unable to create a new documentprotected String serializeDocument(Document document) throws CoreException
document
- document to serializeCoreException
- if unable to serialize the documentprotected Element parseDocument(String document) throws CoreException
document
- XML document as a stringCoreException
- if unable to parse the document
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.