public class Attribute extends Object implements Serializable
Constructor and Description |
---|
Attribute()
Set default values.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAliases()
Returns the List of alias Strings.
|
String |
getCatalogId()
Get the Catalog Id this attribute is associated with.
|
Set<Constraint> |
getConstraints()
Returns the constraints on this attribute.
|
DataType |
getDataType()
Returns the data type of this attribute.
|
String |
getDescription()
Returns the description of the attribute.
|
String |
getDisplayName()
Returns the name used when displaying the attribute.
|
Set<String> |
getExamples()
Returns the List of example Strings.
|
Long |
getId()
Return the attribute's id.
|
String |
getName()
Returns the name of the AttributeDto.
|
boolean |
isIndexed()
Identifies whether this attribute is an index.
|
boolean |
isRequestContext()
Returns whether this attribute is part of the RequestContext.
|
boolean |
isRequired()
Returns whether this attribute is required.
|
boolean |
isSortable()
Returns whether a sort may be performed on this attribute.
|
Attribute |
setAliases(Set<String> aliases)
Sets List of alias Strings.
|
void |
setCatalogId(String catalogId)
Set the catalog id this attribute is associated with.
|
Attribute |
setConstraints(Set<Constraint> constraints)
Sets the Constraints onf the attribute.
|
Attribute |
setDataType(DataType dataType)
Set the data type of the attribute.
|
Attribute |
setDescription(String description)
Set the description of the attribute.
|
Attribute |
setDisplayName(String name)
Set the name to be displayed for this attribute.
|
Attribute |
setExamples(Set<String> examples)
Sets the List of example Strings.
|
void |
setId(Long id)
Set the Attribute's id.
|
Attribute |
setIndexed(boolean indexed)
Set whether this attribute is an index.
|
Attribute |
setName(String name)
Set the name of the AttributeDto.
|
Attribute |
setRequestContext(boolean isRequestContext)
Set whether this attribute is part of the RequestContext.
|
Attribute |
setRequired(boolean required)
Set whether this attribute is required.
|
Attribute |
setSortable(boolean sortable)
Set whether a sort may be performed on this attribute.
|
String |
toString() |
public Long getId()
public void setId(Long id)
id
- the Attribute's id.public String getName()
public Attribute setName(String name)
name
- the name of the attribute.public String getDisplayName()
public Attribute setDisplayName(String name)
name
- the display name for the attribute.public String getDescription()
public Attribute setDescription(String description)
description
- the description of the attribute.public DataType getDataType()
public Attribute setDataType(DataType dataType)
dataType
- the data type of the attribute.public boolean isIndexed()
public Attribute setIndexed(boolean indexed)
indexed
- true if this attribute is an index, false otherwise.public boolean isSortable()
public Attribute setSortable(boolean sortable)
sortable
- true if a sort may be performed on this attribute, false otherwise.public boolean isRequired()
public Attribute setRequired(boolean required)
required
- true if this attribute is required, false otherwise.public boolean isRequestContext()
public Attribute setRequestContext(boolean isRequestContext)
isRequestContext
- true if this attribute is part of the RequestContext, false otherwise.public Set<String> getExamples()
public Attribute setExamples(Set<String> examples)
examples
- the List of example Strings.public Set<String> getAliases()
public Attribute setAliases(Set<String> aliases)
aliases
- The List of alias Strings.public Set<Constraint> getConstraints()
public Attribute setConstraints(Set<Constraint> constraints)
constraints
- The List of constraints.public String getCatalogId()
public void setCatalogId(String catalogId)
catalogId
- The catalog id or null.Copyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Apache Log4j Audit, Log4j, Log4j Audit, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.