|
|
|
|
org.eclipse.update.core.model
Class DefaultFeatureParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.eclipse.update.core.model.DefaultFeatureParser
-
All Implemented Interfaces:
-
ContentHandler,
DTDHandler,
EntityResolver,
ErrorHandler
Deprecated. The org.eclipse.update component has been replaced by Equinox p2. This
provisional API was never promoted to stable API, and may be removed from a future release of the platform.
-
public class DefaultFeatureParser
- extends
DefaultHandler
Default feature parser.
Parses the feature manifest file as defined by the platform. Defers
to a model factory to create the actual concrete model objects. The
update framework supplies two factory implementations:
Note: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
- @see org.eclipse.update.core.model.FeatureModelFactory
- @see org.eclipse.update.core.BaseFeatureFactory
-
Since:
- 2.0
Method Summary
|
void
|
characters
(char[] ch,
int start,
int length)
Deprecated. Handle character text |
void
|
endElement
(
String uri,
String localName,
String qName)
Deprecated. Handle end of element tags |
void
|
error
(
SAXParseException ex)
Deprecated. Handle errors |
void
|
fatalError
(
SAXParseException ex)
Deprecated. Handle fatal errors |
MultiStatus
|
getStatus
()
Deprecated. Returns all status objects accumulated by the parser. |
void
|
ignorableWhitespace
(char[] arg0,
int arg1,
int arg2)
Deprecated. |
void
|
init
(
FeatureModelFactory factory)
Deprecated. |
void
|
init
(
FeatureModelFactory factory,
String location)
Deprecated. |
FeatureModel
|
parse
(
InputStream in)
Deprecated. Parses the specified input steam and constructs a feature model. |
void
|
startElement
(
String uri,
String localName,
String qName,
Attributes attributes)
Deprecated. Handle start of element tags |
Methods inherited from class org.xml.sax.helpers.
DefaultHandler
|
endDocument,
endPrefixMapping,
notationDecl,
processingInstruction,
resolveEntity,
setDocumentLocator,
skippedEntity,
startDocument,
startPrefixMapping,
unparsedEntityDecl,
warning
|
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
DefaultFeatureParser
public DefaultFeatureParser()
-
Deprecated.
- Constructs a feature parser.
-
Since:
- 2.0
init
public void init(
FeatureModelFactory factory)
-
Deprecated.
-
init
public void init(
FeatureModelFactory factory,
String location)
-
Deprecated.
-
-
Parameters:
-
factory - -
location - -
Since:
- 3.1
parse
public
FeatureModel parse(
InputStream in)
throws
SAXException,
IOException
-
Deprecated.
- Parses the specified input steam and constructs a feature model.
The input stream is not closed as part of this operation.
-
-
Parameters:
-
in - input stream
-
Returns:
- feature model
-
Throws:
-
SAXException
-
IOException
-
Since:
- 2.0
getStatus
public
MultiStatus getStatus()
-
Deprecated.
- Returns all status objects accumulated by the parser.
-
-
Returns:
- multi-status containing accumulated status, or
null . -
Since:
- 2.0
startElement
public void startElement(
String uri,
String localName,
String qName,
Attributes attributes)
throws
SAXException
-
Deprecated.
- Handle start of element tags
-
-
Specified by:
-
startElement
in interface
ContentHandler
-
Overrides:
-
startElement
in class
DefaultHandler
-
-
Throws:
-
SAXException
-
Since:
- 2.0
-
See Also:
-
DefaultHandler.startElement(String, String, String, Attributes)
endElement
public void endElement(
String uri,
String localName,
String qName)
-
Deprecated.
- Handle end of element tags
-
-
Specified by:
-
endElement
in interface
ContentHandler
-
Overrides:
-
endElement
in class
DefaultHandler
-
-
Since:
- 2.0
-
See Also:
-
DefaultHandler.endElement(String, String, String)
characters
public void characters(char[] ch,
int start,
int length)
-
Deprecated.
- Handle character text
-
-
Specified by:
-
characters
in interface
ContentHandler
-
Overrides:
-
characters
in class
DefaultHandler
-
-
Since:
- 2.0
-
See Also:
-
DefaultHandler.characters(char[], int, int)
error
public void error(
SAXParseException ex)
-
Deprecated.
- Handle errors
-
-
Specified by:
-
error
in interface
ErrorHandler
-
Overrides:
-
error
in class
DefaultHandler
-
-
Since:
- 2.0
-
See Also:
-
DefaultHandler.error(SAXParseException)
fatalError
public void fatalError(
SAXParseException ex)
throws
SAXException
-
Deprecated.
- Handle fatal errors
-
-
Specified by:
-
fatalError
in interface
ErrorHandler
-
Overrides:
-
fatalError
in class
DefaultHandler
-
-
Throws:
-
SAXException
-
Since:
- 2.0
-
See Also:
-
DefaultHandler.fatalError(SAXParseException)
ignorableWhitespace
public void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws
SAXException
-
Deprecated.
-
-
Specified by:
-
ignorableWhitespace
in interface
ContentHandler
-
Overrides:
-
ignorableWhitespace
in class
DefaultHandler
-
-
Throws:
-
SAXException
-
See Also:
-
ContentHandler.ignorableWhitespace(char[], int, int)
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|