|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.cadena.core.adapter.property.Util
public class Util
| Field Summary | |
|---|---|
static java.lang.String |
NULL_TYPE_REF_ERROR
|
static java.lang.String |
UNRESOLVED_TYPE_ERROR
|
static java.lang.String |
UNRESOLVED_TYPE_REF_ERROR
|
static java.lang.String |
UNSET_TYPE_ERROR
|
static java.lang.String |
VALUE_NULL_TYPE_REF_ERROR
|
static java.lang.String |
VALUE_TYPE_MISMATCH_ERROR
|
static java.lang.String |
VALUE_UNRESOLVED_TYPE_ERROR
|
static java.lang.String |
VALUE_UNRESOLVED_TYPE_REF_ERROR
|
static java.lang.String |
VALUE_UNSET_TYPE_ERROR
|
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static void |
checkType(java.lang.Object key,
PropertyType propertyType)
|
static void |
checkTypeOfValue(PropertyValue value,
java.lang.Class<? extends PropertyType> expectedType)
Checks the PropertyType of a PropertyValue to make sure that it is valid. |
static java.lang.String |
getFullyQualifiedName(java.lang.Object propertyValue)
Returns the fully qualified name of the specified PropertyValue |
static java.lang.Object |
getMarkerKey(EObject propertyValue)
|
static PropertyType |
getRealType(PropertyType propertyType)
Returns the dereferenced PropertyType of the specified PropertyType |
static PropertyType |
getRealType(PropertyValue value)
Returns the dereferenced PropertyType of the specified PropertyValue |
static PropertyType |
getRealType(TypeDef typeDef)
Returns the dereferenced PropertyType of the specified TypeDef |
static java.lang.String |
typeToString(java.lang.Class<? extends PropertyType> propertyType)
|
static java.lang.String |
typeToString(PropertyType propertyType)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UNSET_TYPE_ERROR
public static final java.lang.String UNRESOLVED_TYPE_ERROR
public static final java.lang.String NULL_TYPE_REF_ERROR
public static final java.lang.String UNRESOLVED_TYPE_REF_ERROR
public static final java.lang.String VALUE_UNSET_TYPE_ERROR
public static final java.lang.String VALUE_UNRESOLVED_TYPE_ERROR
public static final java.lang.String VALUE_NULL_TYPE_REF_ERROR
public static final java.lang.String VALUE_UNRESOLVED_TYPE_REF_ERROR
public static final java.lang.String VALUE_TYPE_MISMATCH_ERROR
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static PropertyType getRealType(PropertyValue value)
value - The PropertyValue to find the type for.
UnresolvedTypeExceptionpublic static PropertyType getRealType(PropertyType propertyType)
propetyType - The PropertyType to find the type for.
public static PropertyType getRealType(TypeDef typeDef)
typeDef - The TypeDef to find the type for.
public static java.lang.String getFullyQualifiedName(java.lang.Object propertyValue)
propertyValue - The property value to get the name for
public static java.lang.Object getMarkerKey(EObject propertyValue)
public static void checkType(java.lang.Object key,
PropertyType propertyType)
public static void checkTypeOfValue(PropertyValue value,
java.lang.Class<? extends PropertyType> expectedType)
value - The value to check the type ofexpectedType - The expected class of the typepublic static java.lang.String typeToString(PropertyType propertyType)
public static java.lang.String typeToString(java.lang.Class<? extends PropertyType> propertyType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||