|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicCloneable
org.objectweb.medor.lib.BasicTupleStructure
Field Summary | |
---|---|
protected java.util.ArrayList |
fields
|
protected Logger |
logger
|
protected java.util.HashMap |
name2field
|
Constructor Summary | |
---|---|
protected |
BasicTupleStructure()
|
|
BasicTupleStructure(Field[] fields)
|
Method Summary | |
---|---|
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
boolean |
contains(Field f)
Checks whether a given input Field is present in the current TupleStructure. |
boolean |
contains(java.lang.String fieldName)
Checks whether the current TupleStructure has a field of a given name. |
Field |
getField(int fieldrank)
Returns the Field of a given rank in the current TupleStructure. |
Field |
getField(java.lang.String fieldname)
Returns a Field object present in this TupleStructure given its name. |
int |
getFieldRank(Field f)
Returns the rank of a given Field in the current TupleStructure. |
Field[] |
getFields()
Returns the array of Fields in the current TupleStructure. |
int |
getSize()
Returns the size of the current TupleStructure, ie the number of Fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
---|
clone |
Field Detail |
protected java.util.ArrayList fields
protected java.util.HashMap name2field
protected transient Logger logger
Constructor Detail |
protected BasicTupleStructure()
public BasicTupleStructure(Field[] fields) throws MedorException
Method Detail |
public java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public Field[] getFields()
TupleStructure
getFields
in interface TupleStructure
public Field getField(java.lang.String fieldname) throws MedorException
TupleStructure
getField
in interface TupleStructure
fieldname
- the name of the searched Field
MedorException
- if no Field corresponds to the input name.public Field getField(int fieldrank) throws MedorException
TupleStructure
getField
in interface TupleStructure
fieldrank
- the rank of the searched Field in the current
TupleStructure
MedorException
- if the input rank is too large.public int getFieldRank(Field f) throws MedorException
TupleStructure
getFieldRank
in interface TupleStructure
f
- the Field for which the rank is searched.
MedorException
- if there is no such Field in the current
TupleStructure.public int getSize()
TupleStructure
getSize
in interface TupleStructure
public boolean contains(Field f)
TupleStructure
contains
in interface TupleStructure
f
- the Field for which to check whether it is present in the
current TupleStructure.
public boolean contains(java.lang.String fieldName)
TupleStructure
contains
in interface TupleStructure
fieldName
- the Field name for which to check whether the current
TupleStructure contains a Field.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |