org.ogf.graap.wsag.server.engine
Class TemplateIdentifier

java.lang.Object
  extended by org.ogf.graap.wsag.server.engine.TemplateIdentifier

public class TemplateIdentifier
extends Object

The template identifier is a unique identifier of a template in one agreement factory instance. It fact it is a concatenation of the template name and id.

Author:
Oliver Waeldrich

Constructor Summary
TemplateIdentifier(AgreementTemplateType template)
          Creates a new identifier for the given template.
TemplateIdentifier(String name, String version)
          Creates a new identifier for the given template name and version.
 
Method Summary
 boolean equals(Object compare)
          
 String getName()
           
 String getVersion()
           
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateIdentifier

public TemplateIdentifier(AgreementTemplateType template)
Creates a new identifier for the given template.

Parameters:
template - the agreement template

TemplateIdentifier

public TemplateIdentifier(String name,
                          String version)
Creates a new identifier for the given template name and version.

Parameters:
name - the template name
version - the template version (id)
Method Detail

equals

public boolean equals(Object compare)

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

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

getName

public String getName()
Returns:
the name

getVersion

public String getVersion()
Returns:
the version


Copyright © 2008-2012. All Rights Reserved.