@Bean(bpi="name,description", fluentSetters=true) @Response(schema=@Schema(ignore=true)) public final class ResourceDescription extends Object implements Comparable<ResourceDescription>
Typically used in router resources.
Constructor and Description |
---|
ResourceDescription()
No-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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ResourceDescription o) |
ResourceDescription |
description(String description)
Sets the description field on this label to a new value.
|
boolean |
equals(Object o) |
String |
getDescription()
Returns the description field on this label.
|
String |
getName()
Returns the name field on this label.
|
String |
getUri()
Returns the uri on this label.
|
int |
hashCode() |
ResourceDescription |
name(String name)
Sets the name field on this label to a new value.
|
ResourceDescription |
uri(String uri)
Sets the uri field on this label to a new value.
|
public ResourceDescription(String name, String description)
name
- The name of the child resource.description
- The description of the child resource.public ResourceDescription(String name, String uri, String description)
name
- The name of the child resource.uri
- The uri of the child resource.description
- The description of the child resource.public ResourceDescription()
@Html(link="servlet:/{uri}") public String getName()
public ResourceDescription name(String name)
name
- The new name.public String getDescription()
public ResourceDescription description(String description)
description
- The new description.public ResourceDescription uri(String uri)
uri
- The new uri.public int compareTo(ResourceDescription o)
compareTo
in interface Comparable<ResourceDescription>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.