public abstract class AbstractCodeTemplate extends java.lang.Object implements CodeTemplate
Constructor and Description |
---|
AbstractCodeTemplate()
This no-arg constructor is required for serialization purposes.
|
AbstractCodeTemplate(java.lang.String id)
Creates a new template.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a deep copy of this template.
|
int |
compareTo(CodeTemplate o)
Compares the
StaticCodeTemplate to another. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getID()
Returns the ID of this code template.
|
int |
hashCode()
Returns the hash code for this template.
|
void |
setID(java.lang.String id)
Sets the ID for this template.
|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
invoke
public AbstractCodeTemplate()
public AbstractCodeTemplate(java.lang.String id)
id
- The ID for this template.java.lang.IllegalArgumentException
- If id
is null
.public java.lang.Object clone()
clone
in interface CodeTemplate
clone
in class java.lang.Object
public int compareTo(CodeTemplate o)
StaticCodeTemplate
to another.compareTo
in interface java.lang.Comparable<CodeTemplate>
o
- Another StaticCodeTemplate
object.java.lang.ClassCastException
- If o
is
not an instance of CodeTemplate
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getID()
getID
in interface CodeTemplate
setID(String)
public int hashCode()
hashCode
in class java.lang.Object
public void setID(java.lang.String id)
id
- The ID for this template.java.lang.IllegalArgumentException
- If id
is null
.getID()