net.jqhome.jwps.ea.standard
Class VersionEA

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

public class VersionEA
extends MVMTEA

This gives the version of the object. This is maintained by the application. It may be multi-valued and the entries may be binary or text.

This is supposed to be an MVMT. A lot of applications, however, actually set this as an ASCII EA or a binary EA. This class however converts it as needed.


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
VersionEA()
           
VersionEA(RawEA rEA)
           
 
Method Summary
 boolean isCritical()
          Returns if this EA is marked as critical.
 void setCritical(boolean value)
           
 
Methods inherited from class net.jqhome.jwps.ea.MVMTEA
fromRawEA, getEA, getEntryType, getMVEA2, getMVMTCount, getRawEASize, getSTEntryLength, getSVEA2, mvmtSetup, toRawEA, toString, valueSize
 
Methods inherited from class net.jqhome.jwps.ea.EAVector
addEA, 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, isUserDefined, setName, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionEA

public VersionEA()
          throws JWPException

VersionEA

public VersionEA(RawEA rEA)
          throws JWPException
Method Detail

isCritical

public boolean isCritical()
Description copied from class: AbstractEA
Returns if this EA is marked as critical. Note that critical here means that the applications that use this EA will not be able to function without it. Yes, you can edit or delete them as you like. All that this means is that some application needs it. The honor system is in effect to leave other applications EAs alone especially if they are critical.

Overrides:
isCritical in class AbstractEA

setCritical

public void setCritical(boolean value)
                 throws JWPException
Overrides:
setCritical in class AbstractEA
Throws:
JWPException - if an attempt is made to set the value to anything but false since this EA is not critical.