public class EntitiesConfig
extends java.lang.Object
Constructor and Description |
---|
EntitiesConfig()
Default constructor
|
EntitiesConfig(java.util.List<AttributeDef> attributeDefs, java.util.List<EntityDef> entityDefs, java.util.List<EntityRelationship> entityRelationshipDefs)
Constructs EntitiesConfig from given list of Attribute definitions, entity definitions and entity relationship definitions.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributeDef(AttributeDef attributeDef)
Adds new attribute definition
|
void |
addEntity(EntityDef entity)
Adds new entity definition
|
void |
addEntityRelationship(EntityRelationship entityRelationship)
Adds new entity relationship definition
|
boolean |
equals(java.lang.Object obj)
Checks if the given object is equals to this one
|
AttributeDef |
getAttributeDef(java.lang.String name)
Gets attribute definition for given attribute name
|
java.util.List<AttributeDef> |
getAttributeDefs()
Gets attribute definitions
|
static EntitiesConfig |
getDefaultEntityConfig()
Gets new instance of EntitiesConfig object with default entity configuration containing attributes, entities and entity relationships definitions.
|
java.util.List<EntityDef> |
getEntities()
Gets entity definitions
|
EntityDef |
getEntity(java.lang.String name)
Gets entity definition for given entity name
|
EntityRelationship |
getEntityRelationship(java.lang.String name)
Gets entity relationship definition for given relationship name
|
java.util.List<EntityRelationship> |
getEntityRelationships()
Gets entity relationship definitions
|
boolean |
isAttrReadOnly(java.lang.String attrName)
Gets attribute's readonly value
|
boolean |
isPwdAttr(java.lang.String attrName)
Gets pwdattr value
|
void |
setAttributeDefs(java.util.List<AttributeDef> attributeDefs)
Sets attributes definitions
|
void |
setEntities(java.util.List<EntityDef> entities)
Sets entity definitions
|
void |
setEntityRelationships(java.util.List<EntityRelationship> entityRelationships)
Sets all entity relationships defintions
|
public EntitiesConfig()
public EntitiesConfig(java.util.List<AttributeDef> attributeDefs, java.util.List<EntityDef> entityDefs, java.util.List<EntityRelationship> entityRelationshipDefs)
attributeDefs
- List of attribute definitionsentityDefs
- List of entity definitionsentityRelationshipDefs
- List of entity relationship definitionspublic void setAttributeDefs(java.util.List<AttributeDef> attributeDefs)
attributeDefs
- List of attribute definitionspublic void addAttributeDef(AttributeDef attributeDef)
attributeDef
- Attribute definitionpublic java.util.List<AttributeDef> getAttributeDefs()
public AttributeDef getAttributeDef(java.lang.String name)
name
- Attribute namepublic void setEntities(java.util.List<EntityDef> entities)
entities
- List of entity definitionspublic void addEntity(EntityDef entity)
entity
- Entity definitionpublic java.util.List<EntityDef> getEntities()
public EntityDef getEntity(java.lang.String name)
name
- Entity namepublic void setEntityRelationships(java.util.List<EntityRelationship> entityRelationships)
entityRelationships
- List of entity relationship definitionspublic void addEntityRelationship(EntityRelationship entityRelationship)
entityRelationship
- Entity relationship definitionpublic java.util.List<EntityRelationship> getEntityRelationships()
public EntityRelationship getEntityRelationship(java.lang.String name)
name
- Entity relationship namepublic boolean isAttrReadOnly(java.lang.String attrName)
attrName
- Name of the attributepublic boolean isPwdAttr(java.lang.String attrName)
attrName
- Name of the attributepublic static EntitiesConfig getDefaultEntityConfig()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object