Class TypeDescription
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.component.information.method.TypeDescription
Describes a JSON Type
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTypeNameForField
(String fieldName, String typeName) Adds the fields.getTypeDescriptionForField
(String fieldName) getTypeNameForField
(String fieldName) boolean
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
Field Details
-
SPECIAL_FIELD_FOR_CONTENT_INFORMATION
- See Also:
-
-
Constructor Details
-
TypeDescription
public TypeDescription()basic constructor needed for JPA
-
-
Method Details
-
addTypeNameForField
Adds the fields.- Parameters:
fieldName
- the keytypeName
- the value
-
getTypeClass
- Returns:
- the class for the current type
-
getFieldNames
- Returns:
- the list of registried field names
-
hasField
- Parameters:
fieldName
-- Returns:
- true if there is such a field name
-
getTypeDescriptionForField
- Parameters:
fieldName
-- Returns:
- the TypeDescription corresponding to a field name
-
getTypeNameForField
- Parameters:
fieldName
-- Returns:
- the string type name for a field
-