did.xml
Class DIDEntityType

java.lang.Object
  |
  +--did.xml.DIDEntityType

public class DIDEntityType
extends java.lang.Object

File:         DIDEntityType.java
Version:      1.0
Description:  

Modification Log:
Date          Name    Comment
xx-xx-xxxx    XXX	   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Field Summary
 int[] BuiltInEntityLevels
           
 java.lang.String[] BuiltInEntityTypeNames
           
 int[] BuiltInEntityTypes
           
 int[] EntityLevels
           
 java.lang.String[] EntityTypeNames
           
 int[] EntityTypes
           
protected  int length
           
static java.lang.String OTHER
           
static int PAGE
           
static java.lang.String PAGENAME
           
static int UNDETERMINED
           
static int UNSPECIFIED
           
 
Constructor Summary
DIDEntityType()
          Method used to instantiate this class.
 
Method Summary
 void add(java.lang.String name)
           
 void add(java.lang.String name, int level)
           
 boolean ancestor(int type1, int type2)
           
 void buildTypes(org.w3c.dom.Document xmlRoot)
          Read types from the XML structure.
 void clearAll()
          Remove all types.
 java.util.Enumeration getBuiltInTypeNames()
           
 int getIndex(int num)
          Method to get index from type num
 int getIndex(java.lang.String name)
          Method to get index from type name
 java.lang.String getName(int index)
          Method to get the name of entity type from the index of the array storing entity type names.
 int getType(int index)
          Method to get type number from index
 java.util.Enumeration getTypeNames()
           
 boolean isValid(java.lang.String name)
           
 int length()
           
 int nameToType(java.lang.String name)
          Method to get type number from type name
 void restoreBuiltIn()
          Restore built-in types.
 java.lang.String typeToName(int num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDETERMINED

public static final int UNDETERMINED

UNSPECIFIED

public static final int UNSPECIFIED

PAGE

public static final int PAGE

PAGENAME

public static final java.lang.String PAGENAME

OTHER

public static final java.lang.String OTHER

BuiltInEntityTypeNames

public java.lang.String[] BuiltInEntityTypeNames

BuiltInEntityTypes

public int[] BuiltInEntityTypes

BuiltInEntityLevels

public int[] BuiltInEntityLevels

EntityTypeNames

public java.lang.String[] EntityTypeNames

EntityTypes

public int[] EntityTypes

EntityLevels

public int[] EntityLevels

length

protected int length
Constructor Detail

DIDEntityType

public DIDEntityType()
Method used to instantiate this class.
Method Detail

clearAll

public void clearAll()
Remove all types.
Parameters:
-  
Returns:
 

restoreBuiltIn

public void restoreBuiltIn()
Restore built-in types.
Parameters:
-  
Returns:
 

add

public void add(java.lang.String name)
Parameters:
-  
Returns:
if the type name is not found, return null.

add

public void add(java.lang.String name,
                int level)
Parameters:
-  
Returns:
if the type name is not found, return null.

getName

public java.lang.String getName(int index)
Method to get the name of entity type from the index of the array storing entity type names.
Parameters:
-  
Returns:
 

typeToName

public java.lang.String typeToName(int num)
Parameters:
-  
Returns:
if the type name is not found, return null.

nameToType

public int nameToType(java.lang.String name)
Method to get type number from type name
Parameters:
-  
Returns:
if the type name is not found, return UNDETERMINED.

getType

public int getType(int index)
Method to get type number from index
Parameters:
-  
Returns:
if the type name is not found, return UNDETERMINED.

getIndex

public int getIndex(java.lang.String name)
Method to get index from type name
Parameters:
-  
Returns:
if the type name is not found, return UNDETERMINED.

getIndex

public int getIndex(int num)
Method to get index from type num
Parameters:
-  
Returns:
if the type name is not found, return UNDETERMINED.

getTypeNames

public java.util.Enumeration getTypeNames()
Parameters:
-  
Returns:
 

getBuiltInTypeNames

public java.util.Enumeration getBuiltInTypeNames()
Parameters:
-  
Returns:
 

isValid

public boolean isValid(java.lang.String name)
Parameters:
-  
Returns:
 

ancestor

public boolean ancestor(int type1,
                        int type2)
Parameters:
-  
Returns:
 

length

public int length()
Parameters:
-  
Returns:
 

buildTypes

public void buildTypes(org.w3c.dom.Document xmlRoot)
Read types from the XML structure.
Parameters:
-  
Returns: