public static class LabelCompositionStrategy.StaticLabelCompositionStrategy extends java.lang.Object implements LabelCompositionStrategy
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy, LabelCompositionStrategy.StaticLabelCompositionStrategy, LabelCompositionStrategy.TagLookupCompositionStrategy
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defaultLabel |
Constructor and Description |
---|
StaticLabelCompositionStrategy(java.lang.String defaultLabel) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
compose(OsmPrimitive primitive)
Replies the text value to be rendered as label for the primitive
primitive . |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDefaultLabel() |
int |
hashCode() |
java.lang.String |
toString() |
private final java.lang.String defaultLabel
public StaticLabelCompositionStrategy(java.lang.String defaultLabel)
public java.lang.String compose(OsmPrimitive primitive)
LabelCompositionStrategy
primitive
.compose
in interface LabelCompositionStrategy
primitive
- the primitivepublic java.lang.String getDefaultLabel()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object