|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.spin.util.SPLUtil
public class SPLUtil
Utilities related to the spl namespace.
| Constructor Summary | |
|---|---|
SPLUtil()
|
|
| Method Summary | |
|---|---|
static Argument |
getArgument(Resource subject,
Property predicate)
Gets any declared spl:Argument that is attached to the types of a given subject via spin:constraint, that has a given predicate as its spl:predicate. |
static java.util.Map<Property,RDFNode> |
getDefaultValues(Resource subject)
Creates a Map from Properties to RDFNodes based on declared spl:InferDefaultValues. |
static RDFNode |
getObject(Resource subject,
Property predicate)
Same as getObject(subject, predicate, false). |
static RDFNode |
getObject(Resource subject,
Property predicate,
boolean includeSubProperties)
Gets the (first) value of a subject/predicate combination. |
static boolean |
isArgumentPredicate(Resource subject,
Property predicate)
Checks if a given Property is a defined spl:Argument of a given subject Resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SPLUtil()
| Method Detail |
|---|
public static Argument getArgument(Resource subject,
Property predicate)
subject - the instance to get an Argument ofpredicate - the predicate to match
public static java.util.Map<Property,RDFNode> getDefaultValues(Resource subject)
subject -
public static RDFNode getObject(Resource subject,
Property predicate)
getObject(subject, predicate, false).
getObject(Resource, Property, boolean)
public static RDFNode getObject(Resource subject,
Property predicate,
boolean includeSubProperties)
subject - the subject to get the object ofpredicate - the predicateincludeSubProperties - true to also check for sub-properties of predicate
public static boolean isArgumentPredicate(Resource subject,
Property predicate)
subject - the subjectpredicate - the Property to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||