|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.valdoc.rulebase.ValidationDocumentRuleBaseMetadata
public class ValidationDocumentRuleBaseMetadata
Field Summary |
---|
Fields inherited from interface org.eclipse.actf.validation.rulebase.IDocumentRuleBaseMetadata |
---|
ALIASES, SCRIPTS |
Constructor Summary | |
---|---|
ValidationDocumentRuleBaseMetadata()
|
Method Summary | |
---|---|
void |
clear()
clear all attributes from this metadata object |
Properties |
getAliases()
get the aliases associated with a document |
String |
getAliasValue(String aliasName)
Get the alias value for the given alias name. |
Object |
getAttribute(String name)
|
String[] |
getAttributeNames()
get all attribute names of this metadata object |
Map |
getAttributes()
return the attributes of this metadata object |
URL |
getDocumentLocation()
|
ScriptElement[] |
getScripts()
retreave the scripts associated with a document |
void |
setAliases(Properties aliases)
retreave the aliases for a document. |
void |
setAttribute(String name,
Object value)
|
void |
setAttributes(Map attributes)
set the attributes for this metadata object |
void |
setDocumentLocation(URL location)
|
void |
setScripts(ScriptElement[] scripts)
set the list of scripts to be associated with a document. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationDocumentRuleBaseMetadata()
Method Detail |
---|
public Properties getAliases()
IDocumentRuleBaseMetadata
getAliases
in interface IDocumentRuleBaseMetadata
IDocumentRuleBaseMetadata.setAliases(Properties)
public URL getDocumentLocation()
getDocumentLocation
in interface IDocumentRuleBaseMetadata
null
if no name is specifiedpublic ScriptElement[] getScripts()
IDocumentRuleBaseMetadata
getScripts
in interface IDocumentRuleBaseMetadata
public void setAliases(Properties aliases)
IDocumentRuleBaseMetadata
setAliases
in interface IDocumentRuleBaseMetadata
aliases
- is a map of alias name/value pairspublic void setDocumentLocation(URL location)
setDocumentLocation
in interface IDocumentRuleBaseMetadata
location
- URL of documentpublic void setScripts(ScriptElement[] scripts)
IDocumentRuleBaseMetadata
Scripts will typically be executed by a ICodeProcessor
object.
setScripts
in interface IDocumentRuleBaseMetadata
scripts
- is a list of script elements or an empty list if no script
elements are presentICodeProcessor
public void clear()
IRuleBaseMetadata
clear
in interface IRuleBaseMetadata
public Object getAttribute(String name)
getAttribute
in interface IRuleBaseMetadata
name
- of metadata attribute
null
if no name is
specifiedpublic String[] getAttributeNames()
IRuleBaseMetadata
getAttributeNames
in interface IRuleBaseMetadata
public Map getAttributes()
IRuleBaseMetadata
getAttributes
in interface IRuleBaseMetadata
public void setAttribute(String name, Object value)
setAttribute
in interface IRuleBaseMetadata
name
- of metadata attributevalue
- of metadata attributepublic void setAttributes(Map attributes)
IRuleBaseMetadata
setAttributes
in interface IRuleBaseMetadata
public int size()
size
in interface IRuleBaseMetadata
public String getAliasValue(String aliasName)
IDocumentRuleBaseMetadata
getAliasValue
in interface IDocumentRuleBaseMetadata
aliasName
- --
alias name
null
if no alias is defined for
the given name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |