Package com.nomagic.magicdraw.uml
Class RepresentationTextCreator.RepTextProviderWrapper
- java.lang.Object
-
- com.nomagic.magicdraw.uml.RepresentationTextCreator.RepTextProviderWrapper
-
- All Implemented Interfaces:
com.nomagic.magicdraw.uml.text.RepTextProvider,PriorityProvider
- Enclosing class:
- RepresentationTextCreator
private static class RepresentationTextCreator.RepTextProviderWrapper extends java.lang.Object implements com.nomagic.magicdraw.uml.text.RepTextProvider
-
-
Field Summary
Fields Modifier and Type Field Description private RepresentationTextCreator.RepresentationTextProviderprovider-
Fields inherited from interface com.nomagic.magicdraw.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description RepTextProviderWrapper(RepresentationTextCreator.RepresentationTextProvider provider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(BaseElement element)java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig>createAcceptableElementSmartListenerConfig()java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig>createSmartListenerConfig()booleanequals(java.lang.Object o)intgetPriority()Returns priority of this object.java.lang.StringgetRepresentedText(BaseElement element, com.nomagic.magicdraw.uml.text.RepTextParams textParams, RepTextContext context)inthashCode()booleanisHumanTypeUsed()private static RepresentationTextParamstoRepresentationTextParams(com.nomagic.magicdraw.uml.text.RepTextParams textParams)
-
-
-
Field Detail
-
provider
private final RepresentationTextCreator.RepresentationTextProvider provider
-
-
Constructor Detail
-
RepTextProviderWrapper
public RepTextProviderWrapper(RepresentationTextCreator.RepresentationTextProvider provider)
-
-
Method Detail
-
accept
public boolean accept(BaseElement element)
- Specified by:
acceptin interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
getRepresentedText
public java.lang.String getRepresentedText(BaseElement element, com.nomagic.magicdraw.uml.text.RepTextParams textParams, RepTextContext context)
- Specified by:
getRepresentedTextin interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
createSmartListenerConfig
public java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig> createSmartListenerConfig()
- Specified by:
createSmartListenerConfigin interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
createAcceptableElementSmartListenerConfig
public java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig> createAcceptableElementSmartListenerConfig()
- Specified by:
createAcceptableElementSmartListenerConfigin interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
isHumanTypeUsed
public boolean isHumanTypeUsed()
- Specified by:
isHumanTypeUsedin interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
getPriority
public int getPriority()
Description copied from interface:PriorityProviderReturns priority of this object.- Specified by:
getPriorityin interfacePriorityProvider- Specified by:
getPriorityin interfacecom.nomagic.magicdraw.uml.text.RepTextProvider- Returns:
- priority of this object.
- See Also:
PriorityProvider.HIGH_PRIORITY,PriorityProvider.MEDIUM_PRIORITY,PriorityProvider.LOW_PRIORITY
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toRepresentationTextParams
private static RepresentationTextParams toRepresentationTextParams(com.nomagic.magicdraw.uml.text.RepTextParams textParams)
-
-