@Bean(properties="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.
|
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.
|
int |
hashCode() |
ResourceDescription |
name(String name)
Sets the name 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()
@Html(link="servlet:/{name}") 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 int compareTo(ResourceDescription o)
compareTo
in interface Comparable<ResourceDescription>
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.