public class AssociationMeta<T extends TopiaEntityEnum> extends Object implements Serializable, MetaFilenameAware<T>
Modifier and Type | Field and Description |
---|---|
protected String |
name
Name fo the association.
|
protected EntityOperator<TopiaEntity> |
operator
Operator of the source entity used to get / set associations.
|
protected T |
source
Association source entity type.
|
protected T |
target
Association target entity type.
|
CSV_EXTENSION
Constructor and Description |
---|
AssociationMeta(T source,
T target,
String name) |
Modifier and Type | Method and Description |
---|---|
Collection<TopiaEntity> |
getChilds(TopiaEntity entity) |
String |
getFilename() |
String |
getName() |
EntityOperator<TopiaEntity> |
getOperator() |
T |
getSource() |
T |
getTarget() |
boolean |
isChildEmpty(TopiaEntity entity) |
Object |
newAssociation() |
TopiaEntity |
newEntity() |
File |
newFile(File container) |
protected static <T extends TopiaEntityEnum> |
newMeta(T source,
T target,
String name) |
Writer |
newWriter(File container) |
void |
setChilds(TopiaEntity entity,
Collection<TopiaEntity> childs) |
String |
toString() |
protected final T extends TopiaEntityEnum source
protected final T extends TopiaEntityEnum target
protected final String name
protected transient EntityOperator<TopiaEntity> operator
protected static <T extends TopiaEntityEnum> AssociationMeta<T> newMeta(T source, T target, String name)
public T getSource()
getSource
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public String getName()
getName
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public String getFilename()
getFilename
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public File newFile(File container)
newFile
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public Writer newWriter(File container)
newWriter
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public T getTarget()
public TopiaEntity newEntity()
public Object newAssociation()
public Collection<TopiaEntity> getChilds(TopiaEntity entity)
public void setChilds(TopiaEntity entity, Collection<TopiaEntity> childs)
public boolean isChildEmpty(TopiaEntity entity)
public EntityOperator<TopiaEntity> getOperator()
Copyright © 2004–2022 Code Lutin. All rights reserved.