|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mulgara.util.Pair<PredicateNode,ObjectNode>
org.mulgara.mrg.PropertyValue
public class PropertyValue
An RDF property value
| Field Summary |
|---|
| Fields inherited from class org.mulgara.util.Pair |
|---|
_1, _2 |
| Constructor Summary | |
|---|---|
PropertyValue(Node p,
Node o)
Create a new triple. |
|
PropertyValue(Pair<PredicateNode,ObjectNode> pair)
Create a new property value. |
|
PropertyValue(PredicateNode p,
ObjectNode o)
Create a new property value. |
|
PropertyValue(PredicateNode p,
String o)
Create a new property value with a string literal. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Equality method. |
ObjectNode |
getObject()
Gets the object |
PredicateNode |
getPredicate()
Gets the predicate |
PredicateNode |
getProperty()
Gets the predicate |
ObjectNode |
getValue()
Gets the value |
String |
toString()
Prints a simple representation of the property value. |
| Methods inherited from class org.mulgara.util.Pair |
|---|
getFirst, getKey, getSecond, hashCode, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyValue(PredicateNode p,
ObjectNode o)
p - The property.o - The value.
public PropertyValue(Node p,
Node o)
p - The predicate.o - The object.
ClassCastException - If an incompatible type is provided in p or o.public PropertyValue(Pair<PredicateNode,ObjectNode> pair)
pair - The generalized property value.
public PropertyValue(PredicateNode p,
String o)
p - The property.o - The object.| Method Detail |
|---|
public PredicateNode getPredicate()
public PredicateNode getProperty()
public ObjectNode getObject()
public ObjectNode getValue()
getValue in interface Map.Entry<PredicateNode,ObjectNode>getValue in class Pair<PredicateNode,ObjectNode>public boolean equals(Object o)
equals in interface Map.Entry<PredicateNode,ObjectNode>equals in class Pair<PredicateNode,ObjectNode>public String toString()
toString in class Pair<PredicateNode,ObjectNode>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||