|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the composite unique identity for a pattern as represented by a pattern descriptor.
The components of the identity
are the unique identifier (getPatternId
) and the version of the pattern (getPatternVersion
).
Pattern identities are comparable, therefore a total order is imposed on the set
of patterns. Make sure that the unique identifier is sufficiently unique to avoid pattern identity overlap.
The classes that implement IPatternIdentity interface should override equals
and hashCode
to ensure that the semantics for equality
of pattern identities is consistent with equals.
Method Summary | |
String |
getPatternId()
Returns the ID of the pattern descriptor. |
String |
getPatternVersion()
Returns the version of the pattern descriptor. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public String getPatternId()
Use the getPatternVersion
method to retrieve the version of the pattern descriptor.
public String getPatternVersion()
Use the getPatternId
method to retrieve the ID of the pattern descriptor.
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.