org.testng.xml
Class XmlClass

java.lang.Object
  extended by org.testng.xml.XmlClass
All Implemented Interfaces:
Serializable, Cloneable

public class XmlClass
extends Object
implements Serializable, Cloneable

This class describes the tag in testng.xml.

Author:
Cedric Beust
See Also:
Serialized Form

Constructor Summary
XmlClass(Class className)
           
XmlClass(Class className, Boolean declaredClass)
           
XmlClass(String name)
           
XmlClass(String name, Boolean declaredClass, int index)
           
 
Method Summary
 Object clone()
          Clone an XmlClass by copying all its components.
 boolean equals(Object obj)
           
 Boolean getDeclaredClass()
           
 List<String> getExcludedMethods()
           
 List<XmlInclude> getIncludedMethods()
           
 int getIndex()
          Note that this attribute does not come from the XML file, it's calculated internally and represents the order in which this class was found in its <test> tag.
 String getName()
           
 Class getSupportClass()
           
 int hashCode()
           
static String listToString(List<Integer> invocationNumbers)
           
 void setClass(Class className)
           
 void setDeclaredClass(Boolean declaredClass)
           
 void setExcludedMethods(List<String> excludedMethods)
           
 void setIncludedMethods(List<XmlInclude> includedMethods)
           
 void setName(String name)
           
 String toString()
           
 String toXml(String indent)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlClass

public XmlClass(String name)

XmlClass

public XmlClass(Class className)

XmlClass

public XmlClass(String name,
                Boolean declaredClass,
                int index)

XmlClass

public XmlClass(Class className,
                Boolean declaredClass)
Method Detail

getSupportClass

public Class getSupportClass()
Returns:
Returns the className.

setClass

public void setClass(Class className)
Parameters:
className - The className to set.

getExcludedMethods

public List<String> getExcludedMethods()
Returns:
Returns the excludedMethods.

setExcludedMethods

public void setExcludedMethods(List<String> excludedMethods)
Parameters:
excludedMethods - The excludedMethods to set.

getIncludedMethods

public List<XmlInclude> getIncludedMethods()
Returns:
Returns the includedMethods.

setIncludedMethods

public void setIncludedMethods(List<XmlInclude> includedMethods)
Parameters:
includedMethods - The includedMethods to set.

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getDeclaredClass

public Boolean getDeclaredClass()

setDeclaredClass

public void setDeclaredClass(Boolean declaredClass)

toString

public String toString()
Overrides:
toString in class Object

toXml

public String toXml(String indent)

listToString

public static String listToString(List<Integer> invocationNumbers)

clone

public Object clone()
Clone an XmlClass by copying all its components.

Overrides:
clone in class Object

getIndex

public int getIndex()
Note that this attribute does not come from the XML file, it's calculated internally and represents the order in which this class was found in its <test> tag. It's used to calculate the ordering of the classes when preserve-order is true.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010. All Rights Reserved.