org.databene.model.data
Class InstanceDescriptor

java.lang.Object
  extended by org.databene.model.data.FeatureDescriptor
      extended by org.databene.model.data.InstanceDescriptor
All Implemented Interfaces:
org.databene.commons.Named
Direct Known Subclasses:
ComponentDescriptor, VariableDescriptor

public class InstanceDescriptor
extends FeatureDescriptor

Describes generation of (several) entities of a type by uniqueness, nullability and count characteristics.

Created: 03.03.2008 07:55:45

Since:
0.5.0
Author:
Volker Bergmann

Field Summary
static java.lang.String CONTAINER
           
static java.lang.String COUNT
           
static java.lang.String COUNT_DISTRIBUTION
           
static java.lang.String COUNT_GRANULARITY
           
static java.lang.String MAX_COUNT
           
static java.lang.String MIN_COUNT
           
static java.lang.String MODE
           
static java.lang.String NULL_QUOTA
           
static java.lang.String NULLABLE
           
static java.lang.String TYPE
           
static java.lang.String UNIQUE
           
 
Fields inherited from class org.databene.model.data.FeatureDescriptor
details, NAME, provider
 
Constructor Summary
  InstanceDescriptor(java.lang.String name, DescriptorProvider provider)
           
  InstanceDescriptor(java.lang.String name, DescriptorProvider provider, java.lang.String typeName)
           
protected InstanceDescriptor(java.lang.String name, DescriptorProvider provider, java.lang.String typeName, TypeDescriptor localType)
           
  InstanceDescriptor(java.lang.String name, DescriptorProvider provider, TypeDescriptor localType)
           
 
Method Summary
 java.lang.String getContainer()
           
 org.databene.script.Expression<java.lang.Long> getCount()
           
 java.lang.String getCountDistribution()
           
 org.databene.script.Expression<java.lang.Long> getCountGranularity()
           
 java.lang.Object getDetailValue(java.lang.String name)
           
 TypeDescriptor getLocalType()
           
 TypeDescriptor getLocalType(boolean complexType)
           
 org.databene.script.Expression<java.lang.Long> getMaxCount()
           
 org.databene.script.Expression<java.lang.Long> getMinCount()
           
 Mode getMode()
           
 java.lang.String getName()
           
 java.lang.Double getNullQuota()
           
 java.lang.String getType()
           
 TypeDescriptor getTypeDescriptor()
           
 Uniqueness getUniqueness()
           
 java.lang.Boolean isNullable()
           
 java.lang.Boolean isUnique()
           
 boolean overwritesParent()
           
 void setContainer(java.lang.String container)
           
 void setCount(org.databene.script.Expression<java.lang.Long> count)
           
 void setCountDistribution(java.lang.String distribution)
           
 void setCountGranularity(org.databene.script.Expression<java.lang.Long> distribution)
           
 void setDetailValue(java.lang.String detailName, java.lang.Object detailValue)
           
 void setLocalType(TypeDescriptor localType)
           
 void setMaxCount(org.databene.script.Expression<java.lang.Long> maxCount)
           
 void setMinCount(org.databene.script.Expression<java.lang.Long> minCount)
           
 void setMode(Mode mode)
           
 void setNullable(java.lang.Boolean nullable)
           
 void setNullQuota(java.lang.Double nullQuota)
           
 void setParent(InstanceDescriptor parent)
           
 void setType(java.lang.String type)
           
 void setUnique(java.lang.Boolean unique)
           
 java.lang.String toString()
           
 InstanceDescriptor withCount(long count)
           
 InstanceDescriptor withMaxCount(long maxCount)
           
 InstanceDescriptor withMinCount(long minCount)
           
 InstanceDescriptor withNullQuota(double nullQuota)
           
 InstanceDescriptor withUnique(boolean unique)
           
 
Methods inherited from class org.databene.model.data.FeatureDescriptor
addConfig, addConfig, addConstraint, addDetail, equals, getConfiguredDetail, getDataModel, getDeclaredDetailValue, getDetails, getDetailType, getProvider, hashCode, renderDetails, renderDetails, setName, supportsDetail
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

UNIQUE

public static final java.lang.String UNIQUE
See Also:
Constant Field Values

NULLABLE

public static final java.lang.String NULLABLE
See Also:
Constant Field Values

MIN_COUNT

public static final java.lang.String MIN_COUNT
See Also:
Constant Field Values

MAX_COUNT

public static final java.lang.String MAX_COUNT
See Also:
Constant Field Values

CONTAINER

public static final java.lang.String CONTAINER
See Also:
Constant Field Values

COUNT_GRANULARITY

public static final java.lang.String COUNT_GRANULARITY
See Also:
Constant Field Values

COUNT_DISTRIBUTION

public static final java.lang.String COUNT_DISTRIBUTION
See Also:
Constant Field Values

COUNT

public static final java.lang.String COUNT
See Also:
Constant Field Values

NULL_QUOTA

public static final java.lang.String NULL_QUOTA
See Also:
Constant Field Values

MODE

public static final java.lang.String MODE
See Also:
Constant Field Values
Constructor Detail

InstanceDescriptor

public InstanceDescriptor(java.lang.String name,
                          DescriptorProvider provider)

InstanceDescriptor

public InstanceDescriptor(java.lang.String name,
                          DescriptorProvider provider,
                          java.lang.String typeName)

InstanceDescriptor

public InstanceDescriptor(java.lang.String name,
                          DescriptorProvider provider,
                          TypeDescriptor localType)

InstanceDescriptor

protected InstanceDescriptor(java.lang.String name,
                             DescriptorProvider provider,
                             java.lang.String typeName,
                             TypeDescriptor localType)
Method Detail

setParent

public void setParent(InstanceDescriptor parent)

getName

public java.lang.String getName()
Specified by:
getName in interface org.databene.commons.Named
Overrides:
getName in class FeatureDescriptor

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getTypeDescriptor

public TypeDescriptor getTypeDescriptor()

getLocalType

public TypeDescriptor getLocalType()

getLocalType

public TypeDescriptor getLocalType(boolean complexType)

setLocalType

public void setLocalType(TypeDescriptor localType)

isUnique

public java.lang.Boolean isUnique()

setUnique

public void setUnique(java.lang.Boolean unique)

getUniqueness

public Uniqueness getUniqueness()

isNullable

public java.lang.Boolean isNullable()

setNullable

public void setNullable(java.lang.Boolean nullable)

getMinCount

public org.databene.script.Expression<java.lang.Long> getMinCount()

setMinCount

public void setMinCount(org.databene.script.Expression<java.lang.Long> minCount)

getMaxCount

public org.databene.script.Expression<java.lang.Long> getMaxCount()

setMaxCount

public void setMaxCount(org.databene.script.Expression<java.lang.Long> maxCount)

getContainer

public java.lang.String getContainer()

setContainer

public void setContainer(java.lang.String container)

getCount

public org.databene.script.Expression<java.lang.Long> getCount()

setCount

public void setCount(org.databene.script.Expression<java.lang.Long> count)

getCountDistribution

public java.lang.String getCountDistribution()

setCountDistribution

public void setCountDistribution(java.lang.String distribution)

getCountGranularity

public org.databene.script.Expression<java.lang.Long> getCountGranularity()

setCountGranularity

public void setCountGranularity(org.databene.script.Expression<java.lang.Long> distribution)

getNullQuota

public java.lang.Double getNullQuota()

setNullQuota

public void setNullQuota(java.lang.Double nullQuota)

getMode

public Mode getMode()

setMode

public void setMode(Mode mode)

getDetailValue

public java.lang.Object getDetailValue(java.lang.String name)
Overrides:
getDetailValue in class FeatureDescriptor

setDetailValue

public void setDetailValue(java.lang.String detailName,
                           java.lang.Object detailValue)
Overrides:
setDetailValue in class FeatureDescriptor

withCount

public InstanceDescriptor withCount(long count)

withMinCount

public InstanceDescriptor withMinCount(long minCount)

withMaxCount

public InstanceDescriptor withMaxCount(long maxCount)

withNullQuota

public InstanceDescriptor withNullQuota(double nullQuota)

withUnique

public InstanceDescriptor withUnique(boolean unique)

overwritesParent

public boolean overwritesParent()

toString

public java.lang.String toString()
Overrides:
toString in class FeatureDescriptor


Copyright © 2013. All Rights Reserved.