org.eclipse.uml2.common.util
Class UML2Util.QualifiedTextProvider

java.lang.Object
  extended byorg.eclipse.uml2.common.util.UML2Util.QualifiedTextProvider
Direct Known Subclasses:
UMLUtil.QualifiedTextProvider
Enclosing class:
UML2Util

public abstract static class UML2Util.QualifiedTextProvider
extends Object

The abstract parent of classes that can provide a textual representation of objects, classes, and features.


Constructor Summary
UML2Util.QualifiedTextProvider()
           
 
Method Summary
 String getClassText(EObject eObject)
          Retrieves a textual representation of the specified object's class.
 String getFeatureText(EStructuralFeature eStructuralFeature)
          Retrieves a textual representation of the specified structural feature.
abstract  String getSeparator()
          Retrieves the string used to separate segments of qualified text.
 String getText(EObject eObject)
          Retrieves a textual representation of the specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UML2Util.QualifiedTextProvider

public UML2Util.QualifiedTextProvider()
Method Detail

getText

public String getText(EObject eObject)
Retrieves a textual representation of the specified object.

Parameters:
eObject - The object for which to retrieve text.
Returns:
A textual representation of the object.

getSeparator

public abstract String getSeparator()
Retrieves the string used to separate segments of qualified text.

Returns:
The separator to be used.

getFeatureText

public String getFeatureText(EStructuralFeature eStructuralFeature)
Retrieves a textual representation of the specified structural feature.

Parameters:
eStructuralFeature - The feature for which to retrieve text.
Returns:
A textual representation of the feature.

getClassText

public String getClassText(EObject eObject)
Retrieves a textual representation of the specified object's class.

Parameters:
eObject - The object for which to retrieve text.
Returns:
A textual representation of the object's class.

Copyright 2003, 2006 IBM Corporation and others.
All Rights Reserved.