org.w3c.jigedit.cvs
Class CvsEntryResource

java.lang.Object
  extended by org.w3c.tools.resources.AttributeHolder
      extended by org.w3c.tools.resources.Resource
          extended by org.w3c.tools.resources.FramedResource
              extended by org.w3c.tools.resources.AbstractContainer
                  extended by org.w3c.tools.resources.ContainerResource
                      extended by org.w3c.jigedit.cvs.CvsEntryResource
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, ContainerInterface, AttributeChangedListener, FrameEventListener, StructureChangedListener

public class CvsEntryResource
extends ContainerResource

This class exports the state of an entry. For the time being it doesn't do much, but it should act as a directory (container) for all revisions of a document.

The lookup method of this entity should be able to turn a revision number into an editable (or viewable) document.


Field Summary
protected  java.lang.String name
           
protected  ResourceReference rr_cvsframe
           
 
Fields inherited from class org.w3c.tools.resources.ContainerResource
acquired, ATTR_KEY, debug
 
Fields inherited from class org.w3c.tools.resources.AbstractContainer
ur
 
Fields inherited from class org.w3c.tools.resources.FramedResource
ATTR_OID, attrListener, debugEvent, event_disabled, framesRef, structListener
 
Fields inherited from class org.w3c.tools.resources.Resource
ATTR_CONTEXT, ATTR_HELP_URL, ATTR_IDENTIFIER, ATTR_LAST_MODIFIED, ATTR_PARENT, ATTR_RESOURCE_FRAMES, ATTR_STORE_ENTRY, ATTR_URL, co, id
 
Fields inherited from class org.w3c.tools.resources.AttributeHolder
attributes, values
 
Method Summary
protected  void checkRevisionNumber(java.lang.String rev)
           
protected  CvsDirectory getCvsManager()
           
protected  java.lang.String getCvsURL()
           
protected  HtmlGenerator getHtmlGenerator(java.lang.String title)
           
protected  int getMinor(java.lang.String revision)
           
 ResourceReference getResourceReference()
          Get the ResourceReference of that resource.
protected  ResourceReference getRevisionResource(java.lang.String revision)
           
 ResourceReference lookup(java.lang.String revision)
          Lookup a children in the container.
protected  java.lang.String parseDiff(java.lang.String diff)
          replace < by <.
protected  HtmlGenerator parseLog(java.lang.String log)
           
protected  void writeLinks(java.io.OutputStream out, byte[] b, int offset, int length)
           
 
Methods inherited from class org.w3c.tools.resources.ContainerResource
acquireChildren, addResource, createDefaultResource, delete, delete, deleteChildren, enumerateResourceIdentifiers, getChildrenSpaceEntry, getClone, getKey, getMatchingCharsCount, getSpaceEntry, initialize, internalLookup, lookup, notifyUnload, registerResource, replace, resourceCreated, resourceModified, resourceRemoved, updateDefaultChildAttributes
 
Methods inherited from class org.w3c.tools.resources.AbstractContainer
attributeChanged, enumerateResourceIdentifiers, resourceUnloaded
 
Methods inherited from class org.w3c.tools.resources.FramedResource
addAttributeChangedListener, addStructureChangedListener, collectFramesReference, disableEvent, displayEvent, enableEvent, eventDisabled, fireAttributeChangeEvent, fireStructureChangedEvent, fireStructureChangedEvent, frameAdded, frameModified, frameRemoved, getFrame, getFrame, getFrameReference, getFrameReference, getFramesReference, getOid, markModified, perform, performFrames, postAttributeChangeEvent, postEvent, postStructureChangedEvent, postStructureChangedEvent, processEvent, registerFrame, registerFrameIfNone, removeAttributeChangedListener, removeStructureChangedListener, setSilentValue, setSilentValue, setValue, unregisterFrame
 
Methods inherited from class org.w3c.tools.resources.Resource
acceptUnload, checkMultipleLock, collectFrames, getContext, getFrame, getFrames, getHelpURL, getHelpURL, getIdentifier, getLastModified, getParent, getServer, getSpace, getStoreEntry, getURLPath, getValue, getValue, initialize, isInitialized, isUnloaded, pickleValues, setContext, setContext, setValue, unsafeGetContext, unsafeGetFrame, unsafeGetFrames, unsafeGetIdentifier, unsafeGetResourceReference, unsafeGetURLPath, unsafeGetValue, updateAttributes
 
Methods inherited from class org.w3c.tools.resources.AttributeHolder
definesAttribute, definesAttribute, getAttributes, getBoolean, getChar, getClone, getClone, getDouble, getFloat, getInt, getLong, getString, getValue, lookupAttribute, print, setBoolean, setChar, setDouble, setFloat, setInt, setLong, setString, setValue, unsafeDefinesAttribute, unsafeGetDouble, unsafeGetString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

rr_cvsframe

protected ResourceReference rr_cvsframe
Method Detail

getMinor

protected int getMinor(java.lang.String revision)

getCvsManager

protected CvsDirectory getCvsManager()
                              throws InvalidResourceException
Throws:
InvalidResourceException

getCvsURL

protected java.lang.String getCvsURL()

checkRevisionNumber

protected void checkRevisionNumber(java.lang.String rev)
                            throws org.w3c.jigedit.cvs.CvsEntryResource.RevisionNumberException,
                                   CvsException
Throws:
org.w3c.jigedit.cvs.CvsEntryResource.RevisionNumberException
CvsException

writeLinks

protected void writeLinks(java.io.OutputStream out,
                          byte[] b,
                          int offset,
                          int length)
                   throws java.io.IOException
Throws:
java.io.IOException

parseDiff

protected java.lang.String parseDiff(java.lang.String diff)
replace < by <.


parseLog

protected HtmlGenerator parseLog(java.lang.String log)

getRevisionResource

protected ResourceReference getRevisionResource(java.lang.String revision)

lookup

public ResourceReference lookup(java.lang.String revision)
Description copied from class: ContainerResource
Lookup a children in the container.

Specified by:
lookup in interface ContainerInterface
Overrides:
lookup in class ContainerResource
Parameters:
revision - The name of the children to lookup.

getResourceReference

public ResourceReference getResourceReference()
Description copied from class: Resource
Get the ResourceReference of that resource. ResourceReference is the only public way to access a resource.

Overrides:
getResourceReference in class Resource
Returns:
a ResourceReference instance.

getHtmlGenerator

protected HtmlGenerator getHtmlGenerator(java.lang.String title)