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