Class AbstractSourceContainerTypeDelegate
- java.lang.Object
-
- org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainerTypeDelegate
-
- All Implemented Interfaces:
ISourceContainerTypeDelegate
public abstract class AbstractSourceContainerTypeDelegate extends java.lang.Object implements ISourceContainerTypeDelegate
Common function for source container type delegates.Clients implementing source container delegates should subclass this class.
- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description AbstractSourceContainerTypeDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidabort(java.lang.String message, java.lang.Throwable exception)Throws an exception with the given message and underlying exception.protected org.w3c.dom.DocumentnewDocument()Creates and returns a new XML document.protected org.w3c.dom.ElementparseDocument(java.lang.String document)Parses the given XML document, returning its root element.protected java.lang.StringserializeDocument(org.w3c.dom.Document document)Returns the given XML document as a string.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.debug.core.sourcelookup.ISourceContainerTypeDelegate
createSourceContainer, getMemento
-
-
-
-
Method Detail
-
abort
protected void abort(java.lang.String message, java.lang.Throwable exception) throws CoreExceptionThrows an exception with the given message and underlying exception.- Parameters:
message- error messageexception- underlying exception, ornull- Throws:
CoreException- if a problem is encountered
-
newDocument
protected org.w3c.dom.Document newDocument() throws CoreExceptionCreates and returns a new XML document.- Returns:
- a new XML document
- Throws:
CoreException- if unable to create a new document
-
serializeDocument
protected java.lang.String serializeDocument(org.w3c.dom.Document document) throws CoreExceptionReturns the given XML document as a string.- Parameters:
document- document to serialize- Returns:
- the given XML document as a string
- Throws:
CoreException- if unable to serialize the document
-
parseDocument
protected org.w3c.dom.Element parseDocument(java.lang.String document) throws CoreExceptionParses the given XML document, returning its root element.- Parameters:
document- XML document as a string- Returns:
- the document's root element
- Throws:
CoreException- if unable to parse the document
-
-