Copyright @ 2002 SAP. All Rights Reserved.

com.sap.tc.complib
Class PPReference

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

public final class PPReference
extends java.lang.Object

Class representing references to public parts.


Constructor Summary
PPReference()
          Create a new empty instance.
PPReference(Dependency dependency)
          Creates a new instance from the given dependency.
PPReference(java.lang.String name, DCReference component)
          Creates a new instance with given name and component.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 DCReference getComponent()
          Returns the development component to which the referenced public part belongs
 java.lang.String getName()
          Returns the name of the referenced public part
 int hashCode()
           
 void serialize(XMLWriter writer)
          Serializes the reference to the given XMLWriter.
 void setComponent(DCReference component)
          Declares the development component to which the referenced public part belongs
 void setName(java.lang.String name)
          Sets the name of the referenced public part
 java.lang.String toString()
           
 void validate()
          Verifies that the reference is valid.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PPReference

public PPReference()
Create a new empty instance.

PPReference

public PPReference(java.lang.String name,
                   DCReference component)
Creates a new instance with given name and component.
Parameters:
name - name of the public part.
component - the development component to which the public parts belongs

PPReference

public PPReference(Dependency dependency)
Creates a new instance from the given dependency.
Parameters:
dependency - the dependency to copy from.
Method Detail

getComponent

public DCReference getComponent()
Returns the development component to which the referenced public part belongs
Returns:
reference to a development component.

setComponent

public void setComponent(DCReference component)
Declares the development component to which the referenced public part belongs
Parameters:
reference - to a development component.

getName

public java.lang.String getName()
Returns the name of the referenced public part

setName

public void setName(java.lang.String name)
Sets the name of the referenced public part

validate

public void validate()
              throws ValidationException
Verifies that the reference is valid.
Throws:
ValidationException - if the object is not valid.

serialize

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright @ 2002 SAP. All Rights Reserved.