com.nurelm.nucontent.model
Class StandAloneFile

java.lang.Object
  extended bycom.nurelm.nucontent.model.Node
      extended bycom.nurelm.nucontent.model.File
          extended bycom.nurelm.nucontent.model.StandAloneFile
All Implemented Interfaces:
java.io.Serializable

public class StandAloneFile
extends File
implements java.io.Serializable

Object representing a NuContent file.

Corresponds to the tag

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.nurelm.nucontent.model.File
name, shortDesc
 
Fields inherited from class com.nurelm.nucontent.model.Node
DEFAULT_NAME, DEFAULT_SHORT_DESC, id, isNewWindow, site, transientGeneration, transientIsBottomChildNode, transientIsChildNode, transientIsSelected, transientIsTopChildNode, version
 
Constructor Summary
protected StandAloneFile()
          Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor.
  StandAloneFile(java.lang.String fileId, java.lang.String name, java.lang.String shortDesc, java.lang.String fileName)
          Creates a new File object.
 
Method Summary
 java.lang.String getFileId()
          Returns this object's unique-per-page ID.
 
Methods inherited from class com.nurelm.nucontent.model.File
canBreed, getFileName, getName, getShortDesc, getURI, hasChildren, isChildLinkEditable, isChildLinkViewable, setFileName, setName, setShortDesc
 
Methods inherited from class com.nurelm.nucontent.model.Node
getId, getIsNewWindow, getTransientGeneration, getTransientIsBottomChildNode, getTransientIsChildNode, getTransientIsSelected, getTransientIsTopChildNode, getURI, getVersion, setIsNewWindow, setTransientGeneration, setTransientIsBottomChildNode, setTransientIsChildNode, setTransientIsSelected, setTransientIsTopChildNode, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandAloneFile

protected StandAloneFile()
Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor.


StandAloneFile

public StandAloneFile(java.lang.String fileId,
                      java.lang.String name,
                      java.lang.String shortDesc,
                      java.lang.String fileName)
Creates a new File object.

Parameters:
fileId - The ID of the NuFile - if not in a RepeatList, must be unique on the Page where it will be added. If in a RepeatList, then it must be unique within the RepeatItem in which it will be added.
name - The file's short descriptive name, which will be used as its alt tag within NuContent.
fileName - The file name corresponding to this file.
Method Detail

getFileId

public java.lang.String getFileId()
Returns this object's unique-per-page ID.

Returns:
This object's ID.