@Deprecated public class ResourceInfo extends DocumentedInfo
Constructor and Description |
---|
ResourceInfo()
Deprecated.
Constructor.
|
ResourceInfo(DocumentationInfo documentation)
Deprecated.
Constructor with a single documentation element.
|
ResourceInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.
Constructor with a list of documentation elements.
|
ResourceInfo(java.lang.String documentation)
Deprecated.
Constructor with a single documentation element.
|
Modifier and Type | Method and Description |
---|---|
ApplicationInfo |
createApplication()
Deprecated.
Creates an application descriptor that wraps this resource descriptor.
|
static void |
describe(ApplicationInfo applicationInfo,
ResourceInfo info,
java.lang.Object resource,
java.lang.String path)
Deprecated.
Returns a WADL description of the current resource.
|
java.util.List<ResourceInfo> |
getChildResources()
Deprecated.
Returns the list of child resources.
|
java.lang.String |
getIdentifier()
Deprecated.
Returns the identifier for that element.
|
java.util.List<MethodInfo> |
getMethods()
Deprecated.
Returns the list of supported methods.
|
java.util.List<ParameterInfo> |
getParameters()
Deprecated.
Returns the list of parameters.
|
java.lang.String |
getPath()
Deprecated.
Returns the URI template for the identifier of the resource.
|
MediaType |
getQueryType()
Deprecated.
Returns the media type for the query component of the resource URI.
|
java.util.List<Reference> |
getType()
Deprecated.
Returns the list of references to resource type elements.
|
void |
setChildResources(java.util.List<ResourceInfo> resources)
Deprecated.
Sets the list of child resources.
|
void |
setIdentifier(java.lang.String identifier)
Deprecated.
Sets the identifier for that element.
|
void |
setMethods(java.util.List<MethodInfo> methods)
Deprecated.
Sets the list of supported methods.
|
void |
setParameters(java.util.List<ParameterInfo> parameters)
Deprecated.
Sets the list of parameters.
|
void |
setPath(java.lang.String path)
Deprecated.
Sets the URI template for the identifier of the resource.
|
void |
setQueryType(MediaType queryType)
Deprecated.
Sets the media type for the query component of the resource URI.
|
void |
setType(java.util.List<Reference> type)
Deprecated.
Sets the list of references to resource type elements.
|
void |
updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Deprecated.
Completes the given map of namespaces with the namespaces used in the
documentation elements.
|
void |
writeElement(XmlWriter writer)
Deprecated.
Writes the current object as an XML element using the given SAX writer.
|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
public ResourceInfo()
public ResourceInfo(DocumentationInfo documentation)
documentation
- A single documentation element.public ResourceInfo(java.util.List<DocumentationInfo> documentations)
documentations
- The list of documentation elements.public ResourceInfo(java.lang.String documentation)
documentation
- A single documentation element.public static void describe(ApplicationInfo applicationInfo, ResourceInfo info, java.lang.Object resource, java.lang.String path)
applicationInfo
- The parent application.resource
- The resource to describe.path
- Path of the current resource.info
- WADL description of the current resource to update.public ApplicationInfo createApplication()
public java.util.List<ResourceInfo> getChildResources()
public java.lang.String getIdentifier()
public java.util.List<MethodInfo> getMethods()
public java.util.List<ParameterInfo> getParameters()
public java.lang.String getPath()
public MediaType getQueryType()
public java.util.List<Reference> getType()
public void setChildResources(java.util.List<ResourceInfo> resources)
resources
- The list of child resources.public void setIdentifier(java.lang.String identifier)
identifier
- The identifier for that element.public void setMethods(java.util.List<MethodInfo> methods)
methods
- The list of supported methods.public void setParameters(java.util.List<ParameterInfo> parameters)
parameters
- The list of parameters.public void setPath(java.lang.String path)
path
- The URI template for the identifier of the resource.public void setQueryType(MediaType queryType)
queryType
- The media type for the query component of the resource URI.public void setType(java.util.List<Reference> type)
type
- The list of references to resource type elements.public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.org.xml.sax.SAXException
Copyright © 2005-2024 Restlet.