|
Docmosis API 4.5.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.docmosis.template.store.TemplateIdentifier
A Template can be uniquely identified by a name and a context. It is dependent on the type of TemplateStore used as to what might constitute a context. Typically the context is simply a path-like string such as "project1/templates/"
Constructor Summary | |
TemplateIdentifier(String name)
Construct a new template identifier with the given name and a template context matching the root (or top-level) of the store. |
|
TemplateIdentifier(String name,
String context)
Construct a new template identifier with the given name and context. |
|
TemplateIdentifier(String name,
TemplateContext context)
Construct a new identifier with the given name and context. |
Method Summary | |
static TemplateIdentifier |
createUniqueTempTemplateIdentifier()
Create a unique template identifier, typically useful only for templates that are temporary in nature. |
boolean |
equals(Object other)
|
static TemplateIdentifier |
fromPath(String fullPath)
Construct a TemplateIdentifier from a full path to a template (template an context combined). |
TemplateContext |
getContext()
Get the context of this template. |
String |
getFullPath()
Return the context plus name as a path ( |
String |
getName()
Get the name for this template id. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TemplateIdentifier(String name)
name
- the template name.public TemplateIdentifier(String name, String context)
name
- the template namecontext
- the context namepublic TemplateIdentifier(String name, TemplateContext context)
name
- the name for the templatecontext
- the context (path) for the template. A null context
means the root (or top-level) of the store.Method Detail |
public String getName()
public static TemplateIdentifier fromPath(String fullPath)
fullPath
- the context and path combined.
public TemplateContext getContext()
TemplateStore
public String getFullPath()
public boolean equals(Object other)
public int hashCode()
public String toString()
public static TemplateIdentifier createUniqueTempTemplateIdentifier()
|
Docmosis API 4.5.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |