net.aerith.misao.xml
Class StarClass

java.lang.Object
  |
  +--net.aerith.misao.xml.StarClass

public class StarClass
extends java.lang.Object

The StarClass is a class with a funciton to convert between the Java class and the class element in the XML document of a star.


Constructor Summary
StarClass()
           
 
Method Summary
static java.lang.String getClassName(Star star)
          Gets the name for the class element in the XML document of the specified star object.
private static java.lang.String[] getClassPath()
          Gets the list of class paths to search Java class of a star.
static Star newInstance(java.lang.String name)
          Constructs a new Java star object of the specified name of the class element in the XML document.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

StarClass

public StarClass()
Method Detail

getClassPath

private static java.lang.String[] getClassPath()
Gets the list of class paths to search Java class of a star.
Returns:
the list of class paths to search Java class of a star.

getClassName

public static java.lang.String getClassName(Star star)
Gets the name for the class element in the XML document of the specified star object.
Parameters:
star - the star object.
Returns:
the name for the class element.

newInstance

public static Star newInstance(java.lang.String name)
                        throws java.lang.ClassNotFoundException,
                               java.lang.IllegalAccessException,
                               java.lang.InstantiationException
Constructs a new Java star object of the specified name of the class element in the XML document.
Parameters:
name - the name of the class element.
Returns:
the Java star object.
Throws:
java.lang.ClassNotFoundException - if the class cannot be located.
java.lang.IllegalAccessException - if the class or initializer is not accessible.
java.lang.InstantiationException - if the class represents an abstract class, an interface, an array class, a primitive type, or void; or if the instantiation fails for some other reason.