Class ParamValueTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.ParamValueTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ParamValueType<T>
public class ParamValueTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ParamValueType<T>
This class implements theparam-valueTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ParamValueTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ParamValueTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParamValueType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsStringgetId()Returns theidattributeStringgetParamName()Returns theparam-nameelementStringgetParamValue()Returns theparam-valueelementParamValueType<T>id(String id)Sets theidattributeParamValueType<T>paramName(String paramName)Sets theparam-nameelementParamValueType<T>paramValue(String paramValue)Sets theparam-valueelementParamValueType<T>removeAllDescription()Removes thedescriptionelementParamValueType<T>removeId()Removes theidattributeParamValueType<T>removeParamName()Removes theparam-nameelementParamValueType<T>removeParamValue()Removes theparam-valueelementTup()
-
-
-
Method Detail
-
description
public ParamValueType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceParamValueType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ParamValueType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceParamValueType<T>- Returns:
- list of
description
-
removeAllDescription
public ParamValueType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceParamValueType<T>- Returns:
- the current instance of
ParamValueType
-
paramName
public ParamValueType<T> paramName(String paramName)
Sets theparam-nameelement- Specified by:
paramNamein interfaceParamValueType<T>- Parameters:
paramName- the value for the elementparam-name- Returns:
- the current instance of
ParamValueType
-
getParamName
public String getParamName()
Returns theparam-nameelement- Specified by:
getParamNamein interfaceParamValueType<T>- Returns:
- the node defined for the element
param-name
-
removeParamName
public ParamValueType<T> removeParamName()
Removes theparam-nameelement- Specified by:
removeParamNamein interfaceParamValueType<T>- Returns:
- the current instance of
ParamValueType
-
paramValue
public ParamValueType<T> paramValue(String paramValue)
Sets theparam-valueelement- Specified by:
paramValuein interfaceParamValueType<T>- Parameters:
paramValue- the value for the elementparam-value- Returns:
- the current instance of
ParamValueType
-
getParamValue
public String getParamValue()
Returns theparam-valueelement- Specified by:
getParamValuein interfaceParamValueType<T>- Returns:
- the node defined for the element
param-value
-
removeParamValue
public ParamValueType<T> removeParamValue()
Removes theparam-valueelement- Specified by:
removeParamValuein interfaceParamValueType<T>- Returns:
- the current instance of
ParamValueType
-
id
public ParamValueType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceParamValueType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ParamValueType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceParamValueType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ParamValueType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceParamValueType<T>- Returns:
- the current instance of
ParamValueType
-
-