com.ibm.adt.ovf.ext
Interface ProgrammaticUnitType

All Superinterfaces:
CimString, EObject, Notifier
All Known Subinterfaces:
AllocationUnitsType, CapacityAllocationUnitsType

public interface ProgrammaticUnitType
extends CimString

A representation of the model object 'Programmatic Unit Type'.

See Also:
ExtPackage.getProgrammaticUnitType()

Field Summary
static long SCALE_GI
           
static long SCALE_KI
           
static long SCALE_MI
           
static long SCALE_TI
           
 
Method Summary
 java.lang.String getErrorFlags()
           
 int[] getErrorLocation()
           
 java.lang.String getErrorMessage()
           
 java.math.BigDecimal getModifier1()
          Modifier1 of the Programmatic Unit syntax is a number, e.g.
 int getModifier2Base()
          The Modifier2 base of the Programmatic Unit syntax is a base integer to an exponent, e.g.
 int getModifier2Exponent()
          The Modifier2 exponent of the Programmatic Unit syntax, e.g.
 ProgrammaticUnit getProgrammaticUnitAST()
           
 long getScale()
          The combined scale for the modifier1 and modifier2 terms, e.g.
 boolean isDumpTokens()
           
 boolean isValid()
           
 void setDumpTokens(boolean dumpTokens)
           
 
Methods inherited from interface org.dmtf.schemas.wscim.cim.common.CimString
getAnyAttribute, getValue, setValue
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

SCALE_KI

static final long SCALE_KI
See Also:
Constant Field Values

SCALE_MI

static final long SCALE_MI
See Also:
Constant Field Values

SCALE_GI

static final long SCALE_GI
See Also:
Constant Field Values

SCALE_TI

static final long SCALE_TI
See Also:
Constant Field Values
Method Detail

getProgrammaticUnitAST

ProgrammaticUnit getProgrammaticUnitAST()

isDumpTokens

boolean isDumpTokens()
Returns:
the dumpTokens

setDumpTokens

void setDumpTokens(boolean dumpTokens)
Parameters:
dumpTokens - the dumpTokens to set

getErrorMessage

java.lang.String getErrorMessage()

getErrorLocation

int[] getErrorLocation()

getErrorFlags

java.lang.String getErrorFlags()

isValid

boolean isValid()

getModifier1

java.math.BigDecimal getModifier1()
Modifier1 of the Programmatic Unit syntax is a number, e.g. "1.234" in "byte*1.234". The default is 1.

Returns:
modifier value or 1 if not present

getModifier2Base

int getModifier2Base()
The Modifier2 base of the Programmatic Unit syntax is a base integer to an exponent, e.g. "2" in "byte*2^10". The default is 1.

Returns:
modifier2 base value or 1 if not present

getModifier2Exponent

int getModifier2Exponent()
The Modifier2 exponent of the Programmatic Unit syntax, e.g. "10" in "byte*2^10". The default is 1.

Returns:
modifier2 base value or 1 if not present

getScale

long getScale()
The combined scale for the modifier1 and modifier2 terms, e.g. 10240 if the value is "byte*10*2^10".

Returns:
combined modifier1 and modifier2


© Copyright 2008 IBM Corp. 2008 All Rights Reserved