public class IlvMStatement extends IlvMResource
Two statements are equal iff they have same subject, predicate, and value. They can have different URIs.
Constructor and Description |
---|
IlvMStatement()
Creates an empty, anonymous RDF statement.
|
IlvMStatement(IlvMResource subject,
IlvMResource predicate,
Object value)
Creates an anonymous RDF statement.
|
IlvMStatement(String uri,
IlvMResource subject,
IlvMResource predicate,
Object value)
Creates an RDF statement.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object target)
|
IlvMResource |
getPredicate()
Returns the predicate of the statement.
|
IlvMResource |
getSubject()
Returns the subject of the statement.
|
Object |
getValue()
Returns the value of the statement.
|
int |
hashCode()
|
void |
print(int offset,
PrintStream out)
|
void |
setPredicate(IlvMResource r)
Sets the predicate of the statement.
|
void |
setSubject(IlvMResource r)
Sets the subject of the statement.
|
void |
setValue(Object o)
Sets the value of the statement.
|
generateURI, getNamespace, getQName, getURI, setNamespace, setURI
public IlvMStatement(String uri, IlvMResource subject, IlvMResource predicate, Object value)
uri
- The URI of the statement. This parameter makes sense
when the statement is used as the subject of another statement
(reified).subject
- The subject of the statement.predicate
- The predicate of the statement.value
- The value of the statement.public IlvMStatement(IlvMResource subject, IlvMResource predicate, Object value)
subject
- The subject of the statement.predicate
- The predicate of the statement.value
- The value of the statement.public IlvMStatement()
public void setSubject(IlvMResource r)
r
- the new subjectpublic IlvMResource getSubject()
public void setPredicate(IlvMResource r)
r
- the new predicatepublic IlvMResource getPredicate()
public void setValue(Object o)
o
- the new valuepublic Object getValue()
public int hashCode()
hashCode
in class IlvMResource
public boolean equals(Object target)
equals
in class IlvMResource
public void print(int offset, PrintStream out)
print
in class IlvMResource
offset
- The offset.out
- The out put print stream.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.