@Entity public class TermSpecificationBo extends Object implements TermSpecificationDefinitionContract, Serializable
Constructor and Description |
---|
TermSpecificationBo() |
Modifier and Type | Method and Description |
---|---|
static TermSpecificationBo |
from(TermSpecificationDefinition im)
Converts a immutable object to it's mutable bo counterpart
|
boolean |
getActive() |
List<CategoryBo> |
getCategories()
Gets an ordered list of the categories which this term specification
definition belongs to.
|
List<String> |
getContextIds()
Gets a list of the IDs for the contexts this TermSpecification can be used in.
|
List<ContextBo> |
getContexts() |
List<ContextValidTermBo> |
getContextValidTerms() |
String |
getDescription()
Gets the description for this term specification, which will typically be a suitable description for
any term having this specification as well.
|
String |
getId()
The unique identifier for an object.
|
String |
getName()
Gets the name for this
TermSpecificationDefinitionContract . |
String |
getNamespace()
Gets the namespace of this
TermSpecificationDefinitionContract . |
String |
getType()
Gets the fully qualified class name for the values of any term having this specification.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setCategories(List<CategoryBo> categories) |
void |
setContextIds(List<String> contextIds) |
void |
setContexts(List<ContextBo> contexts) |
void |
setContextValidTerms(List<ContextValidTermBo> contextValidTerms) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setName(String name) |
void |
setNamespace(String namespace) |
void |
setType(String type) |
void |
setVersionNumber(Long versionNumber) |
static TermSpecificationDefinition |
to(TermSpecificationBo bo)
Converts a mutable bo to it's immutable counterpart
|
public TermSpecificationBo()
public static TermSpecificationDefinition to(TermSpecificationBo bo)
bo
- the mutable business objectpublic static TermSpecificationBo from(TermSpecificationDefinition im)
im
- immutable objectpublic String getId()
Identifiable
getId
in interface Identifiable
public String getName()
TermSpecificationDefinitionContract
TermSpecificationDefinitionContract
. This is an important key
that must be unique within a namespace, and is used to determine how to resolve any terms
having this specification. Will not be null or empty.getName
in interface TermSpecificationDefinitionContract
public String getNamespace()
TermSpecificationDefinitionContract
TermSpecificationDefinitionContract
. Will not be null or empty.getNamespace
in interface TermSpecificationDefinitionContract
public void setNamespace(String namespace)
public String getType()
TermSpecificationDefinitionContract
BigDecimal
,
then the term specification's type would be the String "java.math.BigDecimal". Will never return null or
the empty string.getType
in interface TermSpecificationDefinitionContract
public String getDescription()
TermSpecificationDefinitionContract
getDescription
in interface TermSpecificationDefinitionContract
public void setDescription(String description)
public boolean getActive()
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public List<CategoryBo> getCategories()
TermSpecificationDefinitionContract
getCategories
in interface TermSpecificationDefinitionContract
public void setCategories(List<CategoryBo> categories)
public List<String> getContextIds()
TermSpecificationDefinitionContract
getContextIds
in interface TermSpecificationDefinitionContract
public void setContextIds(List<String> contextIds)
public List<ContextBo> getContexts()
public void setContexts(List<ContextBo> contexts)
public List<ContextValidTermBo> getContextValidTerms()
public void setContextValidTerms(List<ContextValidTermBo> contextValidTerms)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.