com.vladium.emma.report
Class Item.ItemMetadata

java.lang.Object
  extended by com.vladium.emma.report.Item.ItemMetadata
All Implemented Interfaces:
IItemMetadata
Enclosing class:
Item

protected static final class Item.ItemMetadata
extends java.lang.Object
implements IItemMetadata


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vladium.emma.report.IItemMetadata
IItemMetadata.Factory
 
Field Summary
private  long m_attributeIDs
           
private  int m_typeID
           
private  java.lang.String m_typeName
           
 
Fields inherited from interface com.vladium.emma.report.IItemMetadata
TYPE_ID_ALL, TYPE_ID_CLASS, TYPE_ID_METHOD, TYPE_ID_PACKAGE, TYPE_ID_SRCFILE
 
Constructor Summary
Item.ItemMetadata(int typeID, java.lang.String typeName, long attributeIDs)
           
 
Method Summary
 long getAttributeIDs()
          Using a long is only ok for less than 64 global attributes, but this limit seems ok for a long time to come.
 int getTypeID()
           
 java.lang.String getTypeName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_typeID

private final int m_typeID

m_typeName

private final java.lang.String m_typeName

m_attributeIDs

private final long m_attributeIDs
Constructor Detail

Item.ItemMetadata

Item.ItemMetadata(int typeID,
                  java.lang.String typeName,
                  long attributeIDs)
Method Detail

getTypeID

public int getTypeID()
Specified by:
getTypeID in interface IItemMetadata

getTypeName

public java.lang.String getTypeName()
Specified by:
getTypeName in interface IItemMetadata

getAttributeIDs

public long getAttributeIDs()
Description copied from interface: IItemMetadata
Using a long is only ok for less than 64 global attributes, but this limit seems ok for a long time to come.

Specified by:
getAttributeIDs in interface IItemMetadata
Returns:
bitmask for valid attributes