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()
ISWCScript
getName
in interface ISWCScript
public long getLastModified()
ISWCScript
getLastModified
in interface ISWCScript
public String getSignatureChecksum()
ISWCScript
getSignatureChecksum
in interface ISWCScript
public void addDefinition(String id)
ISWCScript
addDefinition
in interface ISWCScript
id
- name of the definitionpublic void addDependency(String id, DependencyType type)
ISWCScript
addDependency
in interface ISWCScript
id
- QName of the dependencytype
- type of dependencypublic Set<String> getDefinitions()
ISWCScript
<def>
tags.getDefinitions
in interface ISWCScript
public com.google.common.collect.SetMultimap<String,DependencyType> getDependencies()
ISWCScript
getDependencies
in interface ISWCScript
public 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)
ISWCScript
setSource
in interface ISWCScript
abcData
- ABC byte codepublic byte[] getSource()
ISWCScript
getSource
in interface ISWCScript
Copyright © 2016 The Apache Software Foundation. All rights reserved.