com.infoengine.object
Class IeMeta

java.lang.Object
  extended bycom.infoengine.object.IeMeta
All Implemented Interfaces:
Cloneable, Externalizable, Serializable

public class IeMeta
extends Object
implements Externalizable, Cloneable

See Also:
Serialized Form

Field Summary
private static String _serialVersion
           
private  List child_v
           
private  int index
           
private  String name
           
 
Constructor Summary
IeMeta()
          default no arg constructor to be used for de-serialization
IeMeta(String name)
          Constructs a new IeMeta object with a specified name.
 
Method Summary
protected  Object _getDatumInternal()
           
protected  Vector _getVector()
           
 void addDatum(IeDatum datum)
          Adds a datum to the meta.
protected  void addDatumInternal(Object o)
           
 void addDatums(Vector v)
          Appends a Vector of datums to the meta.
 IeDatum firstDatum()
          Returns the first datum contained in the meta.
 IeDatum getDatum()
          Returns the first datum contained in the meta.
 IeDatum getDatumAt(int index)
          Returns the datum located at a specified index.
 int getDatumCount()
          Returns the number of datums contained in the meta.
 Enumeration getDatums()
          Returns all of the datums contained in the meta.
protected  int getIndex()
           
 String getName()
          Returns the name of this meta.
 String getNodeName()
           
 boolean hasChildNodes()
           
 int indexOfDatum(IeDatum datum)
          Returns the index of a specified datum.
 IeDatum lastDatum()
          Returns the last datum contained in the meta.
 void readExternal(ObjectInput in)
           
 void removeAllDatums()
          Removes all of the datums contained in the meta.
 void removeDatum(IeDatum datum)
          Removes a specified datum from the meta.
 void removeDatumAt(int index)
          Removes the datum located at a specified index of the meta.
 void setDatum(IeDatum datum)
          Removes any pre-existing datums contained within the meta, then sets the specified datum as the only datum in the meta.
 void setDatumAt(IeDatum datum, int index)
          Sets the datum located at a specified index of the meta.
protected  void setIndex(int i)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private String name

child_v

private List child_v

index

private int index

_serialVersion

private static final String _serialVersion
See Also:
Constant Field Values
Constructor Detail

IeMeta

public IeMeta()
default no arg constructor to be used for de-serialization


IeMeta

public IeMeta(String name)
Constructs a new IeMeta object with a specified name.

Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

addDatum

public void addDatum(IeDatum datum)
Adds a datum to the meta.

Parameters:
datum - the datum to be added

addDatums

public void addDatums(Vector v)
Appends a Vector of datums to the meta.

Parameters:
v - the Vector of datums to be appended

firstDatum

public IeDatum firstDatum()
Returns the first datum contained in the meta.

Returns:
The first datum, or null if the meta does not contain any datums

getDatum

public IeDatum getDatum()
Returns the first datum contained in the meta.

Returns:
The first datum, or null if the meta does not contain any datums

getDatums

public Enumeration getDatums()
Returns all of the datums contained in the meta.

Returns:
The datums contained in the meta

getDatumAt

public IeDatum getDatumAt(int index)
Returns the datum located at a specified index.

Parameters:
index - the index of the datum to be returned
Returns:
The datum located at the specified index, or null if the index exceeds the number of datums contained in the meta

getDatumCount

public int getDatumCount()
Returns the number of datums contained in the meta.

Returns:
The number of datums in the meta

indexOfDatum

public int indexOfDatum(IeDatum datum)
Returns the index of a specified datum.

Parameters:
datum - the datum for which to return an index
Returns:
The index of the specified datum, or -1 if the datum is not found in the meta

lastDatum

public IeDatum lastDatum()
Returns the last datum contained in the meta.

Returns:
The last datum, or null if the meta does not contain any datums

removeAllDatums

public void removeAllDatums()
Removes all of the datums contained in the meta.


removeDatum

public void removeDatum(IeDatum datum)
Removes a specified datum from the meta.

Parameters:
datum - the datum to be removed

removeDatumAt

public void removeDatumAt(int index)
Removes the datum located at a specified index of the meta.

Parameters:
index - the index of the datum to be removed

setDatum

public void setDatum(IeDatum datum)
Removes any pre-existing datums contained within the meta, then sets the specified datum as the only datum in the meta.

Parameters:
datum - the datum to set

setDatumAt

public void setDatumAt(IeDatum datum,
                       int index)
Sets the datum located at a specified index of the meta.

Parameters:
datum - the new datum to be set
index - the index of the datum to be set

getName

public String getName()
Returns the name of this meta.

Returns:
The name of this meta

_getVector

protected Vector _getVector()

addDatumInternal

protected void addDatumInternal(Object o)

_getDatumInternal

protected Object _getDatumInternal()

setIndex

protected void setIndex(int i)

getIndex

protected int getIndex()

getNodeName

public String getNodeName()

hasChildNodes

public boolean hasChildNodes()