Class ResourceRefTypeImpl<T>

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

    public class ResourceRefTypeImpl<T>
    extends Object
    implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceRefType<T>
    This class implements the resource-refType xsd type
    • Constructor Detail

      • ResourceRefTypeImpl

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

        public ResourceRefTypeImpl​(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 ResourceRefType<T> description​(String... values)
        Creates for all String objects representing description elements, a new description element
        Specified by:
        description in interface ResourceRefType<T>
        Parameters:
        values - list of description objects
        Returns:
        the current instance of ResourceRefType
      • resRefName

        public ResourceRefType<T> resRefName​(String resRefName)
        Sets the res-ref-name element
        Specified by:
        resRefName in interface ResourceRefType<T>
        Parameters:
        resRefName - the value for the element res-ref-name
        Returns:
        the current instance of ResourceRefType
      • getResRefName

        public String getResRefName()
        Returns the res-ref-name element
        Specified by:
        getResRefName in interface ResourceRefType<T>
        Returns:
        the node defined for the element res-ref-name
      • resType

        public ResourceRefType<T> resType​(String resType)
        Sets the res-type element
        Specified by:
        resType in interface ResourceRefType<T>
        Parameters:
        resType - the value for the element res-type
        Returns:
        the current instance of ResourceRefType
      • getResType

        public String getResType()
        Returns the res-type element
        Specified by:
        getResType in interface ResourceRefType<T>
        Returns:
        the node defined for the element res-type
      • resAuth

        public ResourceRefType<T> resAuth​(ResAuthType resAuth)
        Sets the res-auth element
        Specified by:
        resAuth in interface ResourceRefType<T>
        Parameters:
        resAuth - the value for the element res-auth
        Returns:
        the current instance of ResourceRefType
      • resAuth

        public ResourceRefType<T> resAuth​(String resAuth)
        Sets the res-auth element
        Specified by:
        resAuth in interface ResourceRefType<T>
        Parameters:
        resAuth - the value for the element res-auth
        Returns:
        the current instance of ResourceRefType
      • getResAuthAsString

        public String getResAuthAsString()
        Returns the res-auth element
        Specified by:
        getResAuthAsString in interface ResourceRefType<T>
        Returns:
        the value found for the element res-auth
      • resSharingScope

        public ResourceRefType<T> resSharingScope​(String resSharingScope)
        Sets the res-sharing-scope element
        Specified by:
        resSharingScope in interface ResourceRefType<T>
        Parameters:
        resSharingScope - the value for the element res-sharing-scope
        Returns:
        the current instance of ResourceRefType
      • getResSharingScopeAsString

        public String getResSharingScopeAsString()
        Returns the res-sharing-scope element
        Specified by:
        getResSharingScopeAsString in interface ResourceRefType<T>
        Returns:
        the value found for the element res-sharing-scope
      • id

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

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