Class ResourceInfo


  • @Deprecated
    public class ResourceInfo
    extends DocumentedInfo
    Deprecated.
    Will be removed in next major release.
    Describes a class of closely related resources.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<ResourceInfo> childResources
      Deprecated.
      List of child resources.
      private java.lang.String identifier
      Deprecated.
      Identifier for that element.
      private java.util.List<MethodInfo> methods
      Deprecated.
      List of supported methods.
      private java.util.List<ParameterInfo> parameters
      Deprecated.
      List of parameters.
      private java.lang.String path
      Deprecated.
      URI template for the identifier of the resource.
      private MediaType queryType
      Deprecated.
      Media type for the query component of the resource URI.
      private java.util.List<Reference> type
      Deprecated.
      List of references to resource type elements.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceInfo()
      Deprecated.
      Constructor.
      ResourceInfo​(java.lang.String documentation)
      Deprecated.
      Constructor with a single documentation element.
      ResourceInfo​(java.util.List<DocumentationInfo> documentations)
      Deprecated.
      Constructor with a list of documentation elements.
      ResourceInfo​(DocumentationInfo documentation)
      Deprecated.
      Constructor with a single documentation element.
    • Field Detail

      • childResources

        private java.util.List<ResourceInfo> childResources
        Deprecated.
        List of child resources.
      • identifier

        private java.lang.String identifier
        Deprecated.
        Identifier for that element.
      • methods

        private java.util.List<MethodInfo> methods
        Deprecated.
        List of supported methods.
      • parameters

        private java.util.List<ParameterInfo> parameters
        Deprecated.
        List of parameters.
      • path

        private java.lang.String path
        Deprecated.
        URI template for the identifier of the resource.
      • queryType

        private MediaType queryType
        Deprecated.
        Media type for the query component of the resource URI.
      • type

        private java.util.List<Reference> type
        Deprecated.
        List of references to resource type elements.
    • Constructor Detail

      • ResourceInfo

        public ResourceInfo()
        Deprecated.
        Constructor.
      • ResourceInfo

        public ResourceInfo​(DocumentationInfo documentation)
        Deprecated.
        Constructor with a single documentation element.
        Parameters:
        documentation - A single documentation element.
      • ResourceInfo

        public ResourceInfo​(java.util.List<DocumentationInfo> documentations)
        Deprecated.
        Constructor with a list of documentation elements.
        Parameters:
        documentations - The list of documentation elements.
      • ResourceInfo

        public ResourceInfo​(java.lang.String documentation)
        Deprecated.
        Constructor with a single documentation element.
        Parameters:
        documentation - A single documentation element.
    • Method Detail

      • describe

        public static void describe​(ApplicationInfo applicationInfo,
                                    ResourceInfo info,
                                    java.lang.Object resource,
                                    java.lang.String path)
        Deprecated.
        Returns a WADL description of the current resource.
        Parameters:
        applicationInfo - The parent application.
        resource - The resource to describe.
        path - Path of the current resource.
        info - WADL description of the current resource to update.
      • createApplication

        public ApplicationInfo createApplication()
        Deprecated.
        Creates an application descriptor that wraps this resource descriptor. The title of the resource, that is to say the title of its first documentation tag is transfered to the title of the first documentation tag of the main application tag.
        Returns:
        The new application descriptor.
      • getChildResources

        public java.util.List<ResourceInfo> getChildResources()
        Deprecated.
        Returns the list of child resources.
        Returns:
        The list of child resources.
      • getIdentifier

        public java.lang.String getIdentifier()
        Deprecated.
        Returns the identifier for that element.
        Returns:
        The identifier for that element.
      • getMethods

        public java.util.List<MethodInfo> getMethods()
        Deprecated.
        Returns the list of supported methods.
        Returns:
        The list of supported methods.
      • getParameters

        public java.util.List<ParameterInfo> getParameters()
        Deprecated.
        Returns the list of parameters.
        Returns:
        The list of parameters.
      • getPath

        public java.lang.String getPath()
        Deprecated.
        Returns the URI template for the identifier of the resource.
        Returns:
        The URI template for the identifier of the resource.
      • getQueryType

        public MediaType getQueryType()
        Deprecated.
        Returns the media type for the query component of the resource URI.
        Returns:
        The media type for the query component of the resource URI.
      • getType

        public java.util.List<Reference> getType()
        Deprecated.
        Returns the list of references to resource type elements.
        Returns:
        The list of references to resource type elements.
      • setChildResources

        public void setChildResources​(java.util.List<ResourceInfo> resources)
        Deprecated.
        Sets the list of child resources.
        Parameters:
        resources - The list of child resources.
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)
        Deprecated.
        Sets the identifier for that element.
        Parameters:
        identifier - The identifier for that element.
      • setMethods

        public void setMethods​(java.util.List<MethodInfo> methods)
        Deprecated.
        Sets the list of supported methods.
        Parameters:
        methods - The list of supported methods.
      • setParameters

        public void setParameters​(java.util.List<ParameterInfo> parameters)
        Deprecated.
        Sets the list of parameters.
        Parameters:
        parameters - The list of parameters.
      • setPath

        public void setPath​(java.lang.String path)
        Deprecated.
        Sets the URI template for the identifier of the resource.
        Parameters:
        path - The URI template for the identifier of the resource.
      • setQueryType

        public void setQueryType​(MediaType queryType)
        Deprecated.
        Sets the media type for the query component of the resource URI.
        Parameters:
        queryType - The media type for the query component of the resource URI.
      • setType

        public void setType​(java.util.List<Reference> type)
        Deprecated.
        Sets the list of references to resource type elements.
        Parameters:
        type - The list of references to resource type elements.
      • updateNamespaces

        public void updateNamespaces​(java.util.Map<java.lang.String,​java.lang.String> namespaces)
        Deprecated.
        Description copied from class: DocumentedInfo
        Completes the given map of namespaces with the namespaces used in the documentation elements. The key is the URI of the namespace and the value, the prefix.
        Specified by:
        updateNamespaces in class DocumentedInfo
        Parameters:
        namespaces - The given map of namespaces to complete.
      • writeElement

        public void writeElement​(XmlWriter writer)
                          throws org.xml.sax.SAXException
        Deprecated.
        Writes the current object as an XML element using the given SAX writer.
        Parameters:
        writer - The SAX writer.
        Throws:
        org.xml.sax.SAXException