Interface MeasureDefinition
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ArithmeticMeasureDefinition,DerivedMeasureDefinition,OverPeriodMeasureDefinition,PopMeasureDefinition,PreviousPeriodMeasureDefinition,SimpleMeasureDefinition,VOPopMeasureDefinition,VOSimpleMeasureDefinition
public interface MeasureDefinition
extends java.io.Serializable
-
Method Summary
Modifier and Type Method Description java.util.Collection<ObjQualifier>getObjQualifiers()Returns all the qualifiers used by the measure definition and its encapsulated objects.default java.lang.StringgetUri()Returns the definition in the form of uri ofMetric.booleanisAdHoc()MeasureDefinitionwithObjUriQualifiers(ObjQualifierConverter objQualifierConverter)Copy itself using the given object qualifier converter in case whenIdentifierObjQualifierinstances are used in the object otherwise the original object is returned.
-
Method Details
-
getUri
default java.lang.String getUri()Returns the definition in the form of uri ofMetric. Default implementation throwsUnsupportedOperationException- Returns:
- uri of the measure
-
getObjQualifiers
java.util.Collection<ObjQualifier> getObjQualifiers()Returns all the qualifiers used by the measure definition and its encapsulated objects.This information comes handy if it is necessary, for example, to convert the measure definition to use just the URI object qualifiers instead of the identifier object qualifiers. It can be used to gather these for a conversion service.
- Returns:
- all the qualifiers the measure definition uses, even in its encapsulated objects (apart from the measure filters)
-
withObjUriQualifiers
Copy itself using the given object qualifier converter in case whenIdentifierObjQualifierinstances are used in the object otherwise the original object is returned.The provided converter must be able to handle the conversion for the qualifiers that are of the
IdentifierObjQualifiertype that are used by this object or its encapsulated child objects.- Parameters:
objQualifierConverter- The function that converts identifier qualifiers to the matching URI qualifiers. In case when the object uses the identifier qualifiers, it will return a new copy of itself or its encapsulated objects that used URI qualifiers, otherwise the original object is returned. The parameter must not be null.- Returns:
- copy of itself with replaced qualifiers in case when some
IdentifierObjQualifierwere used, otherwise original object is returned. - Throws:
java.lang.IllegalArgumentException- The exception is thrown when conversion for the identifier qualifier used by this measure definition could not be made by the provided converter or when provided converter is null.
-
isAdHoc
boolean isAdHoc()- Returns:
- true if this definition represents ad hoc specified measure, false otherwise
-