org.codehaus.modello.model
Class ModelAssociation
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.ModelField
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
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 |
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
ModelAssociation
public ModelAssociation()
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.