|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.rpe.common.utils.FeatureUtils
public class FeatureUtils
Utility class for working with Feature
objects
Constructor Summary | |
---|---|
FeatureUtils()
|
Method Summary | |
---|---|
static boolean |
compare(Feature feature1,
Feature feature2)
Compares the two features that are provided as arguments. |
static boolean |
compareFeatures(java.util.Collection<Feature> features1,
java.util.Collection<Feature> features2)
Compares the two collection of features that are provided as arguments. |
static void |
copyFromParent(Feature elementFi,
Feature parentFi,
java.util.Collection<java.lang.String> nonInheritableProperties)
Copies the parent properties excepting those in the notInheritableProperties list |
static void |
copyFromParent(com.ibm.rational.rpe.common.template.model.FormatInfo elementFi,
com.ibm.rational.rpe.common.template.model.FormatInfo parentFi)
Replaces the values of all properties in elementFi with the values of the properties from parentFi . |
static void |
copyFromParent(com.ibm.rational.rpe.common.template.model.FormatInfo elementFi,
com.ibm.rational.rpe.common.template.model.FormatInfo parentFi,
java.util.Map<java.lang.String,java.lang.String> cannotInheritedProperties)
Deprecated. |
static void |
copyFromParent(java.util.List<Feature> parentFeatures,
com.ibm.rational.rpe.common.template.model.FormatInfo childFormat,
java.lang.String tag)
Internal. |
static Feature |
findFeature(Feature context,
java.lang.String tag)
Finds the first feature with the tag tag in the context feature. |
static java.util.List<Feature> |
findFeatures(Feature context,
java.lang.String tag)
Finds all the features with the tag tag in the context feature. |
static void |
removeFeatures(Feature context,
java.lang.String tag)
Removes from the context feature all of the features with a matching tag |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureUtils()
Method Detail |
---|
public static Feature findFeature(Feature context, java.lang.String tag)
tag
tag in the context
feature. The search is not recursive.
context
- - the feature where the search is to be performedtag
- - the tag to search value
public static java.util.List<Feature> findFeatures(Feature context, java.lang.String tag)
tag
tag in the context
feature. The search is recursive.
context
- - the feature where the search is to be performedtag
- - the tag to search value
public static boolean compareFeatures(java.util.Collection<Feature> features1, java.util.Collection<Feature> features2)
features1
- features2
-
public static boolean compare(Feature feature1, Feature feature2)
features1
- features2
-
public static void removeFeatures(Feature context, java.lang.String tag)
context
feature all of the features with a matching tag
context
- the target featuretag
- the tag to look forpublic static void copyFromParent(Feature elementFi, Feature parentFi, java.util.Collection<java.lang.String> nonInheritableProperties)
@Deprecated public static void copyFromParent(com.ibm.rational.rpe.common.template.model.FormatInfo elementFi, com.ibm.rational.rpe.common.template.model.FormatInfo parentFi, java.util.Map<java.lang.String,java.lang.String> cannotInheritedProperties)
public static void copyFromParent(com.ibm.rational.rpe.common.template.model.FormatInfo elementFi, com.ibm.rational.rpe.common.template.model.FormatInfo parentFi)
elementFi
with the values of the properties from parentFi
.
elementFi
- parentFi
- public static void copyFromParent(java.util.List<Feature> parentFeatures, com.ibm.rational.rpe.common.template.model.FormatInfo childFormat, java.lang.String tag)
elementFi
- parentFi
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |