Class ComponentInfo
java.lang.Object
tech.oxfordsemantic.jrdfox.client.ComponentInfo
Encapsulates information about a component of the data store.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEncapsulates an individual datapoint of information about a component of the data store. -
Constructor Summary
ConstructorsConstructorDescriptionComponentInfo(ComponentInfo.Property[] properties, ComponentInfo[] subComponents) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of properties.intReturns the number of sub-components.getProperty(int index) Returns an individual property.getProperty(ComponentInfoMetric metric, String uniqueName) Returns an individual property by its metric and unique name.getSubComponent(int index) Returns information about a sub-component.getSubComponent(String name) Returns information about a sub-component by its name.
-
Constructor Details
-
ComponentInfo
-
-
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.
-