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 DateFormatclone()protected DateFormatclone(FieldExpression e)Create a new instance of this FieldExpression, with a different argument.booleanequals(java.lang.Object other)java.lang.StringgetFormat()Get the date format string to apply.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.inthashCode()voidsetFormat(java.lang.String value)Set the date format string to apply.protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.static DateFormatvalueOf(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:
getTypein 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:
toStringin classFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classUnaryFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classUnaryFieldExpression
-
clone
public DateFormat clone()
- Overrides:
clonein classUnaryFieldExpression
-
clone
protected DateFormat clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clonein classUnaryFieldExpression
-
valueOf
public static DateFormat valueOf(StringParser reader)
-
-