public class ModelAssociation extends ModelField
Modifier and Type | Field and Description |
---|---|
static String |
MANY_MULTIPLICITY |
static String |
ONE_MULTIPLICITY |
Constructor and Description |
---|
ModelAssociation() |
Modifier and Type | Method and Description |
---|---|
AssociationMetadata |
getAssociationMetadata(String key) |
String |
getMultiplicity() |
String |
getTo() |
ModelClass |
getToClass() |
String |
getType() |
boolean |
isGenericType() |
boolean |
isManyMultiplicity() |
boolean |
isOneMultiplicity() |
void |
setMultiplicity(String multiplicity) |
void |
setTo(String to) |
void |
validateElement() |
getAlias, getDefaultValue, getMetadata, getModelClass, getTypeValidator, initialize, isArray, isIdentifier, isModelVersionField, isPrimitive, isPrimitiveArray, isRequired, setAlias, setDefaultValue, setIdentifier, setRequired, setType, setTypeValidator, toString
addMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
public static final String ONE_MULTIPLICITY
public static final String MANY_MULTIPLICITY
public void setTo(String to)
to
- The to to set.public String getTo()
public String getType()
getType
in class ModelField
public String getMultiplicity()
public void setMultiplicity(String multiplicity)
multiplicity
- The multiplicity to set.public boolean isManyMultiplicity()
public boolean isOneMultiplicity()
public ModelClass getToClass()
public AssociationMetadata getAssociationMetadata(String key)
public void validateElement() throws ModelValidationException
validateElement
in class ModelField
ModelValidationException
public boolean isGenericType()
Copyright © 2001-2013 Codehaus. All Rights Reserved.