|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 VDBFile
VDBFile.getPathInVdb()
public boolean getBinary()
FileRecord
getBinary
in interface FileRecord
com.metamatrix.modeler.core.metadata.runtime.FileRecord#isBinary()
public java.io.InputStream getContent()
VDBFile
getContent
in interface VDBFile
VDBFile.getContent()
public long getFileLength()
VDBFile
getFileLength
in interface VDBFile
VDBFile.getFileLength()
public void setPathInVdb(java.lang.String pathInVdb)
pathInVdb
- The pathInVdb to set.public java.lang.String[] getTokens()
FileRecord
getTokens
in interface FileRecord
com.metamatrix.modeler.core.metadata.runtime.FileRecord#getTokenReplacementString1()
public java.lang.String[] getTokenReplacements()
FileRecord
getTokenReplacements
in interface FileRecord
FileRecord.getTokenReplacements()
public void setTokens(java.lang.String[] tokens)
FileRecord
setTokens
in interface FileRecord
tokens
- 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 FileRecord
tokenReplacements
- The token replacement stringscom.metamatrix.modeler.core.metadata.runtime.FileRecord#setTokenReplacementString2(java.lang.String[])
public void setIndexSelector(IndexSelector selector)
FileRecord
setIndexSelector
in interface FileRecord
selector
- The indexSelector used to look up file contentsFileRecord.setIndexSelector(com.metamatrix.modeler.core.index.IndexSelector)
public FileRecord getFileRecord()
FileRecord
getFileRecord
in interface FileRecord
FileRecord.getFileRecord()
public java.lang.String getModelName()
MetadataRecord
getModelName
in interface FileRecord
getModelName
in interface MetadataRecord
getModelName
in class AbstractMetadataRecord
MetadataRecord.getModelName()
public boolean isIndexFile()
FileRecord
isIndexFile
in interface FileRecord
FileRecord.isIndexFile()
public boolean isModelFile()
FileRecord
isModelFile
in interface FileRecord
FileRecord.getModelName()
public boolean equals(java.lang.Object obj)
equals
in class AbstractMetadataRecord
public int hashCode()
hashCode
in class AbstractMetadataRecord
public java.lang.String toString()
toString
in class AbstractMetadataRecord
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |