com.finalist.mmbase.uml
Class MMBaseAttributeVo

java.lang.Object
  extended by com.finalist.mmbase.uml.MMBaseAttributeVo

public class MMBaseAttributeVo
extends java.lang.Object

Value object that models all attributes of a class including the attributes defined in super classes and in the implemented interfaces Copyright 2003 Finalist IT-Group -- all rights reserved

Version:
$Revision: 1.8 $, $Date: 2005/01/31 15:09:32 $
Author:
Rudie Ekkelenkamp.

Constructor Summary
MMBaseAttributeVo(java.lang.String attributeName, java.lang.String attributeType, java.util.Collection stereotypes, java.lang.String documentation, java.lang.String visibility, java.lang.String databaseType, java.lang.String prompt, java.lang.String dbSize, java.lang.String minSize, java.lang.String maxSize, java.lang.String fieldType, java.lang.String optionListDefinition, java.lang.String defaultValue, boolean system)
          The constructor
 
Method Summary
 java.lang.String getAttributeName()
          Getter of the attribute name.
 java.util.Collection getAttributeStrereotypes()
           
 java.lang.String getAttributeType()
          Getter of the attribute type.
 java.lang.String getDatabaseSize()
          Getter of the database size
 java.lang.String getDatabaseType()
          getter database type.
 java.lang.String getDefaultValue()
          Get default value.
 java.lang.String getDocumentation()
          Get documentation
 java.lang.String getFieldType()
          get fieldtype
 java.lang.String getMaxSize()
          Getter of the maximum size.
 java.lang.String getMinSize()
          getter of the min size.
 java.lang.String getOptionListDefinition()
          Get optionListDefinition
 java.lang.String getPrompt()
          Get the promptname of a field.
 java.lang.String getVisibility()
          Getter of the visibility
 boolean hasStereotype(java.lang.String stereotype)
          Test if this attribute has a certain stereotype
 boolean isRequired()
          Get required.
 boolean isSystem()
          Returns the value of system.
 void setAttributeName(java.lang.String attributeName)
          Setter of the attribute name.
 void setAttributeStereoType(java.lang.String stereoType)
          Setter of the stereo type.
 void setAttributeType(java.lang.String attributeType)
          Setter of the attribute type.
 void setDatabaseSize(java.lang.String databaseSize)
          Setter of the database size.
 void setDatabaseType(java.lang.String databaseType)
          setter database type.
 void setDefaultValue(java.lang.String defaultValue)
          Set the default value.
 void setDocumentation(java.lang.String documentation)
          Set the documentation
 void setFieldType(java.lang.String fieldType)
          setter of field type
 void setMaxSize(java.lang.String maxSize)
          Setter of the maximum size.
 void setMinSize(java.lang.String minSize)
          Setter of the minimum size.
 void setOptionListDefinition(java.lang.String optionListDefinition)
          Set the optionListDefinition
 void setPrompt(java.lang.String prompt)
          Set the promptName of a field.
 void setSystem(boolean system)
          Sets the value of system.
 void setVisibility(java.lang.String visibility)
          Setter of the visibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMBaseAttributeVo

public MMBaseAttributeVo(java.lang.String attributeName,
                         java.lang.String attributeType,
                         java.util.Collection stereotypes,
                         java.lang.String documentation,
                         java.lang.String visibility,
                         java.lang.String databaseType,
                         java.lang.String prompt,
                         java.lang.String dbSize,
                         java.lang.String minSize,
                         java.lang.String maxSize,
                         java.lang.String fieldType,
                         java.lang.String optionListDefinition,
                         java.lang.String defaultValue,
                         boolean system)
The constructor

Parameters:
attributeName - Name of the attribute
attributeType - Type of the attribute as specified in the UML model
stereotypes - Collection of stereotypes for this attribute
documentation - Documentation on an attribute.
visibility - Attribute visibility.
databaseType - MMbase Database on which the type is mapped.
prompt - Name of the prompt used in the GUI
dbSize - Database size of the attribute
minSize - Minimum size of the attribute.
maxSize - Maximum size of the attribute.
fieldType - Type used in the gui.
optionListDefinition - Name of the definition of the list.
defaultValue - the specified initialValue of an attribute.
system - defines an attribute as a system attribute, so not for editing in the wizards..
Method Detail

getFieldType

public java.lang.String getFieldType()
get fieldtype

Returns:
field type

setFieldType

public void setFieldType(java.lang.String fieldType)
setter of field type

Parameters:
fieldType - the field type

getDatabaseType

public java.lang.String getDatabaseType()
getter database type.

Returns:
the database type.

setDatabaseType

public void setDatabaseType(java.lang.String databaseType)
setter database type.

Parameters:
databaseType - the database type

getPrompt

public java.lang.String getPrompt()
Get the promptname of a field.

Returns:
String with the promptname.

setPrompt

public void setPrompt(java.lang.String prompt)
Set the promptName of a field.

Parameters:
prompt - name of the prompt.

getMinSize

public java.lang.String getMinSize()
getter of the min size.

Returns:
the minimum size.

setMinSize

public void setMinSize(java.lang.String minSize)
Setter of the minimum size.

Parameters:
minSize - the minimum size.

getMaxSize

public java.lang.String getMaxSize()
Getter of the maximum size.

Returns:
the maximum size

setMaxSize

public void setMaxSize(java.lang.String maxSize)
Setter of the maximum size.

Parameters:
maxSize - the maximum size.

getDatabaseSize

public java.lang.String getDatabaseSize()
Getter of the database size

Returns:
the database size

setDatabaseSize

public void setDatabaseSize(java.lang.String databaseSize)
Setter of the database size.

Parameters:
databaseSize - the database size.

getVisibility

public java.lang.String getVisibility()
Getter of the visibility

Returns:
the visibility

setVisibility

public void setVisibility(java.lang.String visibility)
Setter of the visibility

Parameters:
visibility - the visibility

getAttributeName

public java.lang.String getAttributeName()
Getter of the attribute name.

Returns:
the attribute name.

setAttributeName

public void setAttributeName(java.lang.String attributeName)
Setter of the attribute name.

Parameters:
attributeName - the attribute name.

getAttributeType

public java.lang.String getAttributeType()
Getter of the attribute type.

Returns:
the attribute type.

setAttributeType

public void setAttributeType(java.lang.String attributeType)
Setter of the attribute type.

Parameters:
attributeType - the attribute type.

setAttributeStereoType

public void setAttributeStereoType(java.lang.String stereoType)
Setter of the stereo type.

Parameters:
stereoType - the stereotype

getDocumentation

public java.lang.String getDocumentation()
Get documentation

Returns:
the documentation

setDocumentation

public void setDocumentation(java.lang.String documentation)
Set the documentation

Parameters:
documentation - the documentation.

getOptionListDefinition

public java.lang.String getOptionListDefinition()
Get optionListDefinition

Returns:
the name of the optionListDefinition.

setOptionListDefinition

public void setOptionListDefinition(java.lang.String optionListDefinition)
Set the optionListDefinition

Parameters:
optionListDefinition - the name of the file that defines the list.

isSystem

public boolean isSystem()
Returns the value of system.


setSystem

public void setSystem(boolean system)
Sets the value of system.

Parameters:
system - Weather the attribute is a system attribute (and shoud be hidden from the editors)

getDefaultValue

public java.lang.String getDefaultValue()
Get default value.

Returns:
the default value.

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)
Set the default value.

Parameters:
defaultValue - the default value

isRequired

public boolean isRequired()
Get required.

Returns:
true if attribute is required

hasStereotype

public boolean hasStereotype(java.lang.String stereotype)
Test if this attribute has a certain stereotype

Returns:
true if stereotype was found

getAttributeStrereotypes

public java.util.Collection getAttributeStrereotypes()


Copyright © 2003-2006 mmapps. All Rights Reserved.