Class StatementImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.relations.api.impl.StatementImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Statement>
,Statement
public class StatementImpl extends Object implements Statement
Statement with subject, predicate and object.- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatementImpl()
Constructor for NULL statement.StatementImpl(Node subject, Node predicate, Node object)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperties(Map<Resource,Node[]> properties)
void
addProperties(Resource property, Node[] values)
void
addProperty(Resource property, Node value)
Object
clone()
int
compareTo(Statement o)
void
deleteProperties()
void
deleteProperties(Resource property, Node[] values)
void
deleteProperty(Resource property)
void
deleteProperty(Resource property, Node value)
boolean
equals(Object other)
Node
getObject()
Resource
getPredicate()
Map<Resource,Node[]>
getProperties()
Node[]
getProperties(Resource property)
Node
getProperty(Resource property)
Map<String,Node[]>
getStringProperties()
Subject
getSubject()
int
hashCode()
void
setObject(Node object)
void
setPredicate(Node predicate)
void
setProperties(Map<Resource,Node[]> properties)
void
setProperties(Resource property, Node[] values)
void
setProperty(Resource property, Node value)
void
setSubject(Node subject)
String
toString()
-
-
-
Method Detail
-
getPredicate
public Resource getPredicate()
- Specified by:
getPredicate
in interfaceStatement
-
setPredicate
public void setPredicate(Node predicate)
- Specified by:
setPredicate
in interfaceStatement
-
getSubject
public Subject getSubject()
- Specified by:
getSubject
in interfaceStatement
-
setSubject
public void setSubject(Node subject)
- Specified by:
setSubject
in interfaceStatement
-
getProperties
public Map<Resource,Node[]> getProperties()
- Specified by:
getProperties
in interfaceStatement
-
getStringProperties
public Map<String,Node[]> getStringProperties()
- Specified by:
getStringProperties
in interfaceStatement
-
getProperty
public Node getProperty(Resource property)
- Specified by:
getProperty
in interfaceStatement
-
getProperties
public Node[] getProperties(Resource property)
- Specified by:
getProperties
in interfaceStatement
-
setProperties
public void setProperties(Map<Resource,Node[]> properties)
- Specified by:
setProperties
in interfaceStatement
-
setProperty
public void setProperty(Resource property, Node value)
- Specified by:
setProperty
in interfaceStatement
-
setProperties
public void setProperties(Resource property, Node[] values)
- Specified by:
setProperties
in interfaceStatement
-
deleteProperties
public void deleteProperties()
- Specified by:
deleteProperties
in interfaceStatement
-
deleteProperty
public void deleteProperty(Resource property)
- Specified by:
deleteProperty
in interfaceStatement
-
deleteProperty
public void deleteProperty(Resource property, Node value)
- Specified by:
deleteProperty
in interfaceStatement
-
deleteProperties
public void deleteProperties(Resource property, Node[] values)
- Specified by:
deleteProperties
in interfaceStatement
-
addProperties
public void addProperties(Map<Resource,Node[]> properties)
- Specified by:
addProperties
in interfaceStatement
-
addProperty
public void addProperty(Resource property, Node value)
- Specified by:
addProperty
in interfaceStatement
-
addProperties
public void addProperties(Resource property, Node[] values)
- Specified by:
addProperties
in interfaceStatement
-
compareTo
public int compareTo(Statement o)
- Specified by:
compareTo
in interfaceComparable<Statement>
-
-