|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.rpe.common.data.Feature
public class Feature
Constructor Summary | |
---|---|
Feature()
|
|
Feature(java.lang.String id,
java.lang.String tag)
|
Method Summary | |
---|---|
void |
addFeature(Feature feature)
|
void |
addFeature(int location,
Feature feature)
|
void |
addFeatures(java.util.Collection<Feature> other)
|
void |
addProperties(java.util.Collection<Property> properties)
|
void |
addProperty(Property property)
|
void |
addPropertyAfter(Property property,
Property other)
Deprecated. |
void |
addPropertyBefore(Property property,
Property other)
Deprecated. |
void |
copyContent(Feature other)
Copies the content of another feature. |
Feature |
copyOf()
|
java.util.List<Feature> |
getFeatures()
Returns an unmodifiable collection of Features. |
java.lang.String |
getId()
|
Feature |
getNewInstance()
|
java.util.List<Property> |
getProperties()
Returns an unmodifiable collection of Properties. |
Property |
getProperty(java.lang.String name)
|
Property |
getPropertyFast(java.lang.String name)
In most cases the property looked for is in the first child feature Searching these locations first will result in an overall improved performance The properties cannot be sorted before searching this order is important in some scenarios Also given the small number of properties per feature there would be no real gain in doing so |
java.lang.String |
getTag()
|
java.lang.String |
getType()
|
void |
removeAll(java.util.Collection<Feature> deleted)
|
void |
removeAllFeatures()
|
void |
removeAllProperties()
|
boolean |
removeFeature(Feature feature)
|
boolean |
removeProperty(Property prop)
|
void |
setId(java.lang.String id)
|
void |
setTag(java.lang.String tag)
|
void |
setType(java.lang.String type)
|
void |
sort(java.util.Comparator<Feature> featureComparator,
java.util.Comparator<Property> propertyComparator,
boolean deep)
|
void |
visit(com.ibm.rational.rpe.common.template.visitor.Visitable parent,
com.ibm.rational.rpe.common.template.visitor.Visitor v)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Feature()
public Feature(java.lang.String id, java.lang.String tag)
Method Detail |
---|
public Feature getNewInstance()
public Property getPropertyFast(java.lang.String name)
public Property getProperty(java.lang.String name)
public void setTag(java.lang.String tag)
public java.lang.String getTag()
public void setId(java.lang.String id)
public java.lang.String getId()
public void setType(java.lang.String type)
public java.lang.String getType()
public void addProperty(Property property)
public void addProperties(java.util.Collection<Property> properties)
@Deprecated public void addPropertyBefore(Property property, Property other)
property
- other
- @Deprecated public void addPropertyAfter(Property property, Property other)
property
- other
- public java.util.List<Property> getProperties()
public boolean removeProperty(Property prop)
public void addFeature(Feature feature)
public void addFeatures(java.util.Collection<Feature> other)
public void addFeature(int location, Feature feature)
public boolean removeFeature(Feature feature)
public void removeAll(java.util.Collection<Feature> deleted)
public java.util.List<Feature> getFeatures()
public Feature copyOf()
public void copyContent(Feature other)
other
- public void visit(com.ibm.rational.rpe.common.template.visitor.Visitable parent, com.ibm.rational.rpe.common.template.visitor.Visitor v)
visit
in interface com.ibm.rational.rpe.common.template.visitor.Visitable
public void removeAllProperties()
public void removeAllFeatures()
public void sort(java.util.Comparator<Feature> featureComparator, java.util.Comparator<Property> propertyComparator, boolean deep)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |