Class ComponentInfo
java.lang.Object
tech.oxfordsemantic.jrdfox.client.ComponentInfo
public class ComponentInfo
extends java.lang.Object
Encapsulates information about a component of the data store.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComponentInfo.PropertyEncapsulates an individual datapoint of information about a component of the data store. -
Constructor Summary
Constructors Constructor Description ComponentInfo(ComponentInfo.Property[] properties, ComponentInfo[] subComponents) -
Method Summary
Modifier and Type Method Description intgetNumberOfProperties()Returns the number of properties.intgetNumberOfSubComponents()Returns the number of sub-components.ComponentInfo.PropertygetProperty(int index)Returns an individual property.ComponentInfo.PropertygetProperty(ComponentInfoMetric metric, java.lang.String uniqueName)Returns an individual property by its metric and unique name.ComponentInfogetSubComponent(int index)Returns information about a sub-component.ComponentInfogetSubComponent(java.lang.String name)Returns information about a sub-component by its name.
-
Constructor Details
-
Method Details
-
getNumberOfSubComponents
public int getNumberOfSubComponents()Returns the number of sub-components.- Returns:
- the number of sub-components.
-
getSubComponent
Returns information about a sub-component.- Parameters:
index- the zero-based index of the sub-component to access.- Returns:
- the sub-component information.
-
getSubComponent
Returns information about a sub-component by its name.- Returns:
- the sub-component information, or null if no such sub-component exists.
-
getNumberOfProperties
public int getNumberOfProperties()Returns the number of properties.- Returns:
- the number of properties.
-
getProperty
Returns an individual property.- Parameters:
index- the zero-based index of the property to access.- Returns:
- the property information.
-
getProperty
Returns an individual property by its metric and unique name.- Parameters:
metric- the metric of the property to access.uniqueName- the unique name of the property to access, or null if the property does not have a unique name.- Returns:
- the property information, or null if no such property exists.
-