|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.content.virtual.version.VersionableContent
public class VersionableContent
Version maintains information on the verion of a VirtualNode.
Constructor Summary | |
---|---|
VersionableContent(int status,
String comment,
Property[] properties)
|
Method Summary | |
---|---|
void |
addProperty(Property property)
does nothing |
String |
getComment()
Gets a comment on the version. |
Property[] |
getProperties()
Gets the Properties for this node. |
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. |
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 |
---|
clone, 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 void setComment(String comment)
comment
- The comment to set.public Property getProperty(String name)
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.
If the Property
returned is that of a nested type, it will return Property
with a
Value
that is an array of Property
objects.
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.
A nested Property can be retrieved directly by using the proper 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.
See Property
indexedName
.
public Property[] getProperties()
public void addProperty(Property property)
public void setProperties(Property[] properties)
public String toString()
toString
in class Object
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |