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 final class ResourceDescription
extends Object
implements Comparable<ResourceDescription>
Shortcut label for child resources.
Typically used in router resources.
Example:
See Also:
-
Constructor Summary
ConstructorDescriptionNo-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 TypeMethodDescriptionint
description
(String description) Sets the description field on this label to a new value.boolean
Returns the description field on this label.getName()
Returns the name field on this label.getUri()
Returns the uri on this label.int
hashCode()
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
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.
-
ResourceDescription
public ResourceDescription()No-arg constructor. Used for JUnit testing of OPTIONS pages.
-
-
Method Details
-
getName
Returns the name field on this label.- Returns:
- The name.
-
getUri
Returns the uri on this label.- Returns:
- The name.
-
name
Sets the name field on this label to a new value.- Parameters:
name
- The new name.- Returns:
- This object.
-
getDescription
Returns the description field on this label.- Returns:
- The description.
-
description
Sets the description field on this label to a new value.- Parameters:
description
- The new description.- Returns:
- This object.
-
uri
Sets the uri field on this label to a new value.- Parameters:
uri
- The new uri.- Returns:
- This object.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ResourceDescription>
-
equals
-
hashCode
-