com.ptc.core.ocmp.framework
Class LinkMetaData

java.lang.Object
  extended by com.ptc.core.ocmp.framework.LinkMetaData
All Implemented Interfaces:
Serializable

public final class LinkMetaData
extends Object
implements Serializable

This class is designed to hold link / association related information to be associated with a ComparisonSpec. It is optinal to specify all the attributes, while constructing an instance of this class. Only the type of link type (name) is required to construct an instance.

All attributes not specified or left empty will be filled by the processing logic from the configuration resource. The configuration resource holds defaults entries for comparison. Only ones needed to overriden need to be specified to allow for tailoring the comparison process.

Sample Code to construct a LinkMetaData instance:
String linkTypeName = linkClass.getName(); LinkMetaData linkMetaData = new LinkMetaData(linkTypeName);

// that's all that is required to construct an instance, other properties are optional to specify. Missing properties of the instance will be automatically filled by the server using information from the configuration resource. See the method level documentation for a particular property for more information.
linkMetaData.excludeAttrs(); // if link attributes are to be excluded from the comparison operation
linkMetaData.excludeTgtAttrs(); // if link target attributes are to be excluded from the comparison operation

linkMetaData.setSelectedAttrs(...); // if link attributes are not to be excluded and a custom set of attributes are to be compared, they can be set here, otherwise the default (configured in configuration resource) set of attributes will be chosen for comparison.

linkMetaData.setSelectedTgtAttrs(...); // if link target (other role object) attributes are not to be excluded and a custom set of attributes are to be compared, they can be set here, otherwise the default (configured in configuration resource) set of attributes will be chosen for comparison.



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait