public class RelationshipDefinition extends DataDictionaryDefinitionBase
Modifier and Type | Field and Description |
---|---|
protected String |
objectAttributeName |
protected List<PrimitiveAttributeDefinition> |
primitiveAttributes |
protected Class<?> |
sourceClass |
protected List<SupportAttributeDefinition> |
supportAttributes |
protected Class<?> |
targetClass
For 1:1 relationships, this class represents the type of the reference class.
|
id
Constructor and Description |
---|
RelationshipDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Directly validate simple fields, call completeValidation on Definition fields.
|
SupportAttributeDefinition |
getIdentifier() |
String |
getObjectAttributeName() |
List<PrimitiveAttributeDefinition> |
getPrimitiveAttributes() |
Class<?> |
getSourceClass() |
List<SupportAttributeDefinition> |
getSupportAttributes() |
Class<?> |
getTargetClass()
Returns the
targetClass |
boolean |
hasIdentifier() |
void |
setObjectAttributeName(String objectAttributeName)
Name of the business object property on the containing business object that is linked
by the contained PrimitiveAttributeDefinition objects.
|
void |
setPrimitiveAttributes(List<PrimitiveAttributeDefinition> primitiveAttributes)
The primitiveAttribute element identifies one pair of
corresponding fields in the primary business object and
the related business object.
|
void |
setSourceClass(Class<?> sourceClass) |
void |
setSupportAttributes(List<SupportAttributeDefinition> supportAttributes)
Support attributes define additional attributes that can be used to generate
lookup field conversions and lookup parameters.
|
void |
setTargetClass(Class<?> targetClass)
Sets the
targetClass |
String |
toString() |
afterPropertiesSet, getId, setId
protected String objectAttributeName
protected Class<?> sourceClass
protected Class<?> targetClass
protected List<PrimitiveAttributeDefinition> primitiveAttributes
protected List<SupportAttributeDefinition> supportAttributes
public RelationshipDefinition()
public String getObjectAttributeName()
public Class<?> getSourceClass()
public Class<?> getTargetClass()
targetClass
public void setTargetClass(Class<?> targetClass)
targetClass
targetClass
- public void setObjectAttributeName(String objectAttributeName)
public List<PrimitiveAttributeDefinition> getPrimitiveAttributes()
public List<SupportAttributeDefinition> getSupportAttributes()
public boolean hasIdentifier()
public SupportAttributeDefinition getIdentifier()
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationDataDictionaryEntry.completeValidation()
public String toString()
toString
in class Object
Object.toString()
public void setPrimitiveAttributes(List<PrimitiveAttributeDefinition> primitiveAttributes)
public void setSupportAttributes(List<SupportAttributeDefinition> supportAttributes)
public void setSourceClass(Class<?> sourceClass)
sourceClass
- the sourceClass to setCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.