public class ModelAssociation extends ModelField
| Modifier and Type | Field | Description |
|---|---|---|
static String |
MANY_MULTIPLICITY |
|
static String |
ONE_MULTIPLICITY |
| Constructor | Description |
|---|---|
ModelAssociation() |
| Modifier and Type | Method | 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() |
addMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmptygetAlias, getDefaultValue, getMetadata, getModelClass, getTypeValidator, initialize, isArray, isIdentifier, isModelVersionField, isPrimitive, isPrimitiveArray, isRequired, setAlias, setDefaultValue, setIdentifier, setRequired, setType, setTypeValidator, toStringpublic 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 ModelFieldpublic 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 ModelFieldModelValidationExceptionpublic boolean isGenericType()
Copyright © 2001–2018 Codehaus Plexus. All rights reserved.