Interface RunAsType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
RunAsTypeImpl
public interface RunAsType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for therun-asTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RunAsType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsStringgetId()Returns theidattributeStringgetRoleName()Returns therole-nameelementRunAsType<T>id(String id)Sets theidattributeRunAsType<T>removeAllDescription()Removes thedescriptionelementRunAsType<T>removeId()Removes theidattributeRunAsType<T>removeRoleName()Removes therole-nameelementRunAsType<T>roleName(String roleName)Sets therole-nameelement
-
-
-
Method Detail
-
description
RunAsType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
RunAsType
-
getAllDescription
List<String> getAllDescription()
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
RunAsType<T> removeAllDescription()
Removes thedescriptionelement- Returns:
- the current instance of
RunAsType
-
roleName
RunAsType<T> roleName(String roleName)
Sets therole-nameelement- Parameters:
roleName- the value for the elementrole-name- Returns:
- the current instance of
RunAsType
-
getRoleName
String getRoleName()
Returns therole-nameelement- Returns:
- the node defined for the element
role-name
-
removeRoleName
RunAsType<T> removeRoleName()
Removes therole-nameelement- Returns:
- the current instance of
RunAsType
-
id
RunAsType<T> id(String id)
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
RunAsType
-
getId
String getId()
Returns theidattribute- Returns:
- the value defined for the attribute
id
-
-