public static Constraint modificationConstraint ( String modifTerm ) { return new FieldOfMultiple ( new MappedConst ( new LinkedPE ( LinkedPE . Type . TO_SPECIFIC ) , 0 ) , "PhysicalEntity/feature:ModificationFeature/modificationType/term" , Field . Operation . INTERSECT , modifTerm ) ; }
Makes sure that the PhysicalEntity or any linked PE contains the modification term . Size = 1 .