Package com.yahoo.document.datatypes
Class UriFieldValue
- java.lang.Object
-
- com.yahoo.vespa.objects.Selectable
-
- com.yahoo.vespa.objects.Identifiable
-
- com.yahoo.document.datatypes.FieldValue
-
- com.yahoo.document.datatypes.StringFieldValue
-
- com.yahoo.document.datatypes.UriFieldValue
-
- All Implemented Interfaces:
Cloneable
,Comparable<FieldValue>
public class UriFieldValue extends StringFieldValue
- Author:
- Magnar Nedland
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UriFieldValue.Factory
-
Field Summary
-
Fields inherited from class com.yahoo.document.datatypes.StringFieldValue
classId
-
-
Constructor Summary
Constructors Constructor Description UriFieldValue()
UriFieldValue(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assign(Object obj)
Sets a new value for this StringFieldValue. NOTE that doing so will clear all span trees from this value, since they most certainly will not make sense for a new string value.void
deserialize(Field field, FieldReader reader)
Read a field value from the specified readerDataType
getDataType()
ReturnsDataType
.STRING.-
Methods inherited from class com.yahoo.document.datatypes.StringFieldValue
clear, clone, compareTo, equals, getFactory, getSpanTree, getSpanTreeMap, getSpanTrees, getString, getWrappedValue, hashCode, printXml, removeSpanTree, serialize, setSpanTree, setUnChecked, toString
-
Methods inherited from class com.yahoo.document.datatypes.FieldValue
create, deserialize, getRecursiveValue, getRecursiveValue, onDeserialize, onSerialize, serialize, toXml
-
-
-
-
Constructor Detail
-
UriFieldValue
public UriFieldValue()
-
UriFieldValue
public UriFieldValue(String value)
-
-
Method Detail
-
assign
public void assign(Object obj)
Description copied from class:StringFieldValue
Sets a new value for this StringFieldValue. NOTE that doing so will clear all span trees from this value, since they most certainly will not make sense for a new string value.- Overrides:
assign
in classStringFieldValue
- Parameters:
obj
- the new String to assign to this. An argument of null is equal to calling clear().
-
getDataType
public DataType getDataType()
Description copied from class:StringFieldValue
ReturnsDataType
.STRING.- Overrides:
getDataType
in classStringFieldValue
- Returns:
- DataType.STRING, always
-
deserialize
public void deserialize(Field field, FieldReader reader)
Description copied from class:FieldValue
Read a field value from the specified reader- Overrides:
deserialize
in classStringFieldValue
-
-