- java.lang.Object
- 
- aeonics.template.Relationship
 
- 
- All Implemented Interfaces:
- Documented,- Exportable
 
 public class Relationship extends java.lang.Object implements Documented 
- 
- 
Constructor SummaryConstructors Constructor Description Relationship(java.lang.String name)Create a new relationship
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <R extends Relationship>
 Radd(Parameter parameter)Adds a parameter linked to this relationshipjava.lang.Stringcategory()Returns the target entity category to relate to<R extends Relationship>
 Rcategory(java.lang.Class<? extends Item<? extends Entity>> value)Sets the target entity category to relate to<R extends Relationship>
 Rcategory(java.lang.String value)Sets the target entity category to relate tojava.lang.Stringdescription()Returns the relationship description<R extends Relationship>
 Rdescription(java.lang.String value)Sets the relationship descriptionDataexport()Renders this class instance to a simple data structure for rendering client-side.intmax()Returns the maximum number of relations.<R extends Relationship>
 Rmax(int value)Sets the maximum number of relations.intmin()Returns the minimum number of relations<R extends Relationship>
 Rmin(int value)Sets the minimum number of relationsjava.lang.Stringname()Returns the relationship namebooleanordered()Returns whether or not the order of multiple values should be perserved<R extends Relationship>
 Rordered(boolean value)Sets whether or not the order of multiple values should be perservedjava.util.Map<java.lang.String,Parameter>parameters()Returns the list of parameters for this relationshipjava.lang.Stringsummary()Returns the relationship summary<R extends Relationship>
 Rsummary(java.lang.String value)Sets the relationship summary
 
- 
- 
- 
Method Detail- 
namepublic java.lang.String name() Returns the relationship name- Specified by:
- namein interface- Documented
- Returns:
- the relationship name
 
 - 
summarypublic java.lang.String summary() Returns the relationship summary- Specified by:
- summaryin interface- Documented
- Returns:
- the relationship summary
 
 - 
summarypublic <R extends Relationship> R summary(java.lang.String value) Sets the relationship summary- Type Parameters:
- R- the relationship type
- Parameters:
- value- the summary
- Returns:
- this
 
 - 
descriptionpublic java.lang.String description() Returns the relationship description- Specified by:
- descriptionin interface- Documented
- Returns:
- the relationship description
 
 - 
descriptionpublic <R extends Relationship> R description(java.lang.String value) Sets the relationship description- Type Parameters:
- R- the relationship type
- Parameters:
- value- the description
- Returns:
- this
 
 - 
categorypublic java.lang.String category() Returns the target entity category to relate to- Returns:
- the target entity type to relate to
 
 - 
categorypublic <R extends Relationship> R category(java.lang.Class<? extends Item<? extends Entity>> value) Sets the target entity category to relate to- Type Parameters:
- R- the relationship type
- Parameters:
- value- the target entity category to relate to
- Returns:
- this
 
 - 
categorypublic <R extends Relationship> R category(java.lang.String value) Sets the target entity category to relate to- Type Parameters:
- R- the relationship type
- Parameters:
- value- the target entity category to relate to
- Returns:
- this
 
 - 
minpublic int min() Returns the minimum number of relations- Returns:
- the minimum number of relations
 
 - 
minpublic <R extends Relationship> R min(int value) Sets the minimum number of relations- Type Parameters:
- R- the relationship type
- Parameters:
- value- the minimum number of relations
- Returns:
- this
 
 - 
maxpublic int max() Returns the maximum number of relations. If negative, it means that the maximum is not set.- Returns:
- the maximum number of relations
 
 - 
maxpublic <R extends Relationship> R max(int value) Sets the maximum number of relations.- Type Parameters:
- R- the relationship type
- Parameters:
- value- the maximum number of relations (-1 if undefined)
- Returns:
- this
 
 - 
orderedpublic boolean ordered() Returns whether or not the order of multiple values should be perserved- Returns:
- whether or not the order of multiple values should be perserved
 
 - 
orderedpublic <R extends Relationship> R ordered(boolean value) Sets whether or not the order of multiple values should be perserved- Type Parameters:
- R- the relationship type
- Parameters:
- value- whether or not the order of multiple values should be perserved
- Returns:
- this
 
 - 
parameterspublic java.util.Map<java.lang.String,Parameter> parameters() Returns the list of parameters for this relationship- Returns:
- the list of parameters for this relationship
 
 - 
addpublic <R extends Relationship> R add(Parameter parameter) Adds a parameter linked to this relationship- Type Parameters:
- R- the relationship type
- Parameters:
- parameter- the parameter definition
- Returns:
- this
 
 - 
exportpublic Data export() Description copied from interface:ExportableRenders this class instance to a simple data structure for rendering client-side.- Specified by:
- exportin interface- Documented
- Specified by:
- exportin interface- Exportable
- Returns:
- a public data representation of this class instance
 
 
- 
 
-