|
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.el.support.PropertyWrapperImpl
public class PropertyWrapperImpl
This EL wrapper class implementation adds functionality around the Property
class.
Here are some common examples:
${myNode.propertyMap
['myBinaryPropertyName'].url
.renderUrl
} ${myNode.versions
.versionById
['3'].propertyMap
['myNamedProperty'].value.stringValue}
Property
, VersionServiceImpl
, PropertyWrapperImpl
, ValueWrapperImpl
, UrlServiceImpl
Method Summary | |
---|---|
Property |
getAsProperty() This returns the actual property so that the resolver mechanism can be circumvented if necessary. |
String |
getAsTextHtml() Returns this property as text or html if the type is html or text. |
boolean |
getHasValue() See Property.hasValue() |
IconServiceImpl |
getIcon() Returns the icon service defined in the current web application. |
String |
getIndexedName() See Property.getIndexedName() |
boolean |
getIsAudio() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'audio/' |
boolean |
getIsBinary() Determines if the current property is of type Property.BINARY . |
boolean |
getIsBoolean() Determines if the current property is of type Property.BOOLEAN . |
boolean |
getIsCalendar() Determines if the current property is of type Property.CALENDAR |
boolean |
getIsDouble() Determines if the current property is of type Property.DOUBLE |
boolean |
getIsExcel() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'application/vnd.ms-excel', 'application/excel', 'application/x-excel', or 'application/x-msexcel' |
boolean |
getIsGIF() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'image/gif' |
boolean |
getIsHTML() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'text/html' |
boolean |
getIsImage() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'image/' |
boolean |
getIsJPEG() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'image/jpeg' |
boolean |
getIsLink() Determines if the current property is of type Property.LINK |
boolean |
getIsLong() Determines if the current property is of type Property.LONG |
boolean |
getIsMSWord() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'application/vnd.ms-word' or 'application/msword' |
boolean |
getIsMultivalued() Determines if this property is multi-valued or not. |
boolean |
getIsNested() Determines if the current property is of type Property.NESTED . |
boolean |
getIsPDF() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'application/pdf' |
boolean |
getIsPlainText() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'text/plain' |
boolean |
getIsPNG() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'image/png' |
boolean |
getIsPowerPoint() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'application/vnd.ms-powerpoint', 'application/mspowerpoint', or 'application/x-mspowerpoint' |
boolean |
getIsPrimaryProperty() Determines if this property is the primary property. |
boolean |
getIsRequired() Determines if this property is required/mandatory. |
boolean |
getIsRestricted() Determines if this property is restricted. |
boolean |
getIsRichText() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'text/richtext' |
boolean |
getIsString() Determines if the current property is of type Property.STRING |
boolean |
getIsTextBased() This convenience method determine if this property is text-based. |
boolean |
getIsVideo() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'video/' |
boolean |
getIsXML() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'text/xml' |
boolean |
getIsZip() This will take a best guess at which binary property represents the passed in and then check to see if that binary's mime type is 'application/zip' |
NodeWrapperImpl |
getLinkAsNode() Convenience method to retrieve a link property type as a NodeWrapperImpl , rather than an ID . |
String |
getName() See Property.getName() |
List<PropertyWrapperImpl[]> |
getNestedProperties() Convenience method to retrieve nested properties for this multi-valued property. |
PropertyWrapperImpl[] |
getNestedProperty() Convenience method to retrieve nested properties for this single-valued property. |
PropertyChoice[] |
getPropertyChoices() Returns an array of property choices for this particular property, if any. |
int |
getType() See Property.getType() |
UrlServiceImpl |
getUrl() Returns a URL service for this property. |
ValueWrapperImpl |
getValue() See Property.getValue() |
ValueWrapperImpl[] |
getValues() See Property.getValues() |
String |
toString() Retrieves toString on the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Property getAsProperty()
This will allow retrieval of "real" properties rather than the wrappers.
public String getIndexedName()
Property.getIndexedName()
Property.getIndexedName()
public String getName()
Property.getName()
Property.getName()
public int getType()
Property.getType()
Property.getType()
public ValueWrapperImpl getValue()
Property.getValue()
Property.getValue()
public ValueWrapperImpl[] getValues()
Property.getValues()
Property.getValues()
public boolean getHasValue()
Property.hasValue()
Property.hasValue()
public boolean getIsBinary()
Property.BINARY
.Property.BINARY
public boolean getIsNested()
Property.NESTED
.Property.NESTED
public boolean getIsBoolean()
Property.BOOLEAN
.Property.BOOLEAN
public boolean getIsLong()
Property.LONG
Property.LONG
public boolean getIsDouble()
Property.DOUBLE
Property.DOUBLE
public boolean getIsString()
Property.STRING
Property.STRING
public boolean getIsCalendar()
Property.CALENDAR
Property.CALENDAR
public boolean getIsLink()
Property.LINK
Property.LINK
public boolean getIsPlainText()
public boolean getIsRichText()
public boolean getIsHTML()
public boolean getIsTextBased()
The following criteria is used to determine the return value:
public boolean getIsXML()
public boolean getIsPDF()
public boolean getIsZip()
public boolean getIsMSWord()
public boolean getIsImage()
public boolean getIsJPEG()
public boolean getIsGIF()
public boolean getIsPNG()
public boolean getIsAudio()
public boolean getIsVideo()
public boolean getIsExcel()
public boolean getIsPowerPoint()
public boolean getIsMultivalued()
public PropertyChoice[] getPropertyChoices()
com.bea.content.PropertyChoice
, or null if there are none.public boolean getIsRestricted()
public boolean getIsRequired()
public boolean getIsPrimaryProperty()
public UrlServiceImpl getUrl()
public IconServiceImpl getIcon()
public String toString()
toString
in class Object
public PropertyWrapperImpl[] getNestedProperty()
If the type of this property is not of type Property.NESTED
, null is returned.
If the value of the property is multi-valued, the first nested value will be returned. See also getNestedProperties()
public List<PropertyWrapperImpl[]> getNestedProperties()
If the type of this property is not of type Property.NESTED
, an empty collection is returned.
public NodeWrapperImpl getLinkAsNode()
NodeWrapperImpl
, rather than an ID
.
This method will return a NodeWrapperImpl
if the property type is of type Property.LINK
, or null if it is not or the value is not set.
NodeWrapperImpl
public String getAsTextHtml()
If isHTML or isPlainText is true, the text or html is returned as a string.
Note:Caution should be taken when invoking this method on properties with large documents. For those properties that contain large documents, the <cm:getProperty>
tag instead. should be used.
This property must be text-based to return it's contents. These include:
|
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.