|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.rpe.common.data.Property
public class Property
This class models the property concept in Rational Reporting for Document Generation (RRDG). Almost all of the RRDG concepts use properties, such as templates, template elements, document specifications, outputs, and variables.
A property is a name-value pair, which can have additional traits like type, editable, visible and required.
Optionally, a property can have a DomainValue
, which describes the valid domain for its values.
Constructor Summary | |
---|---|
Property()
|
|
Property(java.lang.String name,
java.lang.String type,
Value value)
Creates a property with the given name and value and also sets its type to type |
|
Property(java.lang.String name,
Value value)
Creates a property with the given name and value |
Method Summary | |
---|---|
DomainValue |
getDomain()
Returns the DomainValue for this property, if present. |
java.lang.String |
getName()
|
java.lang.String |
getType()
|
Value |
getValue()
Returns the value of the property. |
boolean |
isEditable()
|
boolean |
isRequired()
|
boolean |
isVisible()
|
void |
setDomain(DomainValue domain)
Sets the DomainValue for this property. |
void |
setEditable(boolean editable)
|
void |
setName(java.lang.String name)
|
void |
setRequired(boolean required)
|
void |
setType(java.lang.String type)
|
void |
setValue(Value value)
|
void |
setVisible(boolean visible)
|
void |
visit(Visitable parent,
com.ibm.rational.rpe.common.template.visitor.Visitor v)
Visits the current visitable object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Property()
public Property(java.lang.String name, Value value)
name
and value
public Property(java.lang.String name, java.lang.String type, Value value)
name
and value
and also sets its type to type
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
public void setType(java.lang.String type)
public java.lang.String getType()
public Value getValue()
public void setValue(Value value)
public boolean isRequired()
public void setRequired(boolean required)
public boolean isVisible()
public void setVisible(boolean visible)
public boolean isEditable()
public void setEditable(boolean editable)
public void visit(Visitable parent, com.ibm.rational.rpe.common.template.visitor.Visitor v)
Visitable
visit
in interface Visitable
parent
- - (optional) the parent visitable object that triggered the visit of this objectv
- - the visitorpublic DomainValue getDomain()
DomainValue
for this property, if present.
public void setDomain(DomainValue domain)
DomainValue
for this property.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |