com.ibm.ram.client
Class LocalFolderArtifact

java.lang.Object
  extended by com.ibm.ram.common.data.Artifact
      extended by com.ibm.ram.common.data.FolderArtifact
          extended by com.ibm.ram.client.RAMFolderArtifact
              extended by com.ibm.ram.client.LocalFolderArtifact
Direct Known Subclasses:
LocalArchiveFolderArtifact

public class LocalFolderArtifact
extends RAMFolderArtifact

Represents the artifact of an asset that has its contents stored locally as a folder.

Since:
7.1
Author:
kbauer

Field Summary
protected  java.io.File fLocalFolder
           
 
Fields inherited from class com.ibm.ram.common.data.Artifact
FILE_DELIM, TYPE_FILE, TYPE_FOLDER, TYPE_URL
 
Constructor Summary
LocalFolderArtifact(java.io.File file)
           
 
Method Summary
 Artifact[] getChildren()
          Returns all the children artifacts
 java.io.File getFolder()
          Return the underlying File object
 boolean hasChildren()
          Returns true if the folder has children
 
Methods inherited from class com.ibm.ram.client.RAMFolderArtifact
addArtifact, addArtifact, computeArtifactsAsFlatList, getArtifactFullPath, getAsset, getChild, getCreationDate, getLabel, getName, getPath, getReference, getSize, removeArtifact, removeArtifact, setAsset, setChildren, setCreationDate, setLabel, setName, setPath, setReference, setSize, setType
 
Methods inherited from class com.ibm.ram.common.data.FolderArtifact
getType
 
Methods inherited from class com.ibm.ram.common.data.Artifact
getChecksum, getMimeType, setChecksum, setMimeType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fLocalFolder

protected java.io.File fLocalFolder
Constructor Detail

LocalFolderArtifact

public LocalFolderArtifact(java.io.File file)
Parameters:
asset - A asset to the repository this asset lived in.
Since:
7.1
Method Detail

getChildren

public Artifact[] getChildren()
Returns all the children artifacts

Overrides:
getChildren in class RAMFolderArtifact
Returns:
The list of child artifacts.
Since:
7.1

hasChildren

public boolean hasChildren()
Returns true if the folder has children

Overrides:
hasChildren in class RAMFolderArtifact
Returns:
true is the FolderArtifact has child artifacts.
Since:
7.1

getFolder

public java.io.File getFolder()
Return the underlying File object

Since:
7.1