Package com.attivio.sdk.search.fields
Class Trim
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- com.attivio.sdk.search.fields.Trim
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Trim extends UnaryFieldExpression
Trim field expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrim.Mode-
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 Trim(FieldExpression input)Trim(Trim.Mode mode, FieldExpression input, java.lang.String remstr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Trimclone()protected Trimclone(FieldExpression input)Create a new instance of this FieldExpression, with a different argument.booleanequals(java.lang.Object other)Trim.ModegetMode()Get the mode for the trim function.java.lang.StringgetRemoveString()Get the string to remove.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.inthashCode()voidsetMode(Trim.Mode value)Set the mode for the trim function.voidsetRemoveString(java.lang.String value)Set the string to remove.protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode strmode)Writes the string representation of this field expression tobuffer.-
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
-
Trim
public Trim(FieldExpression input)
-
Trim
public Trim(Trim.Mode mode, FieldExpression input, java.lang.String remstr)
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
getMode
public Trim.Mode getMode()
Get the mode for the trim function.
-
setMode
public void setMode(Trim.Mode value)
Set the mode for the trim function.
-
getRemoveString
public java.lang.String getRemoveString()
Get the string to remove.
-
setRemoveString
public void setRemoveString(java.lang.String value)
Set the string to remove.
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode strmode)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 Trim clone()
- Overrides:
clonein classUnaryFieldExpression
-
clone
protected Trim clone(FieldExpression input)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clonein classUnaryFieldExpression
-
-