Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/impl/DataParser.java')
-rw-r--r--bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/impl/DataParser.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/impl/DataParser.java b/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/impl/DataParser.java
index 000e8f232..d70d0e263 100644
--- a/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/impl/DataParser.java
+++ b/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/impl/DataParser.java
@@ -71,6 +71,8 @@ public class DataParser {
private static final String BOOLEAN = "Boolean"; //$NON-NLS-1$
private static final String SHORT = "Short"; //$NON-NLS-1$
private static final String PASSWORD = "Password"; //$NON-NLS-1$
+ private static final String BIGINTEGER = "BigInteger"; //$NON-NLS-1$
+ private static final String BIGDECIMAL = "BigDecimal"; //$NON-NLS-1$
protected Bundle _dp_bundle;
protected URL _dp_url;
@@ -443,6 +445,7 @@ public class DataParser {
super(handler);
}
+ @SuppressWarnings("deprecation")
public void init(String name, Attributes atts, List<AttributeDefinitionImpl> ads) {
logger.log(LogTracker.LOG_DEBUG, "Here is AttributeDefinitionHandler():init()"); //$NON-NLS-1$
@@ -492,6 +495,10 @@ public class DataParser {
_dataType = AttributeDefinition.SHORT;
} else if (ad_type_val.equalsIgnoreCase(PASSWORD)) {
_dataType = AttributeDefinition.PASSWORD;
+ } else if (ad_type_val.equalsIgnoreCase(BIGDECIMAL)) {
+ _dataType = AttributeDefinition.BIGDECIMAL;
+ } else if (ad_type_val.equalsIgnoreCase(BIGINTEGER)) {
+ _dataType = AttributeDefinition.BIGINTEGER;
} else {
_isParsedDataValid = false;
logger.log(LogTracker.LOG_ERROR, NLS.bind(MetaTypeMsg.INVALID_TYPE, new Object[] {ad_type_val, ad_id_val, _dp_url, _dp_bundle.getBundleId(), _dp_bundle.getSymbolicName()}));

Back to the top