Class RunAsTypeImpl<T>

  • All Implemented Interfaces:
    org.jboss.shrinkwrap.descriptor.api.Child<T>, RunAsType<T>

    public class RunAsTypeImpl<T>
    extends Object
    implements org.jboss.shrinkwrap.descriptor.api.Child<T>, RunAsType<T>
    This class implements the run-asType xsd type
    • Constructor Detail

      • RunAsTypeImpl

        public RunAsTypeImpl​(T t,
                             String nodeName,
                             org.jboss.shrinkwrap.descriptor.spi.node.Node node)
      • RunAsTypeImpl

        public RunAsTypeImpl​(T t,
                             String nodeName,
                             org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                             org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
    • Method Detail

      • up

        public T up()
        Specified by:
        up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
      • description

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

        public RunAsType<T> removeAllDescription()
        Removes the description element
        Specified by:
        removeAllDescription in interface RunAsType<T>
        Returns:
        the current instance of RunAsType
      • roleName

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

        public String getRoleName()
        Returns the role-name element
        Specified by:
        getRoleName in interface RunAsType<T>
        Returns:
        the node defined for the element role-name
      • removeRoleName

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

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

        public String getId()
        Returns the id attribute
        Specified by:
        getId in interface RunAsType<T>
        Returns:
        the value defined for the attribute id
      • removeId

        public RunAsType<T> removeId()
        Removes the id attribute
        Specified by:
        removeId in interface RunAsType<T>
        Returns:
        the current instance of RunAsType