Package com.attivio.sdk.search.fields
Class ScopeField
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.ScopeField
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ScopeField extends FieldExpression
FieldExpression for returning scopes from a stored field.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
Fields Modifier and Type Field Description static HighlightModeDEFAULT_HIGHLIGHT_MODE-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description ScopeField(HighlightMode mode, java.lang.String fieldName, java.lang.String scope)Construct a new ScopeField forfieldNameScopeField(java.lang.String fieldName, java.lang.String scope)Construct a new ScopeField forfieldName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetFieldName()Get the name of the field to return values for.HighlightModegetMode()java.lang.StringgetScope()SchemaField.TypegetType(Schema schema)Resolve the type for this expression.booleanhasChildren()Returnstrueif this field expression has any sub FieldExpressions.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.voidsetFieldName(java.lang.String value)Set the name of the field to return.voidsetMode(HighlightMode value)voidsetScope(java.lang.String value)protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode stringmode)Writes the string representation of this field expression tobuffer.static ScopeFieldvalueOf(HighlightMode mode, StringParser reader)static ScopeFieldvalueOf(StringParser parser)-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, clone, copyOf, forEachField, forEachPhrase, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Field Detail
-
DEFAULT_HIGHLIGHT_MODE
public static final HighlightMode DEFAULT_HIGHLIGHT_MODE
-
-
Constructor Detail
-
ScopeField
public ScopeField(java.lang.String fieldName, java.lang.String scope)Construct a new ScopeField forfieldName
-
ScopeField
public ScopeField(HighlightMode mode, java.lang.String fieldName, java.lang.String scope)
Construct a new ScopeField forfieldName
-
-
Method Detail
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin classFieldExpression
-
hasChildren
public boolean hasChildren()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
getFieldName
public java.lang.String getFieldName()
Get the name of the field to return values for.- Overrides:
getFieldNamein classFieldExpression
-
setFieldName
public void setFieldName(java.lang.String value)
Set the name of the field to return.
-
getScope
public java.lang.String getScope()
-
setScope
public void setScope(java.lang.String value)
-
getMode
public HighlightMode getMode()
-
setMode
public void setMode(HighlightMode value)
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode stringmode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFieldExpression
-
valueOf
public static ScopeField valueOf(StringParser parser)
-
valueOf
public static ScopeField valueOf(HighlightMode mode, StringParser reader)
-
-