public class FeatureAdminData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureAdminData.Type
Enumerates the type of feature list.
|
| Constructor and Description |
|---|
FeatureAdminData()
Constructor
|
FeatureAdminData(Set<String> features,
FeatureAdminData.Type type)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(String toAdd)
Adds an feature for a gadget.
|
void |
addFeatures(Set<String> toAdd)
Adds features for this gadget.
|
void |
clearFeatures()
Clears the set of features.
|
boolean |
equals(Object obj) |
Set<String> |
getFeatures()
Gets the features.
|
FeatureAdminData.Type |
getType()
Gets the type of features list.
|
int |
hashCode() |
void |
removeFeature(String toRemove)
Removes an feature for a gadget.
|
void |
removeFeatures(Set<String> toRemove)
Removes the list of features for a gadget.
|
void |
setType(FeatureAdminData.Type type)
Sets the type.
|
public FeatureAdminData()
public FeatureAdminData(Set<String> features, FeatureAdminData.Type type)
features - a set of featurestype - determines which set takes priority over the otherpublic void addFeatures(Set<String> toAdd)
toAdd - the features for this gadget.public void addFeature(String toAdd)
toAdd - the feature to add.public void clearFeatures()
public void removeFeatures(Set<String> toRemove)
toRemove - the features to remove.public void removeFeature(String toRemove)
toRemove - the feature to remove.public FeatureAdminData.Type getType()
public void setType(FeatureAdminData.Type type)
type - the type to set.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.