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

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 COUNT
           
static java.lang.String COUNT_DISTRIBUTION
           
static java.lang.String COUNT_PRECISION
           
static java.lang.String MAX_COUNT
           
static java.lang.String MIN_COUNT
           
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
 
Constructor Summary
  InstanceDescriptor(java.lang.String name)
           
  InstanceDescriptor(java.lang.String name, java.lang.String typeName)
           
protected InstanceDescriptor(java.lang.String name, java.lang.String typeName, TypeDescriptor localType)
           
  InstanceDescriptor(java.lang.String name, TypeDescriptor localType)
           
 
Method Summary
 org.databene.commons.Expression<java.lang.Long> getCount()
           
 java.lang.String getCountDistribution()
           
 org.databene.commons.Expression<java.lang.Long> getCountPrecision()
           
 java.lang.Object getDetailValue(java.lang.String name)
           
 TypeDescriptor getLocalType()
           
 TypeDescriptor getLocalType(boolean complexType)
           
 org.databene.commons.Expression<java.lang.Long> getMaxCount()
           
 org.databene.commons.Expression<java.lang.Long> getMinCount()
           
 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 setCount(org.databene.commons.Expression<java.lang.Long> count)
           
 void setCountDistribution(java.lang.String distribution)
           
 void setCountPrecision(org.databene.commons.Expression<java.lang.Long> distribution)
           
 void setDetailValue(java.lang.String detailName, java.lang.Object detailValue)
           
 void setLocalType(TypeDescriptor localType)
           
 void setMaxCount(org.databene.commons.Expression<java.lang.Long> maxCount)
           
 void setMinCount(org.databene.commons.Expression<java.lang.Long> minCount)
           
 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)
           
 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, getDeclaredDetailValue, getDetailDefault, getDetails, getDetailType, hashCode, setName, supportsDetail, toString
 
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

COUNT_PRECISION

public static final java.lang.String COUNT_PRECISION
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
Constructor Detail

InstanceDescriptor

public InstanceDescriptor(java.lang.String name)

InstanceDescriptor

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

InstanceDescriptor

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

InstanceDescriptor

protected InstanceDescriptor(java.lang.String name,
                             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.commons.Expression<java.lang.Long> getMinCount()

setMinCount

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

getMaxCount

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

setMaxCount

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

getCount

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

setCount

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

getCountDistribution

public java.lang.String getCountDistribution()

setCountDistribution

public void setCountDistribution(java.lang.String distribution)

getCountPrecision

public org.databene.commons.Expression<java.lang.Long> getCountPrecision()

setCountPrecision

public void setCountPrecision(org.databene.commons.Expression<java.lang.Long> distribution)

getNullQuota

public java.lang.Double getNullQuota()

setNullQuota

public void setNullQuota(java.lang.Double nullQuota)

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()


Copyright © 2011. All Rights Reserved.