org.codehaus.modello.model
Class ModelAssociation

java.lang.Object
  extended by org.codehaus.modello.model.BaseElement
      extended by org.codehaus.modello.model.ModelField
          extended by org.codehaus.modello.model.ModelAssociation

public class ModelAssociation
extends ModelField

Version:
$Id: ModelAssociation.java 529 2005-12-23 02:46:44Z brett $
Author:
Trygve Laugstøl, Emmanuel Venisse

Field Summary
static java.lang.String MANY_MULTIPLICITY
           
static java.lang.String ONE_MULTIPLICITY
           
 
Constructor Summary
ModelAssociation()
           
 
Method Summary
 AssociationMetadata getAssociationMetadata(java.lang.String key)
           
 java.lang.String getMultiplicity()
           
 java.lang.String getTo()
           
 ModelClass getToClass()
           
 java.lang.String getType()
           
 void setMultiplicity(java.lang.String multiplicity)
           
 void setTo(java.lang.String to)
           
 void validateElement()
           
 
Methods inherited from class org.codehaus.modello.model.ModelField
getAlias, getDefaultValue, getMetadata, getModelClass, getTypeValidator, initialize, isArray, isIdentifier, isModelVersionField, isPrimitive, isPrimitiveArray, isRequired, setAlias, setDefaultValue, setIdentifier, setRequired, setType, setTypeValidator, toString
 
Methods inherited from class org.codehaus.modello.model.BaseElement
addMetadata, equals, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE_MULTIPLICITY

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

MANY_MULTIPLICITY

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

ModelAssociation

public ModelAssociation()
Method Detail

setTo

public void setTo(java.lang.String to)
Parameters:
to - The to to set.

getTo

public java.lang.String getTo()
Returns:
Returns the to.

getType

public java.lang.String getType()
Overrides:
getType in class ModelField

getMultiplicity

public java.lang.String getMultiplicity()
Returns:
Returns the multiplicity.

setMultiplicity

public void setMultiplicity(java.lang.String multiplicity)
Parameters:
multiplicity - The multiplicity to set.

getToClass

public ModelClass getToClass()
Returns:
Returns the to ModelClass.

getAssociationMetadata

public AssociationMetadata getAssociationMetadata(java.lang.String key)

validateElement

public void validateElement()
                     throws ModelValidationException
Overrides:
validateElement in class ModelField
Throws:
ModelValidationException


Copyright © 2001-2011 Codehaus. All Rights Reserved.