|
copyright The Portico Project 2008. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.portico.shared.model.Space
public class Space
| Field Summary | |
|---|---|
private Map<Integer,Dimension> |
dimensions
|
private int |
handle
|
private ObjectModel |
model
|
private String |
name
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
Space(String name,
int handle)
|
|
| Method Summary | |
|---|---|
boolean |
addDimension(Dimension dimension)
Adds the given dimension to this space. |
Dimension |
getDimension(int dimensionHandle)
Find the contained Dimension of the given handle and return it. |
Dimension |
getDimension(String dimensionName)
Find the contained Dimension of the given name and return it. |
int |
getDimensionHandle(String dimensionName)
Return the handle for the contained dimension of the given handle. |
String |
getDimensionName(int dimensionHandle)
Return the name of the contained dimension with the given handle. |
Set<Dimension> |
getDimensions()
Get a set of all the dimensions contained in this space. |
int |
getHandle()
|
ObjectModel |
getModel()
|
String |
getName()
|
boolean |
hasDimension(int dimensionHandle)
Returns true if there is a dimension with the given handle inside this space. |
boolean |
hasDimension(String dimensionName)
Returns true if there is a dimension of the given name inside this space. |
Dimension |
removeDimension(int handle)
Remove and return the contained dimension with the given handle. |
void |
setModel(ObjectModel model)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private String name
private int handle
private Map<Integer,Dimension> dimensions
private ObjectModel model
| Constructor Detail |
|---|
public Space(String name,
int handle)
| Method Detail |
|---|
public boolean addDimension(Dimension dimension)
public Dimension removeDimension(int handle)
public Set<Dimension> getDimensions()
public Dimension getDimension(String dimensionName)
Dimension of the given name and return it. If there is no
Dimension, null will be returned.
public Dimension getDimension(int dimensionHandle)
Dimension of the given handle and return it. If there is no
Dimension, null will be returned.
public boolean hasDimension(String dimensionName)
true if there is a dimension of the given name inside this space.
Returns false otherwise.
public boolean hasDimension(int dimensionHandle)
true if there is a dimension with the given handle inside this space.
Returns false otherwise.
public int getDimensionHandle(String dimensionName)
ObjectModel.INVALID_HANDLE is returned.
public String getDimensionName(int dimensionHandle)
public int getHandle()
public String getName()
public ObjectModel getModel()
public void setModel(ObjectModel model)
public String toString()
toString in class Object
|
copyright The Portico Project 2008. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||