|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.content.virtual.version.VersionableContent
public class VersionableContent
VersionableContent maintains information on a version of a VirtualNode.
Constructor Summary | |
---|---|
VersionableContent(int status, String comment, Property[] properties) |
Method Summary | |
---|---|
void |
addProperty(Property property) does nothing |
Object |
clone() Clones a VersionableContent object with its properties and values. |
String |
getComment() Gets a comment on the version. |
Property[] |
getProperties() Gets the Properties for this node. |
Property[] |
getProperties(String name) Returns the property referenced by name or null if the property does not exist. |
Property |
getProperty(String name) Returns the property referenced by name or null if the property does not exist. |
int |
getStatus() Returns the workflow status for the VersionableContent. |
String |
getVersionComment() Excluded - see CR353875. |
void |
setComment(String comment) Sets a comment on the version. |
void |
setProperties(Property[] properties) Sets the Properties for this node. |
void |
setStatus(int status) Sets the workflow status for the VersionableContent. |
String |
toString() Returns the attributes of this Node in a String. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionableContent(int status, String comment, Property[] properties)
Method Detail |
---|
public int getStatus()
Workflow
public void setStatus(int status)
Workflow
status
- The status to setpublic String getComment()
public String getVersionComment()
public void setComment(String comment)
comment
- The comment to set.public Property getProperty(String name)
name
- The name of the property to retrieve.NESTED_DELIMITER
between each parent and child property name. The delimiter is not valid for use within the actual name, only to seperate the parent/child names. <p/> If the Property
returned is that of a nested type, it will return Property
with a Value
that is an array of Property
objects. <p/> If the Property
returned is that of a multi valued nested type, it will return Property
with an array of Value
objects, of which each is an array of Property
objects. <p/> A nested Property can be retrieved directly by using the property name with delimiter (ie. myAddress.city). If a nested Property is multivalued, the index of that multivalued property will have to be reflected in the name, if you retrieve it directly (ie myAddresses[0].city will retrieve the first address's city in a multivalued nested property, or myAddresses[1].city will retrieve the second address's city. If the indexedName is not used to retrieve a property that is nested by a multivalued nested type, then only the first instance found, with that property name will be returned. The nesting tree will not be walked to find all properties of that name. See getProperties(name) for retrieving all Properties using a non-indexedName. <p/> See Property.getIndexedName()
<p/> If the specified property does not exist in the node, it will return null.public Property[] getProperties(String name)
name
- The name, indexedName or partially indexedName of the property to retrieve.NESTED_DELIMITER
between each parent and child property name. The delimiter is not valid for use within the actual name, only to seperate the parent/child names. <p/> If the Property
objects returned are that of nested types, each returned Property
will have a Value
that is an array of Property
objects. <p/> If the Property
objects returned are that of multi valued nested types, each returned Property
will have an array of Value
objects, of which each is an array of Property
objects. <p/> Nested Property objects can be retrieved directly by using the property name with delimiter (ie. myAddress.city). If the nested Property is not multivalued, the returned Property array will only have a single value, just as if using the getProperty(name) method. If a nested Property is multivalued, the index of that multivalued property can be reflected fully or partially in the name. If it is retrieved directly, ie myAddresses[0].city, the first address's city of the multivalued nested property will be returned just as myAddresses[1].city will retrieve the second address's city. If the non indexedName is used, ie myAddresses.city, then all cities will be returned. If using a partially indexed name to retrieve multiple Property objects, it has to start by being specific to unspecific, ie myAddresses[0].myNeighborhoods.name would be valid, while myAddresses.myNeighborhoods[0].name would not be valid. If the beginning branches of the nesting tree are not specified via indexing, then the following branches cannot be specified. <p/> See Property.getIndexedName()
<p/> If the specified property does not exist in the node, it will return null.public Property[] getProperties()
public void addProperty(Property property)
public void setProperties(Property[] properties)
public String toString()
toString
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- If the clone fails.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.