|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.core.composite.Composites
public class Composites
Static utility methods to operate on the composite ontology.
| Constructor Summary | |
|---|---|
Composites()
|
|
| Method Summary | |
|---|---|
static int |
compareChildren(com.hp.hpl.jena.rdf.model.RDFNode n1,
com.hp.hpl.jena.rdf.model.RDFNode n2)
|
static int |
compareIntegers(java.lang.Integer index1,
java.lang.Integer index2)
|
static java.lang.Integer |
getChildIndex(com.hp.hpl.jena.rdf.model.Resource child)
|
static com.hp.hpl.jena.rdf.model.Statement |
getChildIndexStatement(com.hp.hpl.jena.rdf.model.Resource child)
|
static java.util.List<com.hp.hpl.jena.rdf.model.Resource> |
getChildren(com.hp.hpl.jena.rdf.model.Resource composite)
|
static java.util.List<com.hp.hpl.jena.rdf.model.Resource> |
getChildren(com.hp.hpl.jena.rdf.model.Resource composite,
com.hp.hpl.jena.rdf.model.Property childProperty)
|
static java.util.List<com.hp.hpl.jena.rdf.model.Resource> |
getChildren(com.hp.hpl.jena.rdf.model.Resource composite,
java.util.Set<com.hp.hpl.jena.rdf.model.Property> childProperties)
|
static com.hp.hpl.jena.rdf.model.Resource |
getNextChild(com.hp.hpl.jena.rdf.model.Resource parent,
com.hp.hpl.jena.rdf.model.Resource child)
Gets the next child from a list of statements with composite:child and its subproperties. |
static com.hp.hpl.jena.rdf.model.Resource |
getNextChild(com.hp.hpl.jena.rdf.model.Statement childStatement)
Gets the next child from a list of statements with the property from childStatement. |
static com.hp.hpl.jena.rdf.model.Resource |
getPreviousChild(com.hp.hpl.jena.rdf.model.Resource parent,
com.hp.hpl.jena.rdf.model.Resource child)
Gets the previous child from a list of statements with composite:child and its subproperties. |
static com.hp.hpl.jena.rdf.model.Resource |
getPreviousChild(com.hp.hpl.jena.rdf.model.Statement childStatement)
Gets the previous child from a list of statements with the property from childStatement. |
static boolean |
isChildProperty(com.hp.hpl.jena.rdf.model.Resource property)
|
static boolean |
isChildStatement(com.hp.hpl.jena.rdf.model.Statement childStatement)
|
static boolean |
isCompositeProperty(com.hp.hpl.jena.rdf.model.Resource currentProperty,
com.hp.hpl.jena.rdf.model.Resource compositeProperty)
Checks if the current property is a or subclass of a COMPOSITE property. |
static boolean |
isFirstChild(com.hp.hpl.jena.rdf.model.Statement statement)
|
static boolean |
isLastChild(com.hp.hpl.jena.rdf.model.Statement statement)
|
static boolean |
isParentProperty(com.hp.hpl.jena.rdf.model.Resource property)
|
static void |
sort(java.util.List<com.hp.hpl.jena.rdf.model.Statement> statements)
|
static void |
sortChildren(java.util.List<com.hp.hpl.jena.rdf.model.Resource> resources)
|
static void |
sortProperties(java.util.List<com.hp.hpl.jena.rdf.model.Property> properties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Composites()
| Method Detail |
|---|
public static int compareChildren(com.hp.hpl.jena.rdf.model.RDFNode n1,
com.hp.hpl.jena.rdf.model.RDFNode n2)
public static int compareIntegers(java.lang.Integer index1,
java.lang.Integer index2)
public static java.lang.Integer getChildIndex(com.hp.hpl.jena.rdf.model.Resource child)
public static com.hp.hpl.jena.rdf.model.Statement getChildIndexStatement(com.hp.hpl.jena.rdf.model.Resource child)
public static java.util.List<com.hp.hpl.jena.rdf.model.Resource> getChildren(com.hp.hpl.jena.rdf.model.Resource composite)
public static java.util.List<com.hp.hpl.jena.rdf.model.Resource> getChildren(com.hp.hpl.jena.rdf.model.Resource composite,
com.hp.hpl.jena.rdf.model.Property childProperty)
public static java.util.List<com.hp.hpl.jena.rdf.model.Resource> getChildren(com.hp.hpl.jena.rdf.model.Resource composite,
java.util.Set<com.hp.hpl.jena.rdf.model.Property> childProperties)
public static com.hp.hpl.jena.rdf.model.Resource getNextChild(com.hp.hpl.jena.rdf.model.Statement childStatement)
childStatement -
public static com.hp.hpl.jena.rdf.model.Resource getNextChild(com.hp.hpl.jena.rdf.model.Resource parent,
com.hp.hpl.jena.rdf.model.Resource child)
parent - child -
public static com.hp.hpl.jena.rdf.model.Resource getPreviousChild(com.hp.hpl.jena.rdf.model.Statement childStatement)
childStatement -
public static com.hp.hpl.jena.rdf.model.Resource getPreviousChild(com.hp.hpl.jena.rdf.model.Resource parent,
com.hp.hpl.jena.rdf.model.Resource child)
parent - child -
public static boolean isChildProperty(com.hp.hpl.jena.rdf.model.Resource property)
public static boolean isChildStatement(com.hp.hpl.jena.rdf.model.Statement childStatement)
public static boolean isCompositeProperty(com.hp.hpl.jena.rdf.model.Resource currentProperty,
com.hp.hpl.jena.rdf.model.Resource compositeProperty)
currentProperty - - the given propertycompositeProperty - - has to be a COMPOSITE property
public static boolean isFirstChild(com.hp.hpl.jena.rdf.model.Statement statement)
public static boolean isLastChild(com.hp.hpl.jena.rdf.model.Statement statement)
public static boolean isParentProperty(com.hp.hpl.jena.rdf.model.Resource property)
public static void sort(java.util.List<com.hp.hpl.jena.rdf.model.Statement> statements)
public static void sortChildren(java.util.List<com.hp.hpl.jena.rdf.model.Resource> resources)
public static void sortProperties(java.util.List<com.hp.hpl.jena.rdf.model.Property> properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||