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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate Stringstatic final Stringprivate Stringprivate ModelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetDefaultValue(ModelDefault modelDefault) getTo()getType()booleanbooleanbooleanvoidsetMultiplicity(String multiplicity) voidvoidMethods 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, toStringMethods 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:
-
to
-
multiplicity
-
toClass
-
-
Constructor Details
-
ModelAssociation
public ModelAssociation()
-
-
Method Details
-
setTo
- Parameters:
to- The to to set.
-
getTo
- Returns:
- Returns the to.
-
getType
- Overrides:
getTypein 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:
validateElementin classModelField- Throws:
ModelValidationException
-
isGenericType
public boolean isGenericType() -
getDefaultValue
-