net.jqhome.jwps.ea
Class MVSTEA

java.lang.Object
  |
  +--net.jqhome.jwps.ea.AbstractEA
        |
        +--net.jqhome.jwps.ea.EAVector
              |
              +--net.jqhome.jwps.ea.MVMTEA
                    |
                    +--net.jqhome.jwps.ea.MVSTEA

public class MVSTEA
extends MVMTEA

This is a list of EAs all of which must be the same numeric type. Adding the first EA is added to this list deterines the numeric type of all subsequent EAs. You can, however, add subclasses of a given class. This would be ok, so that you could add, say, a StringEA and then subclasses of that. It might suit your purposes to setup your own EAFactory to return your subclasses.


Nested Class Summary
 
Nested classes inherited from class net.jqhome.jwps.ea.MVMTEA
MVMTEA.FoundEA
 
Field Summary
 
Fields inherited from class net.jqhome.jwps.ea.EAVector
EA_CODEPAGE_INDEX, EA_COUNT_INDEX, EA_TYPE_INDEX, MVMT_DATA_CONTROL_BLOCK_LENGTH, MVMT_DATA_LENGTH_OFFSET, MVMT_DATA_OFFSET, MVMT_DATA_START_INDEX, MVMT_DATA_TYPE_OFFSET, MVST_DATA_CONTROL_BLOCK_LENGTH, MVST_DATA_LENGTH_OFFSET, MVST_DATA_OFFSET, MVST_DATA_START_INDEX, MVST_TYPE_INDEX
 
Fields inherited from class net.jqhome.jwps.ea.AbstractEA
EA_NAME_ASSOCIATION_TABLE, EA_NAME_CODEPAGE, EA_NAME_COMMENTS, EA_NAME_HISTORY, EA_NAME_ICON, EA_NAME_ICON1, EA_NAME_KEYPHRASES, EA_NAME_LONGNAME, EA_NAME_SUBJECT, EA_NAME_TYPE, EA_NAME_VERSION, XML_EA_B64_ENCODING, XML_EA_CODEPAGE_TAGNAME, XML_EA_ENCODING_TYPE_TAGNAME, XML_EA_FILE_TAGNAME, XML_EA_IS_CRITICAL_TAGNAME, XML_EA_LIST_TAGNAME, XML_EA_NAME_TAGNAME, XML_EA_TAGNAME, XML_EA_TEXT_ENCODING, XML_EA_TYPE_TAGNAME, XML_EA_VALUE_TAGNAME
 
Constructor Summary
MVSTEA()
          Default constructor
MVSTEA(RawEA rawEA)
           
MVSTEA(java.lang.String name)
          Constructor the sets the name of this EA.
MVSTEA(java.lang.String name, boolean isCritical)
          Constructor the sets the name of this EA and whether it is to be critical.
 
Method Summary
 void addEA(AbstractEA aEA)
          Adds an EA, The first added EA determines the numeric type of every subsequent EA.
 int getAllEntryType()
          The type of every entry in this EA.
 void setAllEntryType(int allEntryType)
          Sets the type of every entry.
 java.lang.String toString()
          A report on this object.
 
Methods inherited from class net.jqhome.jwps.ea.MVMTEA
fromRawEA, getEA, getEntryType, getMVEA2, getMVMTCount, getRawEASize, getSTEntryLength, getSVEA2, mvmtSetup, toRawEA, valueSize
 
Methods inherited from class net.jqhome.jwps.ea.EAVector
addEA, addEA, equals, getCodepage, getEAAt, getEACodepage, getEACount, getEAType, getVector, isDefaultCodepage, removeEAAt, setCodepage, size, toXML
 
Methods inherited from class net.jqhome.jwps.ea.AbstractEA
fileToBytes, getName, getType, isCritical, isUserDefined, setCritical, setName, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MVSTEA

public MVSTEA(RawEA rawEA)
       throws JWPException

MVSTEA

public MVSTEA(java.lang.String name)
       throws JWPException
Constructor the sets the name of this EA. The type is EAT_MVST and it is non-critical.

Parameters:
name - the name
Throws:
JWPException - if there was a problem in the superclass.

MVSTEA

public MVSTEA(java.lang.String name,
              boolean isCritical)
       throws JWPException
Constructor the sets the name of this EA and whether it is to be critical.

Parameters:
name - the name
isCritical - true if this is a critical EA.
Throws:
JWPException - if there was a problem in the superclass.

MVSTEA

public MVSTEA()
       throws JWPException
Default constructor

Throws:
JWPException - if a error occured in the superclass.
Method Detail

getAllEntryType

public int getAllEntryType()
The type of every entry in this EA.

Returns:
int the numeric type of all the entries.

setAllEntryType

public void setAllEntryType(int allEntryType)
                     throws JWPException
Sets the type of every entry. This is called whenever an applicatiion adds an EA. This will check to see that the passed value is the same as the numeric type for all contained EAs.

Parameters:
allEntryType - the type of the entry to be checked or added
Throws:
JWPException - if the entry type has been set and this is not that same numeric type.

toString

public java.lang.String toString()
A report on this object.

Overrides:
toString in class MVMTEA
Returns:
the report.

addEA

public void addEA(AbstractEA aEA)
           throws JWPException
Adds an EA, The first added EA determines the numeric type of every subsequent EA.

Overrides:
addEA in class EAVector
Parameters:
aEA - the abstract EA to aee.
Throws:
JWPException - if this is not the first EA and it has a different numeric type that the other EAs.