|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.metadata.runtime.impl.AbstractMetadataRecord
com.metamatrix.metadata.runtime.impl.FileRecordImpl
public class FileRecordImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.metamatrix.modeler.core.metadata.runtime.FileRecord |
|---|
FileRecord.MetadataFieldNames, FileRecord.MetadataMethodNames |
| Nested classes/interfaces inherited from interface com.metamatrix.modeler.core.metadata.runtime.MetadataRecord |
|---|
MetadataRecord.MetadataRecordProperties |
| Field Summary |
|---|
| Fields inherited from class com.metamatrix.metadata.runtime.impl.AbstractMetadataRecord |
|---|
delegate, eObject |
| Constructor Summary | |
|---|---|
FileRecordImpl()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compare two records for equality. |
boolean |
getBinary()
Return true if this is a binary file else false. |
java.io.InputStream |
getContent()
Get the contents of the file in the VDB. |
long |
getFileLength()
Get the length of the file this record represents |
FileRecord |
getFileRecord()
Get the instance of this class back |
java.lang.String |
getModelName()
Return the name of the model in which this entity exists. |
java.lang.String |
getPathInVdb()
Get the path to the file represented by this record in the vdb. |
java.lang.String[] |
getTokenReplacements()
The strings used to replace tokens in the file in the vdb |
java.lang.String[] |
getTokens()
The strings representing tokens in the file in the vdb |
int |
hashCode()
Get hashcode for From. |
boolean |
isIndexFile()
Check if the record represents a index file record. |
boolean |
isModelFile()
Check if the record represents a model file record. |
void |
setIndexSelector(IndexSelector selector)
Set the indexSelector on this record. |
void |
setPathInVdb(java.lang.String pathInVdb)
|
void |
setTokenReplacements(java.lang.String[] tokenReplacements)
Set the strings used to replace a tokens in the file in the vdb |
void |
setTokens(java.lang.String[] tokens)
Set the strings that tokens in the file that need to be replaced. |
java.lang.String |
toString()
|
| Methods inherited from class com.metamatrix.metadata.runtime.impl.AbstractMetadataRecord |
|---|
getEObject, getFullName, getIndexVersion, getName, getNameInSource, getParentFullName, getParentPathString, getParentUUID, getPath, getPathString, getPropertyValue, getRecordType, getResourcePath, getUUID, setEObjectFinder, setFullName, setIndexVersion, setName, setNameInSource, setParentUUID, setPropertyValue, setRecordType, setResourcePath, setUUID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.metamatrix.modeler.core.metadata.runtime.MetadataRecord |
|---|
getEObject, getFullName, getName, getNameInSource, getParentFullName, getParentPathString, getParentUUID, getPath, getPathString, getPropertyValue, getRecordType, getResourcePath, getUUID, setPropertyValue |
| Constructor Detail |
|---|
public FileRecordImpl()
| Method Detail |
|---|
public java.lang.String getPathInVdb()
VDBFile
getPathInVdb in interface VDBFileVDBFile.getPathInVdb()public boolean getBinary()
FileRecord
getBinary in interface FileRecordcom.metamatrix.modeler.core.metadata.runtime.FileRecord#isBinary()public java.io.InputStream getContent()
VDBFile
getContent in interface VDBFileVDBFile.getContent()public long getFileLength()
VDBFile
getFileLength in interface VDBFileVDBFile.getFileLength()public void setPathInVdb(java.lang.String pathInVdb)
pathInVdb - The pathInVdb to set.public java.lang.String[] getTokens()
FileRecord
getTokens in interface FileRecordcom.metamatrix.modeler.core.metadata.runtime.FileRecord#getTokenReplacementString1()public java.lang.String[] getTokenReplacements()
FileRecord
getTokenReplacements in interface FileRecordFileRecord.getTokenReplacements()public void setTokens(java.lang.String[] tokens)
FileRecord
setTokens in interface FileRecordtokens - The tokens in the file that need to be replacedFileRecord.setTokens(java.lang.String[])public void setTokenReplacements(java.lang.String[] tokenReplacements)
FileRecord
setTokenReplacements in interface FileRecordtokenReplacements - The token replacement stringscom.metamatrix.modeler.core.metadata.runtime.FileRecord#setTokenReplacementString2(java.lang.String[])public void setIndexSelector(IndexSelector selector)
FileRecord
setIndexSelector in interface FileRecordselector - The indexSelector used to look up file contentsFileRecord.setIndexSelector(com.metamatrix.modeler.core.index.IndexSelector)public FileRecord getFileRecord()
FileRecord
getFileRecord in interface FileRecordFileRecord.getFileRecord()public java.lang.String getModelName()
MetadataRecord
getModelName in interface FileRecordgetModelName in interface MetadataRecordgetModelName in class AbstractMetadataRecordMetadataRecord.getModelName()public boolean isIndexFile()
FileRecord
isIndexFile in interface FileRecordFileRecord.isIndexFile()public boolean isModelFile()
FileRecord
isModelFile in interface FileRecordFileRecord.getModelName()public boolean equals(java.lang.Object obj)
equals in class AbstractMetadataRecordpublic int hashCode()
hashCode in class AbstractMetadataRecordpublic java.lang.String toString()
toString in class AbstractMetadataRecord
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||