|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.xtools.patterns.framework.PatternIdentity
This class identifies a pattern through the owning pattern library, the pattern definition's pattern identity and the given pattern definition version. The equals method is defined appropriately so that these composite pattern identities can be tested for equivalence.
| Constructor Summary | |
PatternIdentity(AbstractPatternLibrary patternLibrary,
String uniqueIdentifier,
String versionIdentifier)
Constructs a pattern identity which is a composite identity that includes the pattern library's identity and the pattern definition's identity. |
|
PatternIdentity(String patternIdentifier,
String patternVersion)
Constructs a pattern identity that has no owning library. |
|
PatternIdentity(String libraryIdentifier,
String libraryVersion,
String patternIdentifier,
String patternVersion)
Constructs a pattern identity that has no owning library specified by object but by name and version instead. |
|
| Method Summary | |
int |
compareTo(Object o)
|
boolean |
equals(Object object)
|
String |
getPatternId()
Returns the ID of the pattern descriptor. |
AbstractPatternLibrary |
getPatternLibrary()
Returns the pattern library identified by this pattern identity. |
String |
getPatternVersion()
Returns the version of the pattern descriptor. |
int |
hashCode()
(non-Javadoc) |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PatternIdentity(AbstractPatternLibrary patternLibrary,
String uniqueIdentifier,
String versionIdentifier)
patternLibrary - The pattern library for the pattern definitionuniqueIdentifier - the unique identifier for the pattern definitionversionIdentifier - the version identifier for the pattern definition
public PatternIdentity(String libraryIdentifier,
String libraryVersion,
String patternIdentifier,
String patternVersion)
libraryIdentifier - the identifier for the librarylibraryVersion - the library versionpatternIdentifier - the pattern identifierpatternVersion - the pattern version
public PatternIdentity(String patternIdentifier,
String patternVersion)
patternIdentifier - the pattern identifierpatternVersion - the pattern version| Method Detail |
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object object)
public String getPatternId()
IPatternIdentityUse the getPatternVersion method to retrieve the version of the pattern descriptor.
getPatternId in interface IPatternIdentitypublic AbstractPatternLibrary getPatternLibrary()
public String getPatternVersion()
IPatternIdentityUse the getPatternId method to retrieve the ID of the pattern descriptor.
getPatternVersion in interface IPatternIdentitypublic int hashCode()
Object.hashCode()
|
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.