org.apache.wvcm
Class ResourceImpl.LoadedProperties

java.lang.Object
  extended by org.apache.wvcm.ResourceImpl.LoadedProperties
Enclosing class:
ResourceImpl

protected class ResourceImpl.LoadedProperties
extends java.lang.Object

Loaded properties container.


Method Summary
protected  void addAllMissingAttributes(java.util.Map missingProperties)
          Update the properties container.
protected  void commit()
          Called after successful doWriteProperties to reset the caches.
protected  void commit(PropertyNameList.PropertyName pname)
          Called after successful doWriteContent to reset CONTENT_TYPE and CONTENT_CHARACTER_SET.
protected  java.lang.Object get(PropertyNameList.PropertyName pname)
          Get a property value
protected  PropertyNameList getAttributeNameList()
          Get list of available AttributeName's
protected  java.util.Map getContainer()
          Get the properties container.
protected  PropertyNameList getPropertyNameList()
          Get list of available PropertyName's
protected  java.util.List listOfRemovedAttributes()
          Get list of removed attributes
protected  java.util.List listOfSetProperties()
          Get list of created or modified properties
protected  void remove(PropertyNameList.AttributeName aname)
          Remove an attribute
protected  void resetContainer()
          Reset the properties container.
protected  void set(PropertyNameList.PropertyName pname, java.lang.Object value)
          Set a property value
protected  void setContainer(java.util.Map container)
          Set the properties container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

protected java.lang.Object get(PropertyNameList.PropertyName pname)
                        throws WvcmException
Get a property value

Parameters:
pname - the PropertyName
Returns:
the value
Throws:
WvcmException - if property is not available (because it was not requested)

set

protected void set(PropertyNameList.PropertyName pname,
                   java.lang.Object value)
Set a property value

Parameters:
pname - the PropertyName
value - the value

remove

protected void remove(PropertyNameList.AttributeName aname)
Remove an attribute

Parameters:
aname - the AttributeName

listOfRemovedAttributes

protected java.util.List listOfRemovedAttributes()
Get list of removed attributes

Returns:
a List

listOfSetProperties

protected java.util.List listOfSetProperties()
Get list of created or modified properties

Returns:
a List

getPropertyNameList

protected PropertyNameList getPropertyNameList()
Get list of available PropertyName's

Returns:
a List

getAttributeNameList

protected PropertyNameList getAttributeNameList()
Get list of available AttributeName's

Returns:
a List

commit

protected void commit()
Called after successful doWriteProperties to reset the caches.


commit

protected void commit(PropertyNameList.PropertyName pname)
Called after successful doWriteContent to reset CONTENT_TYPE and CONTENT_CHARACTER_SET.


resetContainer

protected void resetContainer()
Reset the properties container. Called e.g. after doUncheckout to reset the container and caches.


setContainer

protected void setContainer(java.util.Map container)
Set the properties container.


addAllMissingAttributes

protected void addAllMissingAttributes(java.util.Map missingProperties)
Update the properties container.


getContainer

protected java.util.Map getContainer()
Get the properties container.



Copyright (c) 2003 - Apache Software Foundation