|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.core.Model
public class Model
A Model is a collection of associated Schemas.
Schema
Field Summary | |
---|---|
protected java.util.List<Schema> |
list
|
protected java.util.Map<java.lang.String,Schema> |
map
|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
Model()
Constructor. |
Method Summary | |
---|---|
Schema |
add(Schema schema)
Adds a Schema to the Model. |
boolean |
contains(Schema schema)
Tests whether the Model contains the Schema given |
boolean |
contains(java.lang.String name)
Tests whether the Model contains a Schema by the name given |
Schema |
get(int index)
Gets a Schema from the Model by the index. |
Schema |
get(java.lang.String name)
Gets a Schema by the Schema's name |
java.lang.String |
getName()
Gets the name of the Model. |
boolean |
isEmpty()
Returns true if the Model does not contain any Schemas |
java.util.Iterator<Schema> |
iterator()
Gets an iterator over the Schemas in the Model |
void |
setName(java.lang.String name)
Sets the name of the Model. |
int |
size()
Gets the number of Schemas in the Model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected final java.util.Map<java.lang.String,Schema> map
protected final java.util.List<Schema> list
Constructor Detail |
---|
public Model()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the Model.public Schema add(Schema schema)
schema
- the Schema to add to the Model
public Schema get(int index)
index
- the index of the Schema
public Schema get(java.lang.String name)
name
- the name of the Schema to get
public boolean contains(java.lang.String name)
name
- the name of the Schema
public boolean contains(Schema schema)
schema
- the Schema
public boolean isEmpty()
public int size()
public java.util.Iterator<Schema> iterator()
iterator
in interface java.lang.Iterable<Schema>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |