Package org.apache.juneau.rest.beans
Class ResourceDescription
java.lang.Object
org.apache.juneau.rest.beans.ResourceDescription
- All Implemented Interfaces:
- Comparable<ResourceDescription>
@Bean(properties="name,description",
      findFluentSetters=true)
@Response(schema=@Schema(ignore=true))
public class ResourceDescription
extends Object
implements Comparable<ResourceDescription>
Shortcut label for child resources.
 
Typically used in router resources.
Example:
   
See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionNo-arg constructor.ResourceDescription(String name, String description) Constructor for when the name and uri are the same.ResourceDescription(String name, String uri, String description) Constructor for when the name and uri are different.
- 
Method SummaryModifier and TypeMethodDescriptionintdescription(String description) Sets the description field on this label to a new value.booleanReturns the description field on this label.getName()Returns the name field on this label.getUri()Returns the uri on this label.inthashCode()Sets the name field on this label to a new value.Sets the uri field on this label to a new value.
- 
Constructor Details- 
ResourceDescriptionConstructor for when the name and uri are the same.- Parameters:
- name- The name of the child resource.
- description- The description of the child resource.
 
- 
ResourceDescriptionConstructor for when the name and uri are different.- Parameters:
- name- The name of the child resource.
- uri- The uri of the child resource.
- description- The description of the child resource.
 
- 
ResourceDescriptionpublic ResourceDescription()No-arg constructor. Used for JUnit testing of OPTIONS pages.
 
- 
- 
Method Details- 
getNameReturns the name field on this label.- Returns:
- The name.
 
- 
getUriReturns the uri on this label.- Returns:
- The name.
 
- 
nameSets the name field on this label to a new value.- Parameters:
- name- The new name.
- Returns:
- This object.
 
- 
getDescriptionReturns the description field on this label.- Returns:
- The description.
 
- 
descriptionSets the description field on this label to a new value.- Parameters:
- description- The new description.
- Returns:
- This object.
 
- 
uriSets the uri field on this label to a new value.- Parameters:
- uri- The new uri.
- Returns:
- This object.
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<ResourceDescription>
 
- 
equals
- 
hashCode
 
-