public class ConfigVariable
extends org.eclipse.birt.report.model.core.ReferencableStructure
This is a managed object, meaning that all changes should be made though the command layer so that they can be undone and redone. Each config variable has the following properties:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_VAR_STRUCT
Name of this structure.
|
static java.lang.String |
NAME_MEMBER
Name of the config variable name member.
|
static java.lang.String |
VALUE_MEMBER
Name of the config variable value member.
|
Constructor and Description |
---|
ConfigVariable()
Constructs the config var with a required name.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getIntrinsicProperty(java.lang.String memberName)
Returns the value of a structure property represented as a member
variable.
|
java.lang.String |
getName()
Returns the config variable name.
|
java.lang.String |
getReferencableProperty()
Gets the value of the referencable member.
|
java.lang.String |
getStructName()
Returns the name of the structure definition.
|
java.lang.String |
getValue()
Returns the config variable value.
|
StructureHandle |
handle(SimpleValueHandle valueHandle,
int index)
Creates the specific handle of this structure.
|
boolean |
isReferencableProperty(java.lang.String memberName)
Checks whether the member of the input name is the referencable member or
not.
|
protected void |
setIntrinsicProperty(java.lang.String memberName,
java.lang.Object value)
Sets the value of of a structure property represented as a member
variable.
|
void |
setName(java.lang.String name)
Sets the config variable name.
|
void |
setValue(java.lang.String value)
Sets the config vatiable value.
|
java.lang.String |
toString() |
java.util.List |
validate(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Validate whether this structure is valid.
|
addClient, addClientStructure, broadcast, clone, dropClient, dropClientStructure, getClientList, getClientStructures, getLocalProperty, getProperty, hasReferences, isReferencable, updateReference
checkStringMember, copy, equals, getCompatibleValue, getContext, getDefn, getElement, getExpressionProperty, getHandle, getHandle, getLocalProperty, getMemberDefn, getObjectDefn, getProperty, getStringProperty, isDesignTime, setContext, setExpressionProperty, setProperty, setProperty, setupContext, updateReference
public static final java.lang.String CONFIG_VAR_STRUCT
public static final java.lang.String NAME_MEMBER
public static final java.lang.String VALUE_MEMBER
public ConfigVariable()
public java.lang.String getStructName()
IStructure
protected java.lang.Object getIntrinsicProperty(java.lang.String memberName)
org.eclipse.birt.report.model.core.Structure
getIntrinsicProperty
in class org.eclipse.birt.report.model.core.ReferencableStructure
memberName
- name of the propertyprotected void setIntrinsicProperty(java.lang.String memberName, java.lang.Object value)
org.eclipse.birt.report.model.core.Structure
setIntrinsicProperty
in class org.eclipse.birt.report.model.core.ReferencableStructure
memberName
- the name of the property to setvalue
- the property valuepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the config value to setpublic java.lang.String toString()
toString
in class java.lang.Object
public 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 validate(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
org.eclipse.birt.report.model.core.Structure
PropertyValueException
.validate
in class org.eclipse.birt.report.model.core.ReferencableStructure
module
- the moduleelement
- the element contains this structurepublic boolean isReferencableProperty(java.lang.String memberName)
org.eclipse.birt.report.model.core.ReferencableStructure
isReferencableProperty
in class org.eclipse.birt.report.model.core.ReferencableStructure
memberName
- the member name to checkpublic java.lang.String getReferencableProperty()
org.eclipse.birt.report.model.core.Structure
getReferencableProperty
in class org.eclipse.birt.report.model.core.Structure
Copyright © 2014 OpenText Corp. All rights reserved.