    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class xm.xm_NodeTypeDefaultsElement

    java.lang.Object
       |
       +----com.sun.java.swing.tree.DefaultMutableTreeNode
               |
               +----xg.xg_Node
                       |
                       +----xg.xg_Element
                               |
                               +----xm.xm_NodeTypeDefaultsElement

public class xm_NodeTypeDefaultsElement
extends xg_Element

An XML element which sets the default values for class names when subsequently registering entries in the node type registry. This element exists purely for convenience: to save having to repeat the same class names over and over again.

##

CustomizerClassAttName
  The name of the attribute which holds the name of the default customizer class.
ParserClassAttName
  The name of the attribute which holds the name of the default parser class.
RegisteredName
  The element type name normally used in XML for this sort of element.
ViewClassAttName
  The name of the attribute which holds the name of the default view class.

##

xm_NodeTypeDefaultsElement()
  Construct a node type defaults element with no name.
xm_NodeTypeDefaultsElement(String)
  Construct a node type defaults element with a name.

##

checkClassExistence(String, String)
  Check that the class exists.
getSummaryString()
  Get a summary descriptive string suitable for display in the tree view or elsewhere.
toString()
  Return a string representation of the element (intended for use as debug output).
verify()

  Verify that this node is correct (ie.

##

RegisteredName

     public static final String RegisteredName

  The element type name normally used in XML for this sort of element.

ParserClassAttName

     public static final String ParserClassAttName

  The name of the attribute which holds the name of the default parser class.

CustomizerClassAttName

     public static final String CustomizerClassAttName

  The name of the attribute which holds the name of the default customizer class.

ViewClassAttName

     public static final String ViewClassAttName

  The name of the attribute which holds the name of the default view class.

##

xm_NodeTypeDefaultsElement

     public xm_NodeTypeDefaultsElement()

  Construct a node type defaults element with no name.

xm_NodeTypeDefaultsElement

     public xm_NodeTypeDefaultsElement(String InputNodeName)

  Construct a node type defaults element with a name.

  Parameters:
    InputNodeName - The name of the element

##

verify

     public void verify() throws xg_VerificationException

  Verify that this node is correct (ie. internally correct and/or consistent with other nodes - such as its parent). The node is OK if it possesses a 'Name' attribute which names a valid node type registry entry class.

  Throws: xg_VerificationException
    Description of verification problem
  Overrides:
    verify in class xg_Node

checkClassExistence

     public String checkClassExistence(String InputAttName,
                                       String InputClassTypeDescription) throws xg_VerificationException

  Check that the class exists.

  Parameters:
    InputClassName - The name of the class to be checked
    InputClassTypeDescription - A snippet of text to place in any exception to explain the type of class which could not be found
  Returns:
    The name of the class from the attribute named InputAttName
  Throws: xg_VerificationException
    The named class does not exist

getSummaryString

     public String getSummaryString()

  Get a summary descriptive string suitable for display in the tree view or elsewhere.

  Returns:
    A description suitable for display in the tree view
  Overrides:
    getSummaryString in class xg_Node

toString

     public String toString()

  Return a string representation of the element (intended for use as debug output).

  Returns:
    String representation of the node
  Overrides:
    toString in class xg_Element

    All Packages  Class Hierarchy  This Package  Previous  Next  Index