Spec operations - script to Java migration
The migration tables list the script operations that map to Spec Java™ API methods.
AttributeDefinition
| Script operation | Java method |
|---|---|
| getNodeChildren() | getChildren |
| getNodeName() | getName |
| getNodeDisplayName([Locale locale]) | getLocalizedNameforLocale |
| getNodePath() | getPath |
| isNodeGrouping() | isGrouping |
| getLocaleNode(Locale locale) | getLocalized |
| getNodeLocale() | getLocales |
| isNodeSpecRoot() | isSpecRoot |
String |
AttributeDefinitionProperty::getValue() |
| getNodeSpec() | getSpec() |
AttributeDefinitionProperty
| Script operation | Java method |
|---|---|
| getNodeAttributeValue() | getValue() |
| getNodeAttributeValues() | getValues() |
| Node::setAttribute(String sAttributeName, String sValue [, Boolean dontReplace]) | setValue |
| Node::setAttributes(String sAttributeName, HashMap sValues) | setValues |
LookupSpec
| Script operation | Java method |
|---|---|
PrimarySpec:: |
getPrimaryKeyAttributeDefinition |
| Spec::getSpecPrimaryKeyAttributePath() | AttributeDefinition to get to the path |
| Spec::setPrimaryKeyPath() | setPrimaryKey |
PrimarySpec
| Script operation | Java method |
|---|---|
PrimarySpec:: |
getPrimaryKeyAttributeDefinition |
| Spec::getSpecPrimaryKeyAttributePath() | AttributeDefinition to get to the path |
| Spec::setPrimaryKeyPath() | setPrimaryKey |
Spec
| Script operation | Java method |
|---|---|
SpecNode new SpecNode |
createAttributeDefinition |
| Spec::saveSpec() | save() |
| Spec::addToSpecLocales() | addLocale |
| Spec::replaceSpecLocales() | replaceLocales |
| Spec::setLocalized() | setLocalized |
| Spec::deleteSpec() | delete() |
| Spec::removeNode() | removeAttributeDefinition |
| Spec::removeFromSpecLocales | removeLocale() |
| Spec::getSpecType | getType() |
| Spec::isLocalized | isLocalized() |
Spec::getSpecAttribNames |
getAttributeDefinitions() and retrieve names of AttributeDefinitions |
| Spec::getSpecName | getName |
| Spec::getSpecNodes() | getAttributeDefinitions |
| Spec::getNodeByPath() | getAttributeDefinition |
| Spec::getLocales() | getLocales |
SpecManager
| Script operation | Java method |
|---|---|
| new Spec(String specName, String specType [, String specFileType]) | createSpec(String specName, SpecType aSpecType) |
| new Spec(String specName, String specType [, String specFileType]) | createSpec(String specName, FileSpec.FileType fileType) |
| Spec getSpecByName(String name [, Boolean bImmutable]) | getSpec |
| SpecMap getSpecMapByName([String name]) | SpecMap getSpecMap(String specMapName); |
SpecMap buildTestSpecMap(String mapName, String mapType, |
SpecMap createSpecMap(String specMapName, SpecMap.Type specMapType, |
SpecMap
| Script operation | Java method |
|---|---|
| Object SpecMap::getSpecMapSrcObject() | String getSourceObjectName(); |
| Object SpecMap::getSpecMapDstObject() | String getDestinationObjectName(); |
| SpecMap::saveSpecMap() | save(); |
| SpecMap::map(String sSrcPath, String sDstPath) | SpecMapEntry addMapping(AttributeDefinition sourceAttributeDefinition, |