public interface IAttributeDefinition
Modifier and Type | Interface and Description |
---|---|
static class |
IAttributeDefinition.Aggregate
Supported aggregate types
|
static class |
IAttributeDefinition.AttributeType
Supported attribute types
|
Modifier and Type | Method and Description |
---|---|
IAttributeDefinition |
aggregate(IAttributeDefinition.Aggregate aggregate)
Aggregate objects
|
Object |
coerce(Object value)
Attempt to convert the value into this type
|
IAttributeDefinition |
downcast(IAssetType assetType)
Downcast current object
|
IAttributeDefinition |
filter(IFilterTerm filter)
Add filter to object
|
IAssetType |
getAssetType()
Get asset type information to this attribute
|
IAttributeDefinition.AttributeType |
getAttributeType()
Get type of attribute
|
IAttributeDefinition |
getBase()
Get base attribute information
|
String |
getDisplayName()
Get attribute display name
|
String |
getName()
Get attribute name
|
IAssetType |
getRelatedAsset()
Get type information for related asset if this attribute is a relation
|
String |
getToken()
Get attribute token
|
boolean |
isMultiValue()
Does this attribute support multiple values
|
boolean |
isReadOnly()
Is this attribute read-only
|
boolean |
isRequired()
Is this a required attribute
|
IAttributeDefinition |
join(IAttributeDefinition joined)
Join current token with new
|
Object coerce(Object value) throws V1Exception
value
- - value to coerceV1Exception
- - if the value cannot be convertedIAssetType getAssetType() throws MetaException
MetaException
- - MetaExceptionString getName()
String getDisplayName()
String getToken()
IAttributeDefinition.AttributeType getAttributeType()
IAttributeDefinition getBase() throws MetaException
MetaException
- if there is no baseboolean isReadOnly()
boolean isRequired()
boolean isMultiValue()
IAssetType getRelatedAsset() throws MetaException
MetaException
- - if we cannot get the Asset Type informationIAttributeDefinition downcast(IAssetType assetType)
assetType
- IAssetType for asset defined in tokenIAttributeDefinition filter(IFilterTerm filter) throws APIException
filter
- filter for addingAPIException
- if filter has incorrect statementIAttributeDefinition join(IAttributeDefinition joined)
joined
- Object with token for joiningIAttributeDefinition aggregate(IAttributeDefinition.Aggregate aggregate)
aggregate
- rule for AggregatingCopyright © 2015 VersionOne, Inc.. All rights reserved.