public class PropertyConverter extends Object
Enum Type | Java Object type | Storage string |
---|---|---|
BOOLEAN | java.lang.Boolean | Boolean.toString() |
ENUMERATE | org.modelio.metamodel.uml.infrastructure.properties. PropertyEnumerationLitteral | The property literal name |
FLOAT | java.lang.Float | Float.toString() |
UNSIGNED | java.lang.Integer | Integer.toString() |
INTEGER | java.lang.Integer | Integer.toString() |
ELEMENT | MRef | MRef.toString() |
RICHTEXT | ? | ? |
TIME | java.sql.Time | Time as long, long.toString() |
DATE | java.util.Date | Date as long, long.toString() |
STRING | java.lang.String | the string itself |
TEXT | java.lang.String | the string itself |
Constructor and Description |
---|
PropertyConverter() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertToObject(PropertyDefinition pdef,
String value,
ModelElement modelElement) |
static Object |
convertToObject(PropertyType pType,
String value,
ModelElement modelElement) |
static String |
convertToString(PropertyDefinition pdef,
Object value) |
static String |
convertToString(PropertyType pType,
Object value) |
public static Object convertToObject(PropertyType pType, String value, ModelElement modelElement)
value
- pType
- the PropertyType, cannot be nullmodelElement
- @returnpublic static String convertToString(PropertyType pType, Object value)
public static Object convertToObject(PropertyDefinition pdef, String value, ModelElement modelElement)
public static String convertToString(PropertyDefinition pdef, Object value)