public class QualifiedNameValueConverter extends AbstractValueConverter<String>
IValueConverter.RuleSpecific| Modifier and Type | Field and Description |
|---|---|
protected IValueConverter<Object> |
delegateConverter |
protected String |
fullWildcardLiteral |
protected IValueConverterService |
valueConverterService |
NO_OP_CONVERTER| Constructor and Description |
|---|
QualifiedNameValueConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
delegateToString(String segment) |
protected String |
delegateToValue(ILeafNode leafNode) |
protected String |
getDelegateRuleName() |
protected String |
getFullWildcardLiteral() |
protected String |
getNamespaceDelimiter()
Deprecated.
|
protected String |
getStringNamespaceDelimiter()
Returns the used delimiter in the concrete syntax.
|
protected String |
getValueNamespaceDelimiter()
Returns the used delimiter in the AST.
|
protected String |
getWildcardLiteral() |
protected boolean |
isDelegateRuleCall(org.eclipse.emf.ecore.EObject grammarElement) |
protected boolean |
isWildcardLiteral(org.eclipse.emf.ecore.EObject grammarElement) |
String |
toString(String value)
Transforms the given value to a string that is conformant to the expected
terminal or data type rule.
|
String |
toValue(String string,
INode node)
Creates a value from the given input.
|
@Inject protected IValueConverterService valueConverterService
protected IValueConverter<Object> delegateConverter
protected String fullWildcardLiteral
@Deprecated protected String getNamespaceDelimiter()
protected String getStringNamespaceDelimiter()
protected String getValueNamespaceDelimiter()
protected String getWildcardLiteral()
protected String getDelegateRuleName()
public String toString(String value)
IValueConvertervalue - the to-be-transformed valuepublic String toValue(String string, INode node) throws ValueConverterException
IValueConverterCreates 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.
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.protected boolean isDelegateRuleCall(org.eclipse.emf.ecore.EObject grammarElement)
protected boolean isWildcardLiteral(org.eclipse.emf.ecore.EObject grammarElement)
protected String getFullWildcardLiteral()
Copyright © 2015. All Rights Reserved.