Package org.codehaus.modello.model
Class ModelAssociation
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.ModelField
org.codehaus.modello.model.ModelAssociation
- Author:
- Trygve Laugstøl, Emmanuel Venisse
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTo()
getType()
boolean
boolean
boolean
void
setMultiplicity
(String multiplicity) void
void
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, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
-
Field Details
-
ONE_MULTIPLICITY
- See Also:
-
MANY_MULTIPLICITY
- See Also:
-
-
Constructor Details
-
ModelAssociation
public ModelAssociation()
-
-
Method Details
-
setTo
- Parameters:
to
- The to to set.
-
getTo
- Returns:
- Returns the to.
-
getType
- Overrides:
getType
in classModelField
-
getMultiplicity
- Returns:
- Returns the multiplicity.
-
setMultiplicity
- Parameters:
multiplicity
- The multiplicity to set.
-
isManyMultiplicity
public boolean isManyMultiplicity() -
isOneMultiplicity
public boolean isOneMultiplicity() -
getToClass
- Returns:
- Returns the to ModelClass.
-
getAssociationMetadata
-
validateElement
- Overrides:
validateElement
in classModelField
- Throws:
ModelValidationException
-
isGenericType
public boolean isGenericType()
-