public DocumentHandler(){
  setElementHandler("java",JavaElementHandler.class);
  setElementHandler("null",NullElementHandler.class);
  setElementHandler("array",ArrayElementHandler.class);
  setElementHandler("class",ClassElementHandler.class);
  setElementHandler("string",StringElementHandler.class);
  setElementHandler("object",ObjectElementHandler.class);
  setElementHandler("void",VoidElementHandler.class);
  setElementHandler("char",CharElementHandler.class);
  setElementHandler("byte",ByteElementHandler.class);
  setElementHandler("short",ShortElementHandler.class);
  setElementHandler("int",IntElementHandler.class);
  setElementHandler("long",LongElementHandler.class);
  setElementHandler("float",FloatElementHandler.class);
  setElementHandler("double",DoubleElementHandler.class);
  setElementHandler("boolean",BooleanElementHandler.class);
  setElementHandler("new",NewElementHandler.class);
  setElementHandler("var",VarElementHandler.class);
  setElementHandler("true",TrueElementHandler.class);
  setElementHandler("false",FalseElementHandler.class);
  setElementHandler("field",FieldElementHandler.class);
  setElementHandler("method",MethodElementHandler.class);
  setElementHandler("property",PropertyElementHandler.class);
}

public DocumentHandler ( ) { setElementHandler ( "java" , JavaElementHandler . class ) ; setElementHandler ( "null" , NullElementHandler . class ) ; setElementHandler ( "array" , ArrayElementHandler . class ) ; setElementHandler ( "class" , ClassElementHandler . class ) ; setElementHandler ( "string" , StringElementHandler . class ) ; setElementHandler ( "object" , ObjectElementHandler . class ) ; setElementHandler ( "void" , VoidElementHandler . class ) ; setElementHandler ( "char" , CharElementHandler . class ) ; setElementHandler ( "byte" , ByteElementHandler . class ) ; setElementHandler ( "short" , ShortElementHandler . class ) ; setElementHandler ( "int" , IntElementHandler . class ) ; setElementHandler ( "long" , LongElementHandler . class ) ; setElementHandler ( "float" , FloatElementHandler . class ) ; setElementHandler ( "double" , DoubleElementHandler . class ) ; setElementHandler ( "boolean" , BooleanElementHandler . class ) ; setElementHandler ( "new" , NewElementHandler . class ) ; setElementHandler ( "var" , VarElementHandler . class ) ; setElementHandler ( "true" , TrueElementHandler . class ) ; setElementHandler ( "false" , FalseElementHandler . class ) ; setElementHandler ( "field" , FieldElementHandler . class ) ; setElementHandler ( "method" , MethodElementHandler . class ) ; setElementHandler ( "property" , PropertyElementHandler . class ) ; }
creates new instance of document handler .
