public class CustomStyle
extends java.lang.Object
implements oracle.dss.util.persistence.Persistable
| Constructor and Description |
|---|
CustomStyle() |
CustomStyle(java.lang.Class object,
java.lang.String stylePath) |
CustomStyle(java.io.InputStream stream) |
CustomStyle(java.lang.String xml) |
| Modifier and Type | Method and Description |
|---|---|
CustomStyle |
getBaseStyle()
Retrieves the style upon which this style is based.
|
oracle.dss.util.persistence.PersistableAttributes |
getPersistableAttributes(oracle.dss.util.persistence.PersistableAttributes attrs)
Retrieves the attributes of the component, for searching.
|
oracle.dss.util.persistence.AggregateInfo[] |
getPersistableComponents()
Retrieves a list of
Persistable components that the
component aggregates. |
java.lang.String |
getPersistableObjectType()
Retrieves the
Persistable object type for this
CustomStyle. |
java.lang.String |
getTitle()
Retrieves the title of this
CustomStyle. |
java.lang.String |
getXMLAsString()
Retrieves the XML representation of the component.
|
void |
initialize(java.util.Hashtable env)
Initializes the component with the persistence environment.
|
void |
setBaseStyle(CustomStyle baseStyle)
Specifies the
CustomStyle that this CustomStyle
is based on. |
void |
setPersistableAttributes(oracle.dss.util.persistence.PersistableAttributes attrs)
Specifies attributes that can be used for searching in the BI Beans
Catalog.
|
void |
setPersistableComponents(oracle.dss.util.persistence.AggregateInfo[] persistables)
Specifies a list of
Persistable components that the
component aggregates. |
void |
setPersistableObjectType(java.lang.String persistableObjectType)
Specifies the
Persistable object type for this
CustomStyle. |
void |
setTitle(java.lang.String title)
Specifies the title for this
CustomStyle. |
boolean |
setXMLAsString(java.lang.String xml)
Specifies the XML representation of the component.
|
public CustomStyle()
public CustomStyle(java.lang.String xml)
public CustomStyle(java.lang.Class object,
java.lang.String stylePath)
throws java.io.IOException
java.io.IOExceptionpublic CustomStyle(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic CustomStyle getBaseStyle()
CustomStyle are added to
the CustomStyle that this method returns.
If this CustomStyle sets the same properties as the
base style, then the settings in this CustomStyle take
precedence.CustomStyle upon which this CustomStyle
is based.public void setBaseStyle(CustomStyle baseStyle)
CustomStyle that this CustomStyle
is based on.
Style property settings in this CustomStyle are added to
the CustomStyle that you pass in this method.
If this CustomStyle sets the same properties as the
base style, then the settings in this CustomStyle take
precedence.baseStyle - The CustomStyle upon which to base this
CustomStyle.public java.lang.String getTitle()
CustomStyle.CustomStyle.public void setTitle(java.lang.String title)
CustomStyle.
The title is the name that appears in the BI Beans Catalog.title - The title for this CustomStyle.public java.lang.String getPersistableObjectType()
Persistable object type for this
CustomStyle.CustomStyle in the BI Beans
Catalog.PersistableConstants.Attributes.OBJECT_TYPE,
PersistableConstants.GRAPHSTYLEpublic void setPersistableObjectType(java.lang.String persistableObjectType)
Persistable object type for this
CustomStyle.persistableObjectType - A constant that identifies the object
type for this CustomStyle in the BI Beans Catalog.PersistableConstants.Attributes.OBJECT_TYPE,
PersistableConstants.GRAPHSTYLEpublic void initialize(java.util.Hashtable env)
oracle.dss.util.persistence.SimplePersistableContext interface in
JNDI.initialize in interface oracle.dss.util.persistence.SimplePersistableenv - Environment properties.public oracle.dss.util.persistence.AggregateInfo[] getPersistableComponents()
oracle.dss.util.persistence.contract.AggregableContractPersistable components that the
component aggregates.getPersistableComponents in interface oracle.dss.util.persistence.contract.AggregableContractpublic void setPersistableComponents(oracle.dss.util.persistence.AggregateInfo[] persistables)
oracle.dss.util.persistence.contract.AggregableContractPersistable components that the
component aggregates.setPersistableComponents in interface oracle.dss.util.persistence.contract.AggregableContractpersistables - An AggregateInfo for each component
that this component has.public oracle.dss.util.persistence.PersistableAttributes getPersistableAttributes(oracle.dss.util.persistence.PersistableAttributes attrs)
oracle.dss.util.persistence.SimplePersistablegetPersistableAttributes in interface oracle.dss.util.persistence.SimplePersistableattrs - The searchable attributes that the application has
defined for this component.public void setPersistableAttributes(oracle.dss.util.persistence.PersistableAttributes attrs)
oracle.dss.util.persistence.SimplePersistableoracle.dss.persistence.ApplicationAttribute
instances to a BasicAttributes collection, and pass in to the bind method.setPersistableAttributes in interface oracle.dss.util.persistence.SimplePersistableattrs - PersistableAttributes that specify search
attributes for the component.public java.lang.String getXMLAsString()
oracle.dss.util.persistence.StringXMLizablegetXMLAsString in interface oracle.dss.util.persistence.StringXMLizablepublic boolean setXMLAsString(java.lang.String xml)
oracle.dss.util.persistence.StringXMLizablesetXMLAsString in interface oracle.dss.util.persistence.StringXMLizablexml - The XML representation of the component.true the XML was successfully set,
false if not.