Note that there was some confusion in the XACML specification about whether this datatype should be able to handle XML elements (ie, whether <AttributeValue DataType="...string"><foo/> </AttributeValue> is valid). This has been clarified to provide the correct requirement that a string may not contain mixed content (ie, the example provided here is invalid). If you need to specify something like this with the string datatype, then you must escape the <
and >
characters.
@since 1.0
@author Marco Barreno
@author Seth Proctor
@author Steve Hanna
PrimitiveType.SHORT
.
@author Jan De Moerloose
@since 1.6.0
Note that there was some confusion in the XACML specification about whether this datatype should be able to handle XML elements (ie, whether <AttributeValue DataType="...string"><foo/> </AttributeValue> is valid). This has been clarified to provide the correct requirement that a string may not contain mixed content (ie, the example provided here is invalid). If you need to specify something like this with the string datatype, then you must escape the <
and >
characters.
@since 1.0
@author Marco Barreno
@author Seth Proctor
@author Steve Hanna
attribute.setExpression("xxx");
The default value of the string contained by this attribute is the empty string.
By default, an instance of this class is fully visible in a user interface. The visibility is indicated to the user interface when the user interface calls the getVisibility() method of this class and the value Settable.FULL is returned to the userInterface.
Note that the string value within StringAttribute cannot reference other StringAttributes or Parameters, so if an actor has a public StringAttribute, then one cannot make the value of that attribute dependent on a value higher in the hierarchy. Usually, actors have public ptolemy.data.expr.Parameters instead of public StringAttributes so that the value can reference other parameters. The primary reason to use StringAttribute is if you want a string that will not be parsed and you do not want to type a leading a trailing double quote. @see Settable#FULL @author Edward A. Lee @version $Id: StringAttribute.java,v 1.57 2006/09/16 11:20:46 eal Exp $ @since Ptolemy II 1.0 @Pt.ProposedRating Green (eal) @Pt.AcceptedRating Green (cxh)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|