@Generated(value="OracleSDKGenerator", comments="API Version: 20200601") public class AbstractField extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Generic field defining all attributes common to all querylanguage fields.
Note: Objects should always be created or deserialized using the Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Builder
, which maintain a
set of all explicitly set fields called Builder#__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AbstractField.Name
Field type classification.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Modifier | Constructor and Description |
---|---|
protected |
AbstractField(String displayName,
Boolean isDeclared,
List<String> originalDisplayNames,
String internalName,
ValueType valueType,
Boolean isGroupable,
Boolean isDuration,
String alias,
String filterQueryString,
String unitType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAlias()
Alias of field if renamed by queryStrng.
|
String |
getDisplayName()
Field display name - will be alias if field is renamed by queryStrng.
|
String |
getFilterQueryString()
Query used to derive this field if specified.
|
String |
getInternalName()
Internal identifier for the field.
|
Boolean |
getIsDeclared()
Field denoting if this is a declaration of the field in the queryString.
|
Boolean |
getIsDuration()
Identifies if this field format is a duration.
|
Boolean |
getIsGroupable()
Identifies if this field can be used as a grouping field in any grouping command.
|
List<String> |
getOriginalDisplayNames()
Same as displayName unless field renamed in which case this will hold the original display
names for the field across all renames.
|
String |
getUnitType()
Field denoting field unit type.
|
ValueType |
getValueType()
Field denoting field data type.
|
int |
hashCode() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"displayName","isDeclared","originalDisplayNames","internalName","valueType","isGroupable","isDuration","alias","filterQueryString","unitType"}) protected AbstractField(String displayName, Boolean isDeclared, List<String> originalDisplayNames, String internalName, ValueType valueType, Boolean isGroupable, Boolean isDuration, String alias, String filterQueryString, String unitType)
public String getDisplayName()
Field display name - will be alias if field is renamed by queryStrng.
public Boolean getIsDeclared()
Field denoting if this is a declaration of the field in the queryString.
public List<String> getOriginalDisplayNames()
Same as displayName unless field renamed in which case this will hold the original display names for the field across all renames.
public String getInternalName()
Internal identifier for the field.
public ValueType getValueType()
Field denoting field data type.
public Boolean getIsGroupable()
Identifies if this field can be used as a grouping field in any grouping command.
public Boolean getIsDuration()
Identifies if this field format is a duration.
public String getAlias()
Alias of field if renamed by queryStrng.
public String getFilterQueryString()
Query used to derive this field if specified.
public String getUnitType()
Field denoting field unit type.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.