public class WoofTemplateInheritanceImpl extends Object implements WoofTemplateInheritance
WoofTemplateInheritance
implementation.Constructor and Description |
---|
WoofTemplateInheritanceImpl(WoofTemplateModel superTemplate,
WoofTemplateModel[] hierarchy,
String inheritancePropertyValue,
Set<String> inheritedOutputNames)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
WoofTemplateModel[] |
getInheritanceHierarchy()
Obtains the inheritance hierarchy for the particular super
WoofTemplateModel . |
String |
getInheritedTemplatePathsPropertyValue()
Convenience method to provide the
HttpTemplateSectionSource.PROPERTY_INHERITED_TEMPLATES
Property value. |
Set<String> |
getInheritedWoofTemplateOutputNames()
Obtains the names of all the inherited
WoofTemplateOutputModel
instances. |
WoofTemplateModel |
getSuperTemplate()
Obtains the super
WoofTemplateModel this
WoofTemplateInheritance represents. |
public WoofTemplateInheritanceImpl(WoofTemplateModel superTemplate, WoofTemplateModel[] hierarchy, String inheritancePropertyValue, Set<String> inheritedOutputNames)
superTemplate
- Super WoofTemplateModel
.hierarchy
- Inheritance hierarchy.inheritancePropertyValue
- Inheritance template path property value.inheritedOutputNames
- Inherited output names.public WoofTemplateModel getSuperTemplate()
WoofTemplateInheritance
WoofTemplateModel
this
WoofTemplateInheritance
represents.getSuperTemplate
in interface WoofTemplateInheritance
WoofTemplateModel
this
WoofTemplateInheritance
represents.public WoofTemplateModel[] getInheritanceHierarchy()
WoofTemplateInheritance
Obtains the inheritance hierarchy for the particular super
WoofTemplateModel
.
The first entry is the super WoofTemplateModel
followed by its
parent WoofTemplateModel
and so forth until the highest
WoofTemplateModel
in the inheritance hierarchy.
getInheritanceHierarchy
in interface WoofTemplateInheritance
WoofTemplateModel
.public String getInheritedTemplatePathsPropertyValue()
WoofTemplateInheritance
HttpTemplateSectionSource.PROPERTY_INHERITED_TEMPLATES
Property
value.getInheritedTemplatePathsPropertyValue
in interface WoofTemplateInheritance
Property
value.public Set<String> getInheritedWoofTemplateOutputNames()
WoofTemplateInheritance
Obtains the names of all the inherited WoofTemplateOutputModel
instances.
The WoofTemplateOutputModel
names provided do not need to be
configured as they can inherit their configuration.
getInheritedWoofTemplateOutputNames
in interface WoofTemplateInheritance
WoofTemplateOutputModel
instances.Copyright © 2005–2016. All rights reserved.