public class Feature extends Object
| Modifier and Type | Field and Description |
|---|---|
static Feature |
CORE_FEATURE |
static Feature |
SECURITY_TOKEN_FEATURE |
| Constructor and Description |
|---|
Feature(Element feature)
Creates a new Feature from an xml node.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final Feature CORE_FEATURE
public static final Feature SECURITY_TOKEN_FEATURE
public Feature(Element feature) throws SpecParserException
feature - The feature to createSpecParserException - When the Require or Optional tag is not validpublic String getName()
public String getParam(String key)
public Collection<String> getParamCollection(String key)
public boolean getRequired()
Copyright © 2007-2012. All Rights Reserved.