|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ogdf.ogml.util.OgmlSwitch<T>
public class OgmlSwitch<T>
The Switch for the model's inheritance hierarchy.
It supports the call doSwitch(object)
to invoke the caseXXX
method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
OgmlPackage
Field Summary | |
---|---|
protected static OgmlPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
OgmlSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseBooleanType(BooleanType object)
Returns the result of interpreting the object as an instance of 'Boolean Type'. |
T |
caseBoolType(BoolType object)
Returns the result of interpreting the object as an instance of 'Bool Type'. |
T |
caseComposedType(ComposedType object)
Returns the result of interpreting the object as an instance of 'Composed Type'. |
T |
caseConstraintsType(ConstraintsType object)
Returns the result of interpreting the object as an instance of 'Constraints Type'. |
T |
caseDataType(DataType object)
Returns the result of interpreting the object as an instance of 'Data Type'. |
T |
caseDocumentRoot(DocumentRoot object)
Returns the result of interpreting the object as an instance of 'Document Root'. |
T |
caseEdgeConstraintType(EdgeConstraintType object)
Returns the result of interpreting the object as an instance of 'Edge Constraint Type'. |
T |
caseEdgeLayoutType(EdgeLayoutType object)
Returns the result of interpreting the object as an instance of 'Edge Layout Type'. |
T |
caseEdgeStyleTemplateType(EdgeStyleTemplateType object)
Returns the result of interpreting the object as an instance of 'Edge Style Template Type'. |
T |
caseEdgeType(EdgeType object)
Returns the result of interpreting the object as an instance of 'Edge Type'. |
T |
caseEndpointType(EndpointType object)
Returns the result of interpreting the object as an instance of 'Endpoint Type'. |
T |
caseFillType(FillType object)
Returns the result of interpreting the object as an instance of 'Fill Type'. |
T |
caseFontType(FontType object)
Returns the result of interpreting the object as an instance of 'Font Type'. |
T |
caseGraphStyleType(GraphStyleType object)
Returns the result of interpreting the object as an instance of 'Graph Style Type'. |
T |
caseGraphType(GraphType object)
Returns the result of interpreting the object as an instance of 'Graph Type'. |
T |
caseIntType(IntType object)
Returns the result of interpreting the object as an instance of 'Int Type'. |
T |
caseKeysType(KeysType object)
Returns the result of interpreting the object as an instance of 'Keys Type'. |
T |
caseKeyType(KeyType object)
Returns the result of interpreting the object as an instance of 'Key Type'. |
T |
caseKeyValueType(KeyValueType object)
Returns the result of interpreting the object as an instance of 'Key Value Type'. |
T |
caseLabelConstraintType(LabelConstraintType object)
Returns the result of interpreting the object as an instance of 'Label Constraint Type'. |
T |
caseLabelLayoutType(LabelLayoutType object)
Returns the result of interpreting the object as an instance of 'Label Layout Type'. |
T |
caseLabelStyleTemplateType(LabelStyleTemplateType object)
Returns the result of interpreting the object as an instance of 'Label Style Template Type'. |
T |
caseLabelType(LabelType object)
Returns the result of interpreting the object as an instance of 'Label Type'. |
T |
caseLayoutType(LayoutType object)
Returns the result of interpreting the object as an instance of 'Layout Type'. |
T |
caseLineStyleType(LineStyleType object)
Returns the result of interpreting the object as an instance of 'Line Style Type'. |
T |
caseLineType(LineType object)
Returns the result of interpreting the object as an instance of 'Line Type'. |
T |
caseLocationType(LocationType object)
Returns the result of interpreting the object as an instance of 'Location Type'. |
T |
caseNodeConstraintType(NodeConstraintType object)
Returns the result of interpreting the object as an instance of 'Node Constraint Type'. |
T |
caseNodeLayoutType(NodeLayoutType object)
Returns the result of interpreting the object as an instance of 'Node Layout Type'. |
T |
caseNodeStyleTemplateType(NodeStyleTemplateType object)
Returns the result of interpreting the object as an instance of 'Node Style Template Type'. |
T |
caseNodeType(NodeType object)
Returns the result of interpreting the object as an instance of 'Node Type'. |
T |
caseNumberType(NumberType object)
Returns the result of interpreting the object as an instance of 'Number Type'. |
T |
caseOgmlType(OgmlType object)
Returns the result of interpreting the object as an instance of 'Type'. |
T |
casePointType(PointType object)
Returns the result of interpreting the object as an instance of 'Point Type'. |
T |
caseSegmentType(SegmentType object)
Returns the result of interpreting the object as an instance of 'Segment Type'. |
T |
caseShapeType1(ShapeType1 object)
Returns the result of interpreting the object as an instance of 'Shape Type1'. |
T |
caseSourceStyleType(SourceStyleType object)
Returns the result of interpreting the object as an instance of 'Source Style Type'. |
T |
caseSourceTargetType(SourceTargetType object)
Returns the result of interpreting the object as an instance of 'Source Target Type'. |
T |
caseStructureType(StructureType object)
Returns the result of interpreting the object as an instance of 'Structure Type'. |
T |
caseStylesType(StylesType object)
Returns the result of interpreting the object as an instance of 'Styles Type'. |
T |
caseStyleTemplatesType(StyleTemplatesType object)
Returns the result of interpreting the object as an instance of 'Style Templates Type'. |
T |
caseTargetStyleType(TargetStyleType object)
Returns the result of interpreting the object as an instance of 'Target Style Type'. |
T |
caseTemplateType(TemplateType object)
Returns the result of interpreting the object as an instance of 'Template Type'. |
T |
caseTextType(TextType object)
Returns the result of interpreting the object as an instance of 'Text Type'. |
T |
caseUriType(UriType object)
Returns the result of interpreting the object as an instance of 'Uri Type'. |
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(EClass theEClass,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
T |
doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected T |
doSwitch(int classifierID,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static OgmlPackage modelPackage
Constructor Detail |
---|
public OgmlSwitch()
Method Detail |
---|
public T doSwitch(EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(EClass theEClass, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseBooleanType(BooleanType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBoolType(BoolType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseComposedType(ComposedType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConstraintsType(ConstraintsType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDataType(DataType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDocumentRoot(DocumentRoot object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEdgeConstraintType(EdgeConstraintType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEdgeLayoutType(EdgeLayoutType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEdgeStyleTemplateType(EdgeStyleTemplateType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEdgeType(EdgeType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEndpointType(EndpointType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFillType(FillType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFontType(FontType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGraphStyleType(GraphStyleType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGraphType(GraphType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIntType(IntType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKeysType(KeysType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKeyType(KeyType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKeyValueType(KeyValueType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabelConstraintType(LabelConstraintType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabelLayoutType(LabelLayoutType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabelStyleTemplateType(LabelStyleTemplateType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabelType(LabelType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLayoutType(LayoutType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLineStyleType(LineStyleType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLineType(LineType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLocationType(LocationType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNodeConstraintType(NodeConstraintType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNodeLayoutType(NodeLayoutType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNodeStyleTemplateType(NodeStyleTemplateType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNodeType(NodeType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNumberType(NumberType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOgmlType(OgmlType object)
object
- the target of the switch.
doSwitch(EObject)
public T casePointType(PointType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSegmentType(SegmentType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseShapeType1(ShapeType1 object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSourceStyleType(SourceStyleType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSourceTargetType(SourceTargetType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStructureType(StructureType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStylesType(StylesType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStyleTemplatesType(StyleTemplatesType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTargetStyleType(TargetStyleType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateType(TemplateType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTextType(TextType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseUriType(UriType object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(EObject object)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |