|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.spec.Feature
public class Feature
Represents a Require or Optional tag. No substitutions on any fields.
| Field Summary | |
|---|---|
static Feature |
CORE_FEATURE
|
static Feature |
SECURITY_TOKEN_FEATURE
|
| Constructor Summary | |
|---|---|
Feature(Element feature)
Creates a new Feature from an xml node. |
|
| Method Summary | |
|---|---|
String |
getName()
|
String |
getParam(String key)
Returns the first value for any feature parameter, or null if the parameter does not exist. |
Collection<String> |
getParamCollection(String key)
Returns the values for the key, or an empty collection. |
com.google.common.collect.Multimap<String,String> |
getParams()
|
boolean |
getRequired()
|
String |
toString()
Produces an xml representation of the feature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Feature CORE_FEATURE
public static final Feature SECURITY_TOKEN_FEATURE
| Constructor Detail |
|---|
public Feature(Element feature)
throws SpecParserException
feature - The feature to create
SpecParserException - When the Require or Optional tag is not valid| Method Detail |
|---|
public String getName()
public com.google.common.collect.Multimap<String,String> getParams()
public String getParam(String key)
public Collection<String> getParamCollection(String key)
public boolean getRequired()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||