public DataWrapper(String name) { super.setName(name); }
record.setName(name);
record.setName(name);
public Database(String dbName) { super.setName(dbName); this.version = "1"; }
public Database(String dbName, String version) { super.setName(dbName); this.version = version; }
public Role(String name) { super.setName(name); }
public Server(String name) { super.setName(name); }
/** * Set the "footer" values on the specified MetadataRecord. * All index file record footers are of the form: * modelPath|name|indexVersion * The order of the fields in the index file header must also * be the order of the arguments in method signature. */ private void setRecordFooterValues(final AbstractMetadataRecord record, final List<String> tokens, int tokenIndex) { if (record instanceof TransformationRecordImpl) { ((TransformationRecordImpl)record).setResourcePath(getOptionalToken(tokens, tokenIndex)); } tokenIndex++; if (record.getName() == null) { record.setName(getOptionalToken(tokens, tokenIndex++)); } //placeholder for index version getOptionalToken(tokens, tokenIndex++); }
/** * Set the "footer" values on the specified MetadataRecord. * All index file record footers are of the form: * modelPath|name|indexVersion * The order of the fields in the index file header must also * be the order of the arguments in method signature. */ private void setRecordFooterValues(final AbstractMetadataRecord record, final List<String> tokens, int tokenIndex) { if (record instanceof TransformationRecordImpl) { ((TransformationRecordImpl)record).setResourcePath(getOptionalToken(tokens, tokenIndex)); } tokenIndex++; if (record.getName() == null) { record.setName(getOptionalToken(tokens, tokenIndex++)); } //placeholder for index version getOptionalToken(tokens, tokenIndex++); }