public class SWCScript extends Object implements ISWCScript
ISWCScript model.| Constructor and Description |
|---|
SWCScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefinition(String id)
Add a definition to the script.
|
void |
addDependency(String id,
DependencyType type)
Add a dependency to the script.
|
Set<String> |
getDefinitions()
Get a list of QNames declared in the
<def> tags. |
com.google.common.collect.SetMultimap<String,DependencyType> |
getDependencies()
Get a map of dependencies and their dependency types.
|
long |
getLastModified()
Get the last modified time-stamp of the script.
|
String |
getName()
Get the name of the script.
|
String |
getSignatureChecksum()
Get signature checksum.
|
byte[] |
getSource()
Get the ABC byte code of the script.
|
void |
setLastModified(long lastModified) |
void |
setName(String name) |
void |
setSignatureChecksum(String signatureChecksum) |
void |
setSource(byte[] abcData)
Attach the ABC byte code to the script.
|
String |
toString()
For debugging only.
|
public String getName()
ISWCScriptgetName in interface ISWCScriptpublic long getLastModified()
ISWCScriptgetLastModified in interface ISWCScriptpublic String getSignatureChecksum()
ISWCScriptgetSignatureChecksum in interface ISWCScriptpublic void addDefinition(String id)
ISWCScriptaddDefinition in interface ISWCScriptid - name of the definitionpublic void addDependency(String id, DependencyType type)
ISWCScriptaddDependency in interface ISWCScriptid - QName of the dependencytype - type of dependencypublic Set<String> getDefinitions()
ISWCScript<def> tags.getDefinitions in interface ISWCScriptpublic com.google.common.collect.SetMultimap<String,DependencyType> getDependencies()
ISWCScriptgetDependencies in interface ISWCScriptpublic void setName(String name)
name - the name to setpublic void setLastModified(long lastModified)
lastModified - the lastModified to setpublic void setSignatureChecksum(String signatureChecksum)
signatureChecksum - the signatureChecksum to setpublic void setSource(byte[] abcData)
ISWCScriptsetSource in interface ISWCScriptabcData - ABC byte codepublic byte[] getSource()
ISWCScriptgetSource in interface ISWCScriptCopyright © 2016 The Apache Software Foundation. All rights reserved.