public abstract class VdmObject<ObjectT> extends Object
Constructor and Description |
---|
VdmObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
<FieldT> FieldT |
getCustomField(EntityField<ObjectT,FieldT> customField)
This method allows for retrieval of custom fields that are added to the underlying OData services.
|
<FieldT> FieldT |
getCustomField(String customFieldName)
This method allows for retrieval of custom fields that are added to the underlying OData services.
|
Set<String> |
getCustomFieldNames() |
Map<String,Object> |
getCustomFields() |
abstract Class<ObjectT> |
getType() |
boolean |
hasCustomField(EntityField<ObjectT,?> customField) |
boolean |
hasCustomField(String customFieldName) |
int |
hashCode() |
<FieldT> void |
setCustomField(EntityField<ObjectT,FieldT> customField,
FieldT value)
Set the value of a single custom field.
|
void |
setCustomField(String customFieldName,
Object value)
Set the value of a single custom field.
|
String |
toString() |
public Set<String> getCustomFieldNames()
public Map<String,Object> getCustomFields()
public void setCustomField(String customFieldName, Object value)
customFieldName
- Name of the custom field.value
- Value of the custom field.public <FieldT> void setCustomField(EntityField<ObjectT,FieldT> customField, FieldT value)
customField
- Name of the custom field, represented as an EntityField object.value
- Value of the custom field.public boolean hasCustomField(String customFieldName)
customFieldName
- Name of the custom field to check fortrue
if this entity has a custom field with the given name, false
otherwise.public boolean hasCustomField(EntityField<ObjectT,?> customField)
customField
- Custom field to check for, represented as an EntityField
object.true
if this object has a custom field with the name of the given field, false
otherwise.@Nullable public <FieldT> FieldT getCustomField(String customFieldName) throws NoSuchEntityFieldException
customFieldName
- Name of the field returned by the underlying OData service.NoSuchEntityFieldException
@Nullable public <FieldT> FieldT getCustomField(EntityField<ObjectT,FieldT> customField) throws NoSuchEntityFieldException
customField
- Field returned by the underlying OData service.NoSuchEntityFieldException
@Generated(value="lombok") public String toString()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
Copyright © 2017 SAP SE. All rights reserved.