@Bean(properties="name,description") public class NameDescription extends Object
name
and description
properties.
Primarily used for constructing tables with name/description columns on REST OPTIONS requests.
Constructor and Description |
---|
NameDescription()
No-arg constructor.
|
NameDescription(Object name,
Object description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
NameDescription |
description(Object description)
Sets the description field on this label to a new value.
|
Object |
getDescription()
Returns the description field on this label.
|
Object |
getName()
Returns the name field on this label.
|
NameDescription |
name(Object name)
Sets the name field on this label to a new value.
|
public NameDescription()
public NameDescription(Object name, Object description)
name
- A name.description
- A description.@BeanProperty public NameDescription name(Object name)
name
- The new name.public Object getDescription()
@BeanProperty public NameDescription description(Object description)
description
- The new description.Copyright © 2018 Apache. All rights reserved.