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 Summary
ConstructorsConstructorDescriptionNo-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 Summary
Modifier 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
-
ResourceDescription
public ResourceDescription()No-arg constructor. Used for JUnit testing of OPTIONS pages. -
ResourceDescription
Constructor for when the name and uri are the same.- Parameters:
name- The name of the child resource.description- The description of the child resource.
-
ResourceDescription
Constructor 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.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ResourceDescription>
-
description
Sets the description field on this label to a new value.- Parameters:
description- The new description.- Returns:
- This object.
-
equals
-
getDescription
Returns the description field on this label.- Returns:
- The description.
-
getName
Returns the name field on this label.- Returns:
- The name.
-
getUri
Returns the uri on this label.- Returns:
- The name.
-
hashCode
-
name
Sets the name field on this label to a new value.- Parameters:
name- The new name.- Returns:
- This object.
-
uri
Sets the uri field on this label to a new value.- Parameters:
uri- The new uri.- Returns:
- This object.
-