public class YVariable extends java.lang.Object implements java.lang.Cloneable, YVerifiable, java.lang.Comparable<YVariable>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_dataTypeName |
protected java.lang.String |
_defaultValue |
protected java.lang.String |
_elementName |
protected java.lang.String |
_initialValue |
protected boolean |
_isEmptyTyped |
protected boolean |
_isUntyped |
protected java.lang.String |
_name |
protected java.lang.String |
_namespaceURI |
protected int |
_ordering |
protected YDecomposition |
_parentDecomposition |
Constructor and Description |
---|
YVariable() |
YVariable(YDecomposition dec)
Beta 3 constructor for variables
|
YVariable(YDecomposition dec,
java.lang.String dataType,
java.lang.String name,
java.lang.String initialValue,
java.lang.String namespaceURI)
Deprecated.
see new constructor and setter methods
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
DynamicValue value) |
void |
addAttribute(java.lang.String key,
java.lang.String value) |
java.lang.Object |
clone() |
int |
compareTo(YVariable other) |
YAttributeMap |
getAttributes()
Return table of attributes associated with this variable.
|
java.lang.String |
getDataTypeName() |
java.lang.String |
getDataTypeNameSpace()
Returns the namespace of the data type.
|
java.lang.String |
getDataTypeNameUnprefixed() |
java.lang.String |
getDataTypePrefix() |
java.lang.String |
getDefaultValue() |
java.lang.String |
getDocumentation() |
java.lang.String |
getElementName() |
java.lang.String |
getInitialValue() |
YLogPredicate |
getLogPredicate() |
java.lang.String |
getName() |
int |
getOrdering() |
YDecomposition |
getParentDecomposition() |
java.lang.String |
getPreferredName() |
boolean |
hasAttributes() |
boolean |
isEmptyTyped() |
boolean |
isMandatory() |
boolean |
isOptional() |
boolean |
isRequired() |
boolean |
isUntyped() |
boolean |
isUserDefinedType() |
boolean |
requiresInputValue()
Determine whether this variable requires a value to be mapped to it
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) |
void |
setDataTypeAndName(java.lang.String dataType,
java.lang.String name,
java.lang.String namespace)
sets three related attributes.
|
void |
setDefaultValue(java.lang.String value) |
void |
setDocumentation(java.lang.String documentation) |
void |
setElementName(java.lang.String elementName)
links the variable to a schema element declaration
|
void |
setEmptyTyped(boolean empty) |
void |
setInitialValue(java.lang.String initialValue)
sets the initial value of the variable
|
void |
setLogPredicate(YLogPredicate predicate) |
void |
setMandatory(boolean mandatory) |
void |
setName(java.lang.String name)
Sets the name on the variabel.
|
void |
setOptional(boolean option) |
void |
setOrdering(int ordering) |
void |
setParentDecomposition(YDecomposition parentDecomposition) |
void |
setUntyped(boolean isUntyped)
links the variable to a xs:any schema element type.
|
java.lang.String |
toString() |
java.lang.String |
toXML() |
protected java.lang.String |
toXMLGuts() |
boolean |
usesElementDeclaration()
Returns whether or not the parameter uses an element declaration in the
schema library of the specification.
|
boolean |
usesTypeDeclaration()
Returns whether or not the parameter uses a type declaration in the
schema library of the specification.
|
void |
verify(YVerificationHandler handler)
***************************************************************************
|
protected YDecomposition _parentDecomposition
protected java.lang.String _dataTypeName
protected java.lang.String _name
protected java.lang.String _elementName
protected java.lang.String _initialValue
protected java.lang.String _defaultValue
protected java.lang.String _namespaceURI
protected boolean _isUntyped
protected boolean _isEmptyTyped
protected int _ordering
public YVariable()
public YVariable(YDecomposition dec, java.lang.String dataType, java.lang.String name, java.lang.String initialValue, java.lang.String namespaceURI)
dec
- dataType
- name
- initialValue
- namespaceURI
- public YVariable(YDecomposition dec)
dec
- parent decompositionpublic void setDataTypeAndName(java.lang.String dataType, java.lang.String name, java.lang.String namespace)
dataType
- (mandatory) the datatypename
- (mandatory) name of the varnamespace
- (null optional) the URI of the namespace for the typepublic void setUntyped(boolean isUntyped)
isUntyped
- public void setName(java.lang.String name)
name
- public void setElementName(java.lang.String elementName)
elementName
- public java.lang.String getDataTypeName()
public java.lang.String getDataTypeNameUnprefixed()
public java.lang.String getDataTypePrefix()
public java.lang.String getDataTypeNameSpace()
public boolean isUserDefinedType()
public boolean isMandatory()
public void setMandatory(boolean mandatory)
public java.lang.String getName()
public java.lang.String getPreferredName()
public YDecomposition getParentDecomposition()
public void setParentDecomposition(YDecomposition parentDecomposition)
public java.lang.String getInitialValue()
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String value)
public YLogPredicate getLogPredicate()
public void setLogPredicate(YLogPredicate predicate)
public void setOrdering(int ordering)
public int getOrdering()
public int compareTo(YVariable other)
compareTo
in interface java.lang.Comparable<YVariable>
public java.lang.String toXML()
protected java.lang.String toXMLGuts()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setInitialValue(java.lang.String initialValue)
initialValue
- public java.lang.String getDocumentation()
public void setDocumentation(java.lang.String documentation)
public java.lang.String getElementName()
public boolean isUntyped()
public boolean isEmptyTyped()
public void setEmptyTyped(boolean empty)
public boolean usesElementDeclaration()
public boolean usesTypeDeclaration()
public boolean isRequired()
public boolean isOptional()
public void setOptional(boolean option)
public boolean requiresInputValue()
public YAttributeMap getAttributes()
Table is keyed by attribute 'name' and contains the string representation of the XML elements attribute.
public void addAttribute(java.lang.String key, java.lang.String value)
public void addAttribute(java.lang.String name, DynamicValue value)
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
public boolean hasAttributes()
public void verify(YVerificationHandler handler)
verify
in interface YVerifiable
YVerificationMessage
Copyright © 2004-2014 The YAWL Foundation.