public class HideRule
extends org.eclipse.birt.report.model.core.Structure
ReportItem
.
Member properties in Hide
are all intrinsic properties. That is,
values of "format" and "valueExpr" properties can be unset.
Choices for the "format" member are defined in
DesignChoiceConstants
.
DesignChoiceConstants
Modifier and Type | Field and Description |
---|---|
protected Expression |
expression
The expression for the visibility rule.
|
protected java.lang.String |
format
The comparison operator.
|
static java.lang.String |
FORMAT_MEMBER
Name of the format member.
|
static java.lang.String |
STRUCTURE_NAME
Name of this structure within the meta-data dictionary.
|
static java.lang.String |
VALUE_EXPR_MEMBER
Name of the property that gives the expression for the format member.
|
Constructor and Description |
---|
HideRule()
The default Constructor.
|
HideRule(java.lang.String format,
java.lang.String expression)
Constructs the hide structure with the format choice and expression.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression()
Returns the expression of the rule.
|
java.lang.String |
getFormat()
Returns the format as an internal choice name.
|
protected java.lang.Object |
getIntrinsicProperty(java.lang.String propName)
Returns the value of a structure property represented as a member
variable.
|
java.lang.String |
getStructName()
Returns the name of the structure definition.
|
StructureHandle |
handle(SimpleValueHandle valueHandle,
int index)
Creates the specific handle of this structure.
|
void |
setExpression(java.lang.String expression)
Sets the expression for this visibility rule.
|
void |
setFormat(java.lang.String format)
Sets the output format.
|
protected void |
setIntrinsicProperty(java.lang.String propName,
java.lang.Object value)
Sets the value of of a structure property represented as a member
variable.
|
java.util.List<SemanticException> |
validate(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Validates this structure.
|
checkStringMember, copy, equals, getCompatibleValue, getContext, getDefn, getElement, getExpressionProperty, getHandle, getHandle, getLocalProperty, getLocalProperty, getMemberDefn, getObjectDefn, getProperty, getProperty, getReferencableProperty, getStringProperty, isDesignTime, isReferencable, setContext, setExpressionProperty, setProperty, setProperty, setupContext, updateReference
public static final java.lang.String FORMAT_MEMBER
public static final java.lang.String VALUE_EXPR_MEMBER
public static final java.lang.String STRUCTURE_NAME
protected java.lang.String format
FORMAT_TYPE_ALL
. The allowed choices are:
FORMAT_TYPE_ALL
FORMAT_TYPE_VIEWER
FORMAT_TYPE_EMAIL
FORMAT_TYPE_PRINT
FORMAT_TYPE_PDF
FORMAT_TYPE_RTF
FORMAT_TYPE_REPORTLET
FORMAT_TYPE_EXCEL
FORMAT_TYPE_WORD
FORMAT_TYPE_POWERPOINT
protected Expression expression
public HideRule()
public HideRule(java.lang.String format, java.lang.String expression)
format
- the choice name for the formatexpression
- the expression for the visibility rulepublic java.lang.String getStructName()
IStructure
protected void setIntrinsicProperty(java.lang.String propName, java.lang.Object value)
org.eclipse.birt.report.model.core.Structure
setIntrinsicProperty
in class org.eclipse.birt.report.model.core.Structure
propName
- the name of the property to setvalue
- the property valueprotected java.lang.Object getIntrinsicProperty(java.lang.String propName)
org.eclipse.birt.report.model.core.Structure
getIntrinsicProperty
in class org.eclipse.birt.report.model.core.Structure
propName
- name of the propertypublic java.lang.String getFormat()
DesignChoiceConstants
and they are:
FORMAT_TYPE_ALL
FORMAT_TYPE_VIEWER
FORMAT_TYPE_EMAIL
FORMAT_TYPE_PRINT
FORMAT_TYPE_PDF
FORMAT_TYPE_RTF
FORMAT_TYPE_REPORTLET
FORMAT_TYPE_EXCEL
FORMAT_TYPE_WORD
FORMAT_TYPE_POWERPOINT
public void setFormat(java.lang.String format)
DesignChoiceConstants
and they are:
FORMAT_TYPE_ALL
FORMAT_TYPE_VIEWER
FORMAT_TYPE_EMAIL
FORMAT_TYPE_PRINT
FORMAT_TYPE_PDF
FORMAT_TYPE_RTF
FORMAT_TYPE_REPORTLET
FORMAT_TYPE_EXCEL
FORMAT_TYPE_WORD
FORMAT_TYPE_POWERPOINT
format
- the output format to setpublic java.lang.String getExpression()
public void setExpression(java.lang.String expression)
expression
- the value expression to setpublic StructureHandle handle(SimpleValueHandle valueHandle, int index)
org.eclipse.birt.report.model.core.Structure
handle
in class org.eclipse.birt.report.model.core.Structure
valueHandle
- the value handle of this structure list property this
structure is inindex
- the position of this structure in structure listpublic java.util.List<SemanticException> validate(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
validate
in class org.eclipse.birt.report.model.core.Structure
module
- the moduleelement
- the element contains this structureStructure.validate(Module,
org.eclipse.birt.report.model.core.DesignElement)
Copyright © 2014 OpenText Corp. All rights reserved.