Package com.attivio.sdk.search.fields
Class DateFormat
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- com.attivio.sdk.search.fields.DateFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class DateFormat extends UnaryFieldExpression
FieldExpression for formatting a date value.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
expression
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description DateFormat(FieldExpression expression, java.lang.String format)
DateFormat(java.lang.String fieldName, java.lang.String format)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateFormat
clone()
protected DateFormat
clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.boolean
equals(java.lang.Object other)
java.lang.String
getFormat()
Get the date format string to apply.SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
void
setFormat(java.lang.String value)
Set the date format string to apply.protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.static DateFormat
valueOf(StringParser reader)
-
Methods inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
forEachField, getExpression, getFieldName, hasChildren, isConstant, rewrite, setExpression
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
DateFormat
public DateFormat(java.lang.String fieldName, java.lang.String format)
-
DateFormat
public DateFormat(FieldExpression expression, java.lang.String format)
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getType
in classFieldExpression
-
getFormat
public java.lang.String getFormat()
Get the date format string to apply.
-
setFormat
public void setFormat(java.lang.String value)
Set the date format string to apply.
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.- Specified by:
toString
in classFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUnaryFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classUnaryFieldExpression
-
clone
public DateFormat clone()
- Overrides:
clone
in classUnaryFieldExpression
-
clone
protected DateFormat clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clone
in classUnaryFieldExpression
-
valueOf
public static DateFormat valueOf(StringParser reader)
-
-