com.bea.content.el.support
Class VersionWrapperImpl

java.lang.Object
  extended by com.bea.content.el.support.VersionWrapperImpl
All Implemented Interfaces
Serializable

public class VersionWrapperImpl
extends Object
implements Serializable

This EL wrapper class implementation adds functionality around the Version class.

Examples:

     ${myNode.versions.allVersions}
     ${myNode.versions.versionById['3'].propertyMap['myNamedProperty'].value.stringValue}
     ${myNode.versions.latest.versionComment}
 

See Also
Version, Serialized Form

Method Summary
 Version getAsVersion()
          This returns the actual version so that the resolver mechanism can be circumvented if necessary.
 String getComment()
           
 String getModifiedBy()
          See Version.getModifiedBy()
 Calendar getModifiedDate()
          See Version.getModifiedDate()
 ID getNodeId()
          See Version.getNodeId()
 PropertyWrapperImpl[] getProperties()
          Create wrapped com.bea.content.Property objects.
 PropertyWrapperImpl[] getProperties(String name)
          Create wrapped com.bea.content.Property objects.
 PropertyWrapperImpl getProperty(String name)
          Create a wrapped com.bea.content.Property object.
 Map<String,PropertyWrapperImpl> getPropertyMap()
          Create and return a map of wrapped com.bea.content.Property objects, keyed by property name.
 int getStatus()
           
 String getVersionComment()
           
 String getVersionName()
          See Version.getVersionName()
 String toString()
          Returns wrapped string of Version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAsVersion

public Version getAsVersion()
This returns the actual version so that the resolver mechanism can be circumvented if necessary.

This will allow retrieval of "real" versions rather than the wrappers.

Returns
The actual version.

getNodeId

public ID getNodeId()
See Version.getNodeId()

See Also
Version.getNodeId()

getVersionName

public String getVersionName()
See Version.getVersionName()

See Also
Version.getVersionName()

getModifiedBy

public String getModifiedBy()
See Version.getModifiedBy()

See Also
Version.getModifiedBy()

getModifiedDate

public Calendar getModifiedDate()
See Version.getModifiedDate()

See Also
Version.getModifiedDate()

getProperty

public PropertyWrapperImpl getProperty(String name)
Create a wrapped com.bea.content.Property object.

See Also
VersionableContent.getProperty(String)

getProperties

public PropertyWrapperImpl[] getProperties()
Create wrapped com.bea.content.Property objects.

See Also
VersionableContent.getProperties()

getProperties

public PropertyWrapperImpl[] getProperties(String name)
Create wrapped com.bea.content.Property objects.

See Also
VersionableContent.getProperties(String)

getPropertyMap

public Map<String,PropertyWrapperImpl> getPropertyMap()
Create and return a map of wrapped com.bea.content.Property objects, keyed by property name.

Returns
a Map of PropertyWrapperImpl keyed by property name.

toString

public String toString()
Returns wrapped string of Version

Overrides:
toString in class Object
See Also
Version.toString()

getComment

public String getComment()
See Also
VersionableContent.getComment()

getVersionComment

public String getVersionComment()
See Also
VersionableContent.getVersionComment()

getStatus

public int getStatus()
See Also
VersionableContent.getStatus()


Copyright © 2011, Oracle. All rights reserved.