Class Template<T>
java.lang.Object
be.kuleuven.cs.distrinet.sparta.io.templates.Template<T>
- Direct Known Subclasses:
DescriptionDiagramItemTemplate,DescriptionDiagramsTemplate,StaticTemplate,ThreatItemDiagramTemplate,ThreatItemTemplate,ThreatsTemplate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe raw template text.abstract Stringinstantiate(T obj) toString()
-
Constructor Details
-
Template
-
-
Method Details
-
getFilename
-
getTemplate
The raw template text. The classpath resource is read lazily on first access and cached, so constructing a template (including the static singleton instances) never fails; a missing or unreadable resource surfaces as anUncheckedIOExceptionwhen the template is used.- Returns:
- the template text
- Throws:
UncheckedIOException- if the template resource is missing or unreadable
-
instantiate
-
toString
-