org.eclipse.core.internal.resources
Class ProjectDescriptionReader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.eclipse.core.internal.resources.ProjectDescriptionReader
- All Implemented Interfaces:
- IModelObjectConstants, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class ProjectDescriptionReader
- extends org.xml.sax.helpers.DefaultHandler
- implements IModelObjectConstants
Fields inherited from interface org.eclipse.core.internal.resources.IModelObjectConstants |
ARGUMENTS, AUTOBUILD, BUILD_COMMAND, BUILD_ORDER, BUILD_SPEC, BUILD_TRIGGERS, COMMENT, DICTIONARY, FILE_STATE_LONGEVITY, KEY, LINK, LINKED_RESOURCES, LOCATION, LOCATION_URI, MAX_FILE_STATE_SIZE, MAX_FILE_STATES, NAME, NATURE, NATURES, PROJECT, PROJECT_DESCRIPTION, PROJECTS, SNAPSHOT_INTERVAL, TRIGGER_AUTO, TRIGGER_CLEAN, TRIGGER_FULL, TRIGGER_INCREMENTAL, TYPE, VALUE, WORKSPACE_DESCRIPTION |
Method Summary |
void |
characters(char[] chars,
int offset,
int length)
|
void |
endElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qname)
|
void |
error(org.xml.sax.SAXParseException error)
|
void |
fatalError(org.xml.sax.SAXParseException error)
|
ProjectDescription |
read(org.xml.sax.InputSource input)
|
ProjectDescription |
read(org.eclipse.core.runtime.IPath location)
Reads and returns a project description stored at the given location |
ProjectDescription |
read(org.eclipse.core.runtime.IPath location,
org.eclipse.core.runtime.IPath tempLocation)
Reads and returns a project description stored at the given location, or
temporary location. |
void |
startElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qname,
org.xml.sax.Attributes attributes)
|
void |
warning(org.xml.sax.SAXParseException error)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectDescriptionReader
public ProjectDescriptionReader()
ProjectDescriptionReader
public ProjectDescriptionReader(IProject project)
characters
public void characters(char[] chars,
int offset,
int length)
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
- See Also:
ContentHandler.characters(char[], int, int)
endElement
public void endElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qname)
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
- See Also:
ContentHandler.endElement(String, String, String)
error
public void error(org.xml.sax.SAXParseException error)
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Overrides:
error
in class org.xml.sax.helpers.DefaultHandler
- See Also:
ErrorHandler.error(SAXParseException)
fatalError
public void fatalError(org.xml.sax.SAXParseException error)
throws org.xml.sax.SAXException
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Overrides:
fatalError
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ErrorHandler.fatalError(SAXParseException)
read
public ProjectDescription read(org.xml.sax.InputSource input)
read
public ProjectDescription read(org.eclipse.core.runtime.IPath location)
throws java.io.IOException
- Reads and returns a project description stored at the given location
- Throws:
java.io.IOException
read
public ProjectDescription read(org.eclipse.core.runtime.IPath location,
org.eclipse.core.runtime.IPath tempLocation)
throws java.io.IOException
- Reads and returns a project description stored at the given location, or
temporary location.
- Throws:
java.io.IOException
startElement
public void startElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qname,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.startElement(String, String, String, Attributes)
warning
public void warning(org.xml.sax.SAXParseException error)
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Overrides:
warning
in class org.xml.sax.helpers.DefaultHandler
- See Also:
ErrorHandler.warning(SAXParseException)