@Bean(typeName="category") public class Category extends Common
atomCategory = element atom:category { atomCommonAttributes, attribute term { text }, attribute scheme { atomUri }?, attribute label { text }?, undefinedContent }
Constructor and Description |
---|
Category()
Bean constructor.
|
Category(String term)
Normal constructor.
|
Modifier and Type | Method and Description |
---|---|
Category |
base(Object base)
Sets the URI base of this object.
|
String |
getLabel()
Returns the category label.
|
URI |
getScheme()
Returns the category scheme.
|
String |
getTerm() |
Category |
label(String label)
Sets the category label.
|
Category |
lang(String lang)
Sets the language of this object.
|
Category |
scheme(Object scheme)
Sets the category scheme.
|
Category |
term(String term)
Sets the category term.
|
public Category()
@BeanProperty(value="term") public Category term(String term)
term
- The category term.@Xml(format=ATTR) public URI getScheme()
@BeanProperty(value="scheme") public Category scheme(Object scheme)
The value can be of any of the following types: URI
, URL
, String
.
Strings must be valid URIs.
URIs defined by UriResolver
can be used for values.
scheme
- The category scheme.@Xml(format=ATTR) public String getLabel()
@BeanProperty(value="label") public Category label(String label)
label
- The category label.public Category base(Object base)
Common
The value can be of any of the following types: URI
, URL
, String
.
Strings must be valid URIs.
URIs defined by UriResolver
can be used for values.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.