Package org.eclipse.e4.ui.css.core.sac
Class SACParserFactory
java.lang.Object
org.w3c.css.sac.helpers.ParserFactory
org.eclipse.e4.ui.css.core.sac.SACParserFactory
- All Implemented Interfaces:
ISACParserFactory
- Direct Known Subclasses:
SACParserFactoryImpl
public abstract class SACParserFactory
extends org.w3c.css.sac.helpers.ParserFactory
implements ISACParserFactory
SAC Parser Factory.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn preferred SAC parser name if it is filled and null otherwise.org.w3c.css.sac.Parser
Return default instance of SAC Parser.abstract org.w3c.css.sac.Parser
makeParser
(String name) Return instance of SAC Parser registered into the factory with namename
.static ISACParserFactory
Return instance of SACParserFactoryvoid
setPreferredParserName
(String preferredParserName) Set the preferred SAC parser name to use when makeParser is called.
-
Constructor Details
-
SACParserFactory
public SACParserFactory()
-
-
Method Details
-
makeParser
public org.w3c.css.sac.Parser makeParser() throws ClassNotFoundException, IllegalAccessException, InstantiationException, NullPointerException, ClassCastExceptionReturn default instance of SAC Parser. If preferredParserName is filled, it return the instance of SAC Parser registered with this name, otherwise this method search teh SAC Parser class name to instanciate into System property with key org.w3c.css.sac.parser.- Specified by:
makeParser
in interfaceISACParserFactory
- Overrides:
makeParser
in classorg.w3c.css.sac.helpers.ParserFactory
- Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
NullPointerException
ClassCastException
-
getPreferredParserName
Return preferred SAC parser name if it is filled and null otherwise. -
setPreferredParserName
Set the preferred SAC parser name to use when makeParser is called. -
newInstance
Return instance of SACParserFactory -
makeParser
public abstract org.w3c.css.sac.Parser makeParser(String name) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NullPointerException, ClassCastException Return instance of SAC Parser registered into the factory with namename
.- Specified by:
makeParser
in interfaceISACParserFactory
- Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
NullPointerException
ClassCastException
-