Package com.attivio.sdk.ingest
Class IngestFieldValue
- java.lang.Object
-
- com.attivio.sdk.ingest.IngestFieldValue
-
- All Implemented Interfaces:
LocaleAware,java.io.Serializable,java.lang.Cloneable
public class IngestFieldValue extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, LocaleAware
A field value for anIngestDocument.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.Serializablevalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedIngestFieldValue()IngestFieldValue(Point value)Construct a new IngestFieldValue with aPointvalue.IngestFieldValue(Shape value)Construct a new IngestFieldValue with aShapevalue.IngestFieldValue(ContentPointer value)Construct a new IngestFieldValue with aContentPointervalue.protectedIngestFieldValue(java.io.Serializable value)IngestFieldValue(java.lang.Boolean value)Construct a new IngestFieldValue with aBooleanvalue.IngestFieldValue(java.lang.Number value)Construct a new IngestFieldValue with aNumbervalue.IngestFieldValue(java.lang.String value)Construct a new IngestFieldValue with aStringvalue.IngestFieldValue(java.util.Date value)Construct a new IngestFieldValue with aDatevalue.IngestFieldValue(org.w3c.dom.Document value)Construct a new IngestFieldValue with aDocumentvalue.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue()Gets the value as aboolean.IngestFieldValueclone()ContentPointercontentPointerValue()Gets the value as aContentPointer.java.util.DatedateValue()Gets the value as aDate.java.math.BigDecimaldecimalValue()Gets the value as aBigDecimal.doubledoubleValue()Gets the value as adouble.booleanequals(java.lang.Object other)floatfloatValue()Gets the value as afloat.longgetEstimatedSize()Get the estimated size of this field in bytes.java.util.LocalegetLocale()Get the value's locale (or null if not known).TokenListgetTokenList()Get theTokenListfor this value.java.lang.ObjectgetValue()Get the field value.inthashCode()intintValue()Gets the value as anint.longlongValue()Gets the value as along.PointpointValue()Gets the value as aPoint.voidsetLocale(java.util.Locale value)Set the value's locale.voidsetTokenList(TokenList value)Set theTokenListfor this value.voidsetValue(Point value)Set aPointvalue.voidsetValue(Shape value)Set aShapevalue.voidsetValue(ContentPointer value)Set aContentPointervalue.voidsetValue(java.lang.Boolean value)Set aBooleanvalue.voidsetValue(java.lang.Number value)Set anumericvalue.voidsetValue(java.lang.String value)Set aStringvalue.voidsetValue(java.util.Date value)Set aDatevalue.voidsetValue(org.w3c.dom.Document value)Set aDocumentvalue.protected voidsetValueInternal(java.io.Serializable newValue)ShapeshapeValue()Gets the value as aShape.java.lang.StringstringValue()Gets the value as a string.java.lang.StringtoString()booleanvalueEquals(java.lang.Object other)static IngestFieldValuevalueOf(java.lang.Object value)Get anIngestFieldValueforvalue.org.w3c.dom.DocumentxmlValue()Gets the value as aDocument.
-
-
-
Constructor Detail
-
IngestFieldValue
protected IngestFieldValue()
-
IngestFieldValue
protected IngestFieldValue(java.io.Serializable value)
-
IngestFieldValue
public IngestFieldValue(java.lang.String value)
Construct a new IngestFieldValue with aStringvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
IngestFieldValue
public IngestFieldValue(java.lang.Number value)
Construct a new IngestFieldValue with aNumbervalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
IngestFieldValue
public IngestFieldValue(java.util.Date value)
Construct a new IngestFieldValue with aDatevalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
IngestFieldValue
public IngestFieldValue(java.lang.Boolean value)
Construct a new IngestFieldValue with aBooleanvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
IngestFieldValue
public IngestFieldValue(Point value)
Construct a new IngestFieldValue with aPointvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
IngestFieldValue
public IngestFieldValue(Shape value)
Construct a new IngestFieldValue with aShapevalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
IngestFieldValue
public IngestFieldValue(ContentPointer value)
Construct a new IngestFieldValue with aContentPointervalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
IngestFieldValue
public IngestFieldValue(org.w3c.dom.Document value)
Construct a new IngestFieldValue with aDocumentvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
-
Method Detail
-
getEstimatedSize
public long getEstimatedSize()
Get the estimated size of this field in bytes.NOTE: Includes size of remote content pointers.
-
getLocale
public final java.util.Locale getLocale()
Get the value's locale (or null if not known).This locale will be used for per-language linguistic processing.
- Specified by:
getLocalein interfaceLocaleAware
-
setLocale
public void setLocale(java.util.Locale value)
Set the value's locale.- Specified by:
setLocalein interfaceLocaleAware
-
getValue
public java.lang.Object getValue()
Get the field value.
-
stringValue
public java.lang.String stringValue()
Gets the value as a string.
-
intValue
public int intValue()
Gets the value as anint.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as anint.
-
longValue
public long longValue()
Gets the value as along.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as along.
-
doubleValue
public double doubleValue()
Gets the value as adouble.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as adouble.
-
floatValue
public float floatValue()
Gets the value as afloat.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as afloat.
-
booleanValue
public boolean booleanValue()
Gets the value as aboolean.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as aboolean.
-
dateValue
public java.util.Date dateValue()
Gets the value as aDate.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as aDate.
-
decimalValue
public java.math.BigDecimal decimalValue()
Gets the value as aBigDecimal.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as aBigDecimal.
-
pointValue
public Point pointValue()
Gets the value as aPoint.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as aPoint.
-
shapeValue
public Shape shapeValue()
Gets the value as aShape.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as aShape.
-
contentPointerValue
public ContentPointer contentPointerValue()
Gets the value as aContentPointer.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as aContentPointer.
-
xmlValue
public org.w3c.dom.Document xmlValue()
Gets the value as aDocument.- Throws:
java.lang.IllegalArgumentException- if this value cannot be represented as aDocument.
-
setValue
public void setValue(java.lang.String value)
Set aStringvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValue
public void setValue(java.lang.Number value)
Set anumericvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValue
public void setValue(java.util.Date value)
Set aDatevalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValue
public void setValue(java.lang.Boolean value)
Set aBooleanvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValue
public void setValue(Point value)
Set aPointvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValue
public void setValue(Shape value)
Set aShapevalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValue
public void setValue(ContentPointer value)
Set aContentPointervalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValue
public void setValue(org.w3c.dom.Document value)
Set aDocumentvalue.- Throws:
java.lang.IllegalArgumentException- ifvalueis null.
-
setValueInternal
protected void setValueInternal(java.io.Serializable newValue)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
valueEquals
public boolean valueEquals(java.lang.Object other)
-
clone
public IngestFieldValue clone()
- Overrides:
clonein classjava.lang.Object
-
valueOf
public static IngestFieldValue valueOf(java.lang.Object value)
- Throws:
java.lang.IllegalArgumentException- ifvalueis not a legal value.
-
-