org.jtool.jxplatform.wrapper
Class JxImport

java.lang.Object
  extended byorg.jtool.jxplatform.wrapper.JxElement
      extended byorg.jtool.jxplatform.wrapper.JxImport

public class JxImport
extends JxElement

An object wrapping the Import or Ctor element.

Author:
Katsuhisa Maruyama

Field Summary
protected  java.lang.String name
          The import name.
 
Fields inherited from class org.jtool.jxplatform.wrapper.JxElement
element
 
Constructor Summary
protected JxImport()
          Creates a new, empty object.
protected JxImport(org.w3c.dom.Element elem)
          Creates a new object wrapping a Import element.
 
Method Summary
 boolean equals(JxImport jimport)
          Tests if a given import wrapper equals to this one.
 JxClass getJxClass()
          Obtains a class wrapper defining this file element.
 JxMethod getJxMethod()
          Obtains a method wrapper defining this file element.
 java.lang.String getName()
          Returns the name of this import.
static boolean isImport(org.w3c.dom.Element elem)
          Tests if a given element equals to Import.
 void print()
          Displays information about this import wrapper for debugging.
 
Methods inherited from class org.jtool.jxplatform.wrapper.JxElement
equals, existInTheSameClass, existInTheSameField, existInTheSameFile, existInTheSameMethod, existsInTheSameClass, existsInTheSameFile, existsInTheSameMethod, existsInTheSamePackage, getArrayOfElements, getChildElement, getChildElement, getChildElements, getChildElements, getChildNodes, getChildNodes, getClassElement, getDescendantElements, getDescendantElements, getDescendantElements, getDescendantElements, getElement, getElementById, getExpressionElements, getFieldElement, getFileElement, getFirstChildElement, getFirstChildElement, getId, getId, getIdentName, getIdentName, getJxField, getJxFile, getJxStaticInit, getKeyword, getLine, getMethodElement, getStatementElement, getStaticInitElement, getTypeElement, getTypeElements, getTypeName, indexOf, indexOf, isBinary, isClass, isClassOrInterface, isConstructor, isExpression, isField, isFile, isImport, isInterface, isInTheSameField, isLocal, isMethod, isMethodOrConstructor, isPackage, isParameter, isStatement, isStaticInit, isTerminalElement, isType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The import name.

Constructor Detail

JxImport

protected JxImport()
Creates a new, empty object.


JxImport

protected JxImport(org.w3c.dom.Element elem)
            throws JxWrapperException
Creates a new object wrapping a Import element.

Parameters:
elem - An DOM element to be wrapped.
Throws:
JxWrapperException - if the specified element is not valid.
Method Detail

getName

public java.lang.String getName()
Returns the name of this import.

Returns:
The name string.

isImport

public static boolean isImport(org.w3c.dom.Element elem)
Tests if a given element equals to Import.

Parameters:
elem - An element of the DOM.
Returns:
true if the element equals to Import, otherwise false.

equals

public boolean equals(JxImport jimport)
Tests if a given import wrapper equals to this one.

Parameters:
jimport - An import wrapper.
Returns:
true if the import wrapper equals to this one.

getJxClass

public JxClass getJxClass()
Obtains a class wrapper defining this file element.

Overrides:
getJxClass in class JxElement
Returns:
Always null.

getJxMethod

public JxMethod getJxMethod()
Obtains a method wrapper defining this file element.

Overrides:
getJxMethod in class JxElement
Returns:
Always null.

print

public void print()
Displays information about this import wrapper for debugging.