public class TestPack
extends org.bladerunnerjs.model.AbstractBundlableNode
implements org.bladerunnerjs.model.engine.NamedNode
| Constructor and Description |
|---|
TestPack(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir) |
TestPack(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTemplateTransformations(java.util.Map<java.lang.String,java.lang.String> transformations)
Template transformation are used to replace aliases for namings that are automatically replaced when creating an node.
|
void |
assertValidName() |
java.lang.String |
getName() |
java.lang.String |
getTemplateName()
The method returns the name of the template, that is, the entity type and not the template group (which represents a collection
of templates).
|
boolean |
isNamespaceEnforced() |
boolean |
isValidName() |
MemoizedFile[] |
memoizedScopeFiles() |
java.lang.String |
requirePrefix() |
java.util.List<org.bladerunnerjs.model.AssetContainer> |
scopeAssetContainers() |
java.util.List<LinkedAsset> |
seedAssets()
The method retrieves the a List of
LinkedAsset that are located within the current BundableNode. |
assets, getBundleSet, getLinkedAsset, handleLogicalRequest, handleLogicalRequestapp, asset, assetDiscoveryResult, assets, canonicaliseRequirePathaddObserver, addObserver, containsFile, create, createDefaultNode, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, rootStorageDir, setNodeDir, storageDir, storageFile, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddObserver, addObserver, containsFile, create, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, root, storageDir, storageFilepublic TestPack(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir)
public TestPack(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir,
java.lang.String name)
public MemoizedFile[] memoizedScopeFiles()
memoizedScopeFiles in interface org.bladerunnerjs.model.engine.NodememoizedScopeFiles in class org.bladerunnerjs.model.engine.AbstractNodepublic java.util.List<LinkedAsset> seedAssets()
BundlableNodeLinkedAsset that are located within the current BundableNode.seedAssets in interface BundlableNodeseedAssets in class org.bladerunnerjs.model.AbstractBundlableNodepublic java.lang.String requirePrefix()
requirePrefix in interface org.bladerunnerjs.model.AssetContainerpublic boolean isNamespaceEnforced()
isNamespaceEnforced in interface org.bladerunnerjs.model.AssetContainerpublic java.util.List<org.bladerunnerjs.model.AssetContainer> scopeAssetContainers()
scopeAssetContainers in interface org.bladerunnerjs.model.AssetContainerpublic void addTemplateTransformations(java.util.Map<java.lang.String,java.lang.String> transformations)
throws ModelUpdateException
BRJSNodeaddTemplateTransformations in interface BRJSNodetransformations - a Map of Strings to Strings where the key is the token and the value is the String it will be replaced with
* @see Custom TemplatesModelUpdateException - for any exceptions thrown while calculating node template transformationspublic java.lang.String getName()
getName in interface org.bladerunnerjs.model.engine.NamedNodepublic boolean isValidName()
isValidName in interface org.bladerunnerjs.model.engine.NamedNodepublic void assertValidName()
throws javax.naming.InvalidNameException
assertValidName in interface org.bladerunnerjs.model.engine.NamedNodejavax.naming.InvalidNameExceptionpublic java.lang.String getTemplateName()
BRJSNodegetTemplateName in interface BRJSNodegetTemplateName in class org.bladerunnerjs.model.AbstractBRJSNode