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.RepresentationTextProvider
provider
-
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 boolean
accept(BaseElement element)
java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig>
createAcceptableElementSmartListenerConfig()
java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig>
createSmartListenerConfig()
boolean
equals(java.lang.Object o)
int
getPriority()
Returns priority of this object.java.lang.String
getRepresentedText(BaseElement element, com.nomagic.magicdraw.uml.text.RepTextParams textParams, RepTextContext context)
int
hashCode()
boolean
isHumanTypeUsed()
private static RepresentationTextParams
toRepresentationTextParams(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:
accept
in 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:
getRepresentedText
in interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
createSmartListenerConfig
public java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig> createSmartListenerConfig()
- Specified by:
createSmartListenerConfig
in interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
createAcceptableElementSmartListenerConfig
public java.util.Map<java.lang.Class<? extends Element>,SmartListenerConfig> createAcceptableElementSmartListenerConfig()
- Specified by:
createAcceptableElementSmartListenerConfig
in interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
isHumanTypeUsed
public boolean isHumanTypeUsed()
- Specified by:
isHumanTypeUsed
in interfacecom.nomagic.magicdraw.uml.text.RepTextProvider
-
getPriority
public int getPriority()
Description copied from interface:PriorityProvider
Returns priority of this object.- Specified by:
getPriority
in interfacePriorityProvider
- Specified by:
getPriority
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toRepresentationTextParams
private static RepresentationTextParams toRepresentationTextParams(com.nomagic.magicdraw.uml.text.RepTextParams textParams)
-
-