|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.conversion.impl.EFactoryValueConverter
public class EFactoryValueConverter
A value converter that delegates to the EFactory
of a EDataType
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverter |
---|
IValueConverter.RuleSpecific |
Field Summary |
---|
Fields inherited from interface org.eclipse.xtext.conversion.IValueConverter |
---|
NO_OP_CONVERTER |
Constructor Summary | |
---|---|
EFactoryValueConverter(org.eclipse.emf.ecore.EDataType dataType)
|
Method Summary | |
---|---|
java.lang.String |
toString(java.lang.Object value)
Transforms the given value to a string that is conformant to the expected terminal or data type rule. |
java.lang.Object |
toValue(java.lang.String string,
INode node)
Creates a value from the given input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EFactoryValueConverter(org.eclipse.emf.ecore.EDataType dataType)
Method Detail |
---|
public java.lang.String toString(java.lang.Object value)
IValueConverter
toString
in interface IValueConverter<java.lang.Object>
value
- the to-be-transformed value
public java.lang.Object toValue(java.lang.String string, INode node) throws ValueConverterException
IValueConverter
Creates a value from the given input. The input is conformant to a data type or terminal rule.
The given string
or node
may be null but not both of them.
toValue
in interface IValueConverter<java.lang.Object>
string
- the string that was inferred from the node. Usually the node's text
but may be reduced to the parts of the node that are not
hidden
.node
- the parsed node including hidden parts.
null
.
ValueConverterException
- indicates that the string or node did not fulfil
the expected format.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |