- java.lang.Object
-
- net.sf.jsqlparser.parser.feature.FeatureConfiguration
-
public class FeatureConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<Feature,java.lang.Object>
featureEnabled
private static java.util.logging.Logger
LOG
-
Constructor Summary
Constructors Constructor Description FeatureConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAsBoolean(Feature f)
java.lang.Long
getAsLong(Feature f)
java.lang.String
getAsString(Feature f)
java.lang.Object
getValue(Feature feature)
FeatureConfiguration
setValue(Feature feature, java.lang.Object value)
-
-
-
Field Detail
-
LOG
private static final java.util.logging.Logger LOG
-
featureEnabled
private java.util.Map<Feature,java.lang.Object> featureEnabled
-
-
Method Detail
-
setValue
public FeatureConfiguration setValue(Feature feature, java.lang.Object value)
- Parameters:
feature
-value
-- Returns:
this
-
getValue
public java.lang.Object getValue(Feature feature)
- Parameters:
feature
-- Returns:
- the configured feature value - can be
null
- Throws:
java.lang.IllegalStateException
- - if givenFeature.isConfigurable()
== false
-
getAsBoolean
public boolean getAsBoolean(Feature f)
-
getAsLong
public java.lang.Long getAsLong(Feature f)
-
getAsString
public java.lang.String getAsString(Feature f)
-
-