private static boolean isSet(ModelNode attributes, SimpleAttributeDefinition def) { ModelNode attribute = attributes.get(def.getName()); if (def.getType() == ModelType.BOOLEAN) { return attribute.isDefined() && attribute.asBoolean(); } return attribute.isDefined() && !attribute.asString().isEmpty(); }
private static boolean isSet(ModelNode attributes, SimpleAttributeDefinition def) { ModelNode attribute = attributes.get(def.getName()); if (def.getType() == ModelType.BOOLEAN) { return attribute.isDefined() && attribute.asBoolean(); } return attribute.isDefined() && !attribute.asString().isEmpty(); }
private static boolean isSet(ModelNode attributes, SimpleAttributeDefinition def) { ModelNode attribute = attributes.get(def.getName()); if (def.getType() == ModelType.BOOLEAN) { return attribute.isDefined() && attribute.asBoolean(); } return attribute.isDefined() && !attribute.asString().isEmpty(); }
switch (getType()) { case BIG_DECIMAL: node.set(node.asBigDecimal());
switch (getType()) { case BIG_DECIMAL: node.set(node.asBigDecimal());