Copyright @ 2002 SAP. All Rights Reserved.

com.sap.tc.complib
Class ComponentType

java.lang.Object
  |
  +--com.sap.tc.complib.ComponentType

public final class ComponentType
extends java.lang.Object

Class representing component and build templates.


Constructor Summary
ComponentType()
          Creates a new empty template instance.
ComponentType(java.lang.String vendor, java.lang.String type)
          Creates a new template instance with given vendor id and type.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether the given ComponentType object is "equal to" this one.
 java.lang.String getSubType()
          Returns the subtype of the template
 java.lang.String getType()
          Returns the type of the template
 java.lang.String getVendor()
          Returns the vendor of the template
 int hashCode()
           
 void serialize(XMLWriter writer)
          Serializes the template to the given XMLWriter.
 void setSubType(java.lang.String subtype)
          Sets the subtype of the template
 void setType(java.lang.String type)
          Sets the type of the template
 void setVendor(java.lang.String vendor)
          Sets the vendor of the template
 void validate()
          Verifies that the template is valid (according to the DTD).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentType

public ComponentType()
Creates a new empty template instance.

ComponentType

public ComponentType(java.lang.String vendor,
                     java.lang.String type)
Creates a new template instance with given vendor id and type.
Method Detail

getVendor

public java.lang.String getVendor()
Returns the vendor of the template

setVendor

public void setVendor(java.lang.String vendor)
Sets the vendor of the template

getType

public java.lang.String getType()
Returns the type of the template

setType

public void setType(java.lang.String type)
Sets the type of the template

getSubType

public java.lang.String getSubType()
Returns the subtype of the template

setSubType

public void setSubType(java.lang.String subtype)
Sets the subtype of the template

validate

public void validate()
              throws ValidationException
Verifies that the template is valid (according to the DTD).
Throws:
ValidationException - if the object is not valid.

serialize

public void serialize(XMLWriter writer)
               throws ValidationException
Serializes the template to the given XMLWriter.
Parameters:
writer - the XMLWriter to use for serialization.

equals

public boolean equals(java.lang.Object obj)
Determines whether the given ComponentType object is "equal to" this one. Compares type, vendor and subtype (if defined).
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Copyright @ 2002 SAP. All Rights Reserved.