|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.cosmos.rm.repository.internal.core.MetadataProcessor
public class MetadataProcessor
The meta-data processor loads in the meta-information of the repository. The meta information includes aliases, rule bindings, and SML-IF fields that are lost when importing an SML-IF document.
| Field Summary | |
|---|---|
static byte |
FIELD_BASE_URI
The fields |
static byte |
FIELD_DESCRIPTION
The fields |
static byte |
FIELD_DISPLAY_NAME
The fields |
static byte |
FIELD_NAME
The fields |
static byte |
FIELD_VERSION
The fields |
| Constructor Summary | |
|---|---|
MetadataProcessor(FileSystemSMLRepository repository)
Constructor |
|
| Method Summary | |
|---|---|
void |
addAliases(java.lang.String id,
java.lang.String[] aliases)
Binds the set of aliases with the documents represented by the id argument. |
void |
addRuleBinding(java.lang.String alias,
java.lang.String[] rules)
Binds a rule with a set of aliases passed in |
MetadataFileHandler |
getMetadataHandler()
|
java.lang.String[] |
retrieveAliases(java.lang.String id)
Retrieves and returns the aliases of the document with the id passed in. |
java.util.Map |
retrieveBoundRules(java.lang.String id)
Retrieve the bound rule of the document with the ID passed in. |
java.util.List |
retrieveDocuments(java.util.Map data,
boolean isAlias)
|
void |
setField(byte field,
java.lang.String value)
Sets the value of a field |
void |
setFields(byte[] fields,
java.lang.String[] values)
Equivalent to setField(fields[i], values[i]); |
void |
write()
Serializes the meta information into XML and writes it to a file that resides in the context root directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte FIELD_NAME
public static final byte FIELD_DISPLAY_NAME
public static final byte FIELD_VERSION
public static final byte FIELD_DESCRIPTION
public static final byte FIELD_BASE_URI
| Constructor Detail |
|---|
public MetadataProcessor(FileSystemSMLRepository repository)
contextDirectory - The context directory of the repository| Method Detail |
|---|
public java.util.List retrieveDocuments(java.util.Map data,
boolean isAlias)
public java.lang.String[] retrieveAliases(java.lang.String id)
id - The id of the document (aka the file name)
public java.util.Map retrieveBoundRules(java.lang.String id)
id - The id of the document (aka the path to the file name)
public void addAliases(java.lang.String id,
java.lang.String[] aliases)
id - The id of the documentaliases - The aliases of the document
public void addRuleBinding(java.lang.String alias,
java.lang.String[] rules)
rule - The rule aliasaliases - The aliases that the rule should be bound to
public void setField(byte field,
java.lang.String value)
field - The field. See FIELD_* constants.value - The value of the field.
public void setFields(byte[] fields,
java.lang.String[] values)
public void write()
public MetadataFileHandler getMetadataHandler()
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||