com.change_vision.jude.api.inf.model
Interface IERAttribute

com.change_vision.jude.api.inf.model.IERAttribute
All Implemented Interfaces:
IElement, INamedElement

public IERAttribute
extends INamedElement

Interface for ERAttribute.


Method Summary
abstract  IConstraint getConstraint(String constraintName)
          Get Constraint.
abstract  IERDatatype getDatatype()
          Get Datatype.
abstract  String getDefaultValue()
          Get Default Value.
abstract  IERDomain getDomain()
          Get Domain.
abstract  String getLengthPrecision()
          Get Length/Precision.
abstract  String getLogicalName()
          Get Logical Name.
abstract  String getPhysicalName()
          Get Physical Name.
abstract  IERAttribute[] getReferencedForeignKeys()
          Get referenced foreign keys.
abstract  IERAttribute getReferencedPrimaryKey()
          Get referenced primary key.
abstract  IERRelationship getReferencedRelationship()
          Get referenced relationship.
abstract  IERSubtypeRelationship[] getReferencedSubtypeRelationships()
          Get referenced subtype relationships.
abstract  IERSubtypeRelationship getSubtypeForeignKeyInv()
          Get associated subtype relationship as discriminator attribute.
abstract  boolean isForeignKey()
          Check if the attribute is foreign key.
abstract  boolean isNotNull()
          Check if the attribute is NOT NULL.
abstract  boolean isPrimaryKey()
          Check if the attribute is primary key.
 
Methods inherited from class com.change_vision.jude.api.inf.model.INamedElement
getClientDependencies, getConstraints, getDefinition, getDiagrams, getName, getSupplierDependencies, isPackageVisibility, isPrivateVisibility, isProtectedVisibility, isPublicVisibility
 
Methods inherited from class com.change_vision.jude.api.inf.model.IElement
getComments, getId, getOwner, getStereotypes, getTaggedValues
 

Method Detail

getLogicalName

public abstract String getLogicalName()
Get Logical Name.

Returns:
Logical Name.

getPhysicalName

public abstract String getPhysicalName()
Get Physical Name.

Returns:
Physical Name.

isPrimaryKey

public abstract boolean isPrimaryKey()
Check if the attribute is primary key.

Returns:
true it is primary key / false it is not primary key

isForeignKey

public abstract boolean isForeignKey()
Check if the attribute is foreign key.

Returns:
true it is foreign key / false it is not foreign key

getDomain

public abstract IERDomain getDomain()
Get Domain.

Returns:
Domain. Return null in case there is none.

getDatatype

public abstract IERDatatype getDatatype()
Get Datatype.

Returns:
Datatype.

getLengthPrecision

public abstract String getLengthPrecision()
Get Length/Precision.

Returns:
Length/Precision. Return null in case there is none.

isNotNull

public abstract boolean isNotNull()
Check if the attribute is NOT NULL.

Returns:
true it is NOT NULL / false it is not NOT NULL

getDefaultValue

public abstract String getDefaultValue()
Get Default Value.

Returns:
Default Value. Return null in case there is none.

getConstraint

public abstract IConstraint getConstraint(String constraintName)
Get Constraint.

Returns:
Constraint. Return null in case there is none.

getReferencedPrimaryKey

public abstract IERAttribute getReferencedPrimaryKey()
Get referenced primary key.

Returns:
Primary key. Return null in case there is none.

getReferencedForeignKeys

public abstract IERAttribute[] getReferencedForeignKeys()
Get referenced foreign keys.

Returns:
the array of foreign keys. Return the empty array if there is none.

getReferencedRelationship

public abstract IERRelationship getReferencedRelationship()
Get referenced relationship.

Returns:
Relationship. Return null in case there is none.

getReferencedSubtypeRelationships

public abstract IERSubtypeRelationship[] getReferencedSubtypeRelationships()
Get referenced subtype relationships.

Returns:
the array of subtype relationships. Return the empty array if there is none.

getSubtypeForeignKeyInv

public abstract IERSubtypeRelationship getSubtypeForeignKeyInv()
Get associated subtype relationship as discriminator attribute.

Returns:
Subtype relationship. Return null in case there is none.