public class Tuple
extends java.lang.Object
Constructor and Description |
---|
Tuple(Heading heading,
java.util.Map<java.lang.String,ValueBuffer> attributeValueMap)
Deprecated.
- replace with
Tuple(Map, Heading) |
Tuple(Heading heading,
TupleBuffer tupleBuffer)
Creates the Tuple object
|
Tuple(java.util.Map<NameIdentifier,ValueBuffer> attributeValueMap,
Heading heading)
Creates the tuple
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsTuple(Tuple obj)
Checks if this tuple is equal to the given tuple.
|
java.lang.String |
escapedValueText(NameIdentifier attributeName)
Gets The attribute value for the named attribute, in escaped external format
|
java.lang.String |
escapedValueText(java.lang.String attributeName)
Deprecated.
- replace with
escapedValueText(NameIdentifier) |
Heading |
getHeading()
Gets the heading that the Tuple conforms to
|
static java.lang.String |
getPropositionText(java.lang.String predicateText,
TupleBuffer tupleBuffer,
Heading heading)
Creates a textual proposition from a given predicate, given the attribute values held in the TupleBuffer.
|
TupleBuffer |
getTupleBuffer()
Gets tupleBuffer
|
int |
hashCode()
Since equals is overridden
|
MyReadOnlyMap<NameIdentifier,ValueBuffer> |
identifierValueMap()
Returns the Map holding the attribute values of this tuple
|
static java.lang.String |
printBodyValueWithoutTypeNames(Tuple t)
Gets the tuple body value in textual format (i.e.
|
static java.lang.String |
printBodyValueXML(Tuple t)
Gets the tuple body value in textual XML-style format (i.e.
|
java.lang.String |
printEscapedBodyValueWithoutTypeNames()
Gets the tuple body value in textual format (i.e.
|
static java.lang.String |
printEscapedBodyValueWithTypeNames(Tuple t)
Gets the tuple body value in textual format (i.e.
|
static java.lang.String |
printEscapedValueWithoutTypeNames(Tuple t)
Gets the tuple value in textual format (i.e.
|
static java.lang.String |
printEscapedValueWithTypeNames(Tuple t)
Gets the tuple value in textual format (i.e.
|
static java.lang.String |
printValueWithoutTypeNames(Tuple abstractTuple)
Gets the tuple value in textual format (i.e.
|
static java.lang.String |
printValueWithTypeNames(Tuple abstractTuple)
Gets the tuple value in textual format (i.e.
|
static java.lang.String |
printValueXML(Tuple t)
Gets the tuple value in textual XML-style format (i.e.
|
Relation |
rvaValue(NameIdentifier attributeName)
Gets The attribute value for a relation-valued attribute, as a Relation object
|
Relation |
rvaValue(java.lang.String attributeName)
Deprecated.
- replace with
rvaValue(NameIdentifier) |
java.lang.String |
toString() |
Tuple |
tvaValue(NameIdentifier attributeName)
Gets The attribute value for a relation-valued attribute, as a Relation object
|
Tuple |
tvaValue(java.lang.String attributeName)
Deprecated.
- replace with
tvaValue(NameIdentifier) |
ValueBuffer |
valueBuffer(NameIdentifier attributeName)
Returns the ValueBuffer holding the value of the given attributename in this tuple
|
ValueBuffer |
valueBuffer(java.lang.String attributeName)
Deprecated.
- replace with
valueBuffer(NameIdentifier) |
MyReadOnlyMap<java.lang.String,ValueBuffer> |
valueMap()
Deprecated.
- replace with
identifierValueMap() |
java.lang.String |
valueText(NameIdentifier attributeName)
Returns the external representation of the value of the given attributename in this tuple, using the default possrep of the attribute's type
|
java.lang.String |
valueText(java.lang.String attributeName)
Deprecated.
- replace with
valueText(NameIdentifier) |
@Deprecated public Tuple(Heading heading, java.util.Map<java.lang.String,ValueBuffer> attributeValueMap)
Tuple(Map, Heading)
heading
- the heading that the Tuple conforms toattributeValueMap
- the map holding the tuple's attribute valuespublic Tuple(java.util.Map<NameIdentifier,ValueBuffer> attributeValueMap, Heading heading)
heading
- the heading that the Tuple conforms toattributeValueMap
- the map holding the tuple's attribute valuespublic Tuple(Heading heading, TupleBuffer tupleBuffer)
heading
- the heading that the Tuple conforms totupleBuffer
- the buffer holding the tuple valuepublic static final java.lang.String printBodyValueWithoutTypeNames(Tuple t)
t
- The tuple to be printedpublic static final java.lang.String printBodyValueXML(Tuple t)
t
- The tuple to be rendered to Textpublic static final java.lang.String printEscapedBodyValueWithTypeNames(Tuple t)
t
- The tuple to be rendered to Textpublic static final java.lang.String printEscapedValueWithoutTypeNames(Tuple t)
t
- the tuple to be rendered to textpublic static final java.lang.String printEscapedValueWithTypeNames(Tuple t)
t
- The tuple to be rendered to Textpublic static final java.lang.String printValueWithoutTypeNames(Tuple abstractTuple)
abstractTuple
- The tuple to be rendered to textpublic static java.lang.String printValueWithTypeNames(Tuple abstractTuple)
abstractTuple
- The tuple to be rendered in printpublic static final java.lang.String printValueXML(Tuple t)
t
- The tuple to be rendered in an XML text formatpublic final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final boolean equalsTuple(Tuple obj)
obj
- the tuple to compare to this one@Deprecated public final java.lang.String escapedValueText(java.lang.String attributeName)
escapedValueText(NameIdentifier)
attributeName
- The name of the attribute whose value is to be obtainedpublic final java.lang.String escapedValueText(NameIdentifier attributeName)
attributeName
- The name of the attribute whose value is to be obtainedpublic final Heading getHeading()
public final TupleBuffer getTupleBuffer()
public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String printEscapedBodyValueWithoutTypeNames()
@Deprecated public final Relation rvaValue(java.lang.String attributeName)
rvaValue(NameIdentifier)
attributeName
- The name of the attribute whose value is to be obtained. This attribute must be declared nonscalar in the heading.public final Relation rvaValue(NameIdentifier attributeName)
attributeName
- The name of the attribute whose value is to be obtained. This attribute must be declared nonscalar in the heading.public final java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public final Tuple tvaValue(java.lang.String attributeName)
tvaValue(NameIdentifier)
attributeName
- The name of the attribute whose value is to be obtained. This attribute must be declared nonscalar in the heading.public final Tuple tvaValue(NameIdentifier attributeName)
attributeName
- The name of the attribute whose value is to be obtained. This attribute must be declared nonscalar in the heading.@Deprecated public final ValueBuffer valueBuffer(java.lang.String attributeName)
valueBuffer(NameIdentifier)
attributeName
- The name of the attribute, the value of which is to be returned in external representationpublic final ValueBuffer valueBuffer(NameIdentifier attributeName)
attributeName
- The name of the attribute, the value of which is to be returned in external representation@Deprecated public final MyReadOnlyMap<java.lang.String,ValueBuffer> valueMap()
identifierValueMap()
public final MyReadOnlyMap<NameIdentifier,ValueBuffer> identifierValueMap()
@Deprecated public final java.lang.String valueText(java.lang.String attributeName)
valueText(NameIdentifier)
attributeName
- The name of the attribute, the value of which is to be returned in external representationpublic final java.lang.String valueText(NameIdentifier attributeName)
attributeName
- The name of the attribute, the value of which is to be returned in external representationpublic static java.lang.String getPropositionText(java.lang.String predicateText, TupleBuffer tupleBuffer, Heading heading)
predicateText
- A predicate text, in which the references to 'free' variables appear as '§' characters enclosing an attribute nametupleBuffer
- holds the attribute values to instantiate the free variables of the predicate withheading
- The heading that the tupleconforms to