Class ReferenceSubsettings
java.lang.Object
com.dassault_systemes.modeler.kerml.model.ReferenceSubsettings
Utility class to work with
ReferenceSubsetting-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChainingFeatureOfReferenced(Feature referencing) Returns the chaining feature path of the referenced feature.static FeaturegetEffectiveReferenced(Feature feature) static <T extends Feature>
TgetEffectiveReferenced(T feature, Class<T> kind) static FeaturegetReferenced(Feature referencing) getReferencedAsChain(Feature feature) Returns the referenced feature chain of the given feature.static voidsetReferenced(Feature referencing, Feature referenced) static booleansetReferenced(Feature referencing, List<? extends Feature> referencedAsChain) Sets referenced feature of given referencing feature.
-
Constructor Details
-
ReferenceSubsettings
public ReferenceSubsettings()
-
-
Method Details
-
getEffectiveReferenced
-
getEffectiveReferenced
-
getReferenced
-
setReferenced
-
setReferenced
Sets referenced feature of given referencing feature. Owned byReferenceSubsettinganonymous feature withFeatureChainingis used in case non-single referenced is passed.- Parameters:
referencing- referencing featurereferencedAsChain- referenced feature as a chain- Returns:
- if modified
-
getReferencedAsChain
Returns the referenced feature chain of the given feature.- Parameters:
feature- the referencing feature- Returns:
- the referenced feature chain, or an empty list if none exists
-
getChainingFeatureOfReferenced
Returns the chaining feature path of the referenced feature.- Parameters:
referencing- the referencing feature- Returns:
- list of chaining features, or an empty list if none exist
-