T
- the type of the return valuepublic interface Information<T>
Modifier and Type | Method and Description |
---|---|
Optional<T> |
getInformation(Component component)
Calculates the information for given component.
|
default String |
getInformationAsString(Component component)
Show the information as a
String . |
default String |
getName()
The internationalized name of the ITO.
|
default PropertyType |
getType()
Returns the output type of this piece of information.
|
String |
getUniqueId()
The unique ID of the ITO.
|
String getUniqueId()
default String getName()
Optional<T> getInformation(Component component)
component
- the componentdefault String getInformationAsString(Component component)
String
. The default implementation just calls String.valueOf with the return
value of getInformation
as the parameter. You can implement translations in this method if needed.component
- the componentdefault PropertyType getType()
PropertyType.STRING
and the developer needs to override this method if they for example want to return
numeric values. For example for area calculations this would return PropertyType.AREA
.Copyright © 2020 Solibri, Inc.. All rights reserved.