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 the run-asType xsd type
    • Method Detail

      • description

        RunAsType<T> description​(String... values)
        Creates for all String objects representing description elements, a new description element
        Parameters:
        values - list of description objects
        Returns:
        the current instance of RunAsType
      • getAllDescription

        List<String> getAllDescription()
        Returns all description elements
        Returns:
        list of description
      • removeAllDescription

        RunAsType<T> removeAllDescription()
        Removes the description element
        Returns:
        the current instance of RunAsType
      • roleName

        RunAsType<T> roleName​(String roleName)
        Sets the role-name element
        Parameters:
        roleName - the value for the element role-name
        Returns:
        the current instance of RunAsType
      • getRoleName

        String getRoleName()
        Returns the role-name element
        Returns:
        the node defined for the element role-name
      • removeRoleName

        RunAsType<T> removeRoleName()
        Removes the role-name element
        Returns:
        the current instance of RunAsType
      • id

        RunAsType<T> id​(String id)
        Sets the id attribute
        Parameters:
        id - the value for the attribute id
        Returns:
        the current instance of RunAsType
      • getId

        String getId()
        Returns the id attribute
        Returns:
        the value defined for the attribute id
      • removeId

        RunAsType<T> removeId()
        Removes the id attribute
        Returns:
        the current instance of RunAsType