@GwtCompatible public class Column extends ColumnAlias
Immutable bean representing the column dot notation, its alias and its visibility (if it should be shown to the client or not).
An instance can only be obtain by using the helper class QueryBuilder.Selector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_PART |
static javax.xml.namespace.QName |
QNAME |
Modifier | Constructor and Description |
---|---|
protected |
Column()
Initializes a newly created
Column object |
|
Column(Column column)
Copy constructor
|
protected |
Column(java.lang.String field,
java.lang.String alias,
boolean visible)
Constructs a new
Column for a field with the given field name |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.StringBuilder |
appendForToString(java.lang.StringBuilder sb,
boolean isVisible)
Helper function which appends the visibility string translation to a given
StringBuilder |
protected boolean |
canEquals(java.lang.Object obj)
Checks if this instance can compare against the given object.
|
boolean |
equals(java.lang.Object obj) |
static java.util.Map<java.lang.String,java.lang.String> |
getAliasToFieldPathMap(Projection<? extends Column> proj)
|
int |
hashCode() |
boolean |
isVisible()
Returns
true if this column is visible. |
java.lang.String |
toString() |
appendForToString, getAlias, getField
public static final java.lang.String LOCAL_PART
public static final javax.xml.namespace.QName QNAME
protected Column()
Column
objectprotected Column(java.lang.String field, java.lang.String alias, boolean visible)
Column
for a field with the given field namefield
- a field namealias
- an alias name for this columnvisible
- determines if this column will be visible or not.public Column(Column column)
column
- a Column
public boolean isVisible()
true
if this column is visible.true
if this column is visible; otherwise false
public int hashCode()
hashCode
in class ColumnAlias
public boolean equals(java.lang.Object obj)
equals
in class ColumnAlias
protected boolean canEquals(java.lang.Object obj)
ColumnAlias
canEquals
in class ColumnAlias
obj
- an Object
instanceof
this class.public java.lang.String toString()
toString
in class ColumnAlias
protected static java.lang.StringBuilder appendForToString(java.lang.StringBuilder sb, boolean isVisible)
StringBuilder
sb
- a StringBuilder
isVisible
- boolean value indicating the visibility of the columnsStringBuilder
by appending the visibilitypublic static java.util.Map<java.lang.String,java.lang.String> getAliasToFieldPathMap(Projection<? extends Column> proj)
proj
- a Projection
Map
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.