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 class
Trim.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 Trim
clone()
protected Trim
clone(FieldExpression input)
Create a new instance of this FieldExpression, with a different argument.boolean
equals(java.lang.Object other)
Trim.Mode
getMode()
Get the mode for the trim function.java.lang.String
getRemoveString()
Get the string to remove.SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
void
setMode(Trim.Mode value)
Set the mode for the trim function.void
setRemoveString(java.lang.String value)
Set the string to remove.protected void
toString(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:
getType
in 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:
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 Trim clone()
- Overrides:
clone
in classUnaryFieldExpression
-
clone
protected Trim clone(FieldExpression input)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clone
in classUnaryFieldExpression
-
-