|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.conversion.impl.AbstractValueConverter<java.lang.String>
org.eclipse.xtext.conversion.impl.QualifiedNameValueConverter
public class QualifiedNameValueConverter
A value converter for qualified names consisting of segments or wildcard literals separated by namespace delimiters. Delegates to another value converter for the segments, thus enabling individual quoting of segments.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverter |
|---|
IValueConverter.RuleSpecific |
| Field Summary | |
|---|---|
protected java.lang.String |
fullWildcardLiteral
|
protected IValueConverterService |
valueConverterService
|
| Fields inherited from interface org.eclipse.xtext.conversion.IValueConverter |
|---|
NO_OP_CONVERTER |
| Constructor Summary | |
|---|---|
QualifiedNameValueConverter()
|
|
| Method Summary | |
|---|---|
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. use getStringNamespaceDelimiter() or getValueNamespaceDelimiter(). |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject protected IValueConverterService valueConverterService
protected java.lang.String fullWildcardLiteral
| Constructor Detail |
|---|
public QualifiedNameValueConverter()
| Method Detail |
|---|
@Deprecated protected java.lang.String getNamespaceDelimiter()
getStringNamespaceDelimiter() or getValueNamespaceDelimiter().
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 value
public java.lang.String toValue(java.lang.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 java.lang.String getFullWildcardLiteral()
protected java.lang.String delegateToString(java.lang.String segment)
protected java.lang.String delegateToValue(ILeafNode leafNode)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||