|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.info.impl.XAttributeNameMapImpl
public class XAttributeNameMapImpl
Implements an attribute name mapping.
Constructor Summary | |
---|---|
XAttributeNameMapImpl(String name)
Creates a new attribute name mapping instance. |
Method Summary | |
---|---|
String |
getMappingName()
Returns the name of this mapping. |
String |
map(String attributeKey)
Returns the name mapped onto the provided attribute key by this mapping. |
String |
map(XAttribute attribute)
Returns the name mapped onto the provided attribute by this mapping. |
void |
registerMapping(String attributeKey,
String alias)
Registers a mapping for a given attribute key. |
void |
registerMapping(XAttribute attribute,
String alias)
Registers a mapping for a given attribute. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XAttributeNameMapImpl(String name)
name
- Name of the mapping.Method Detail |
---|
public String getMappingName()
XAttributeNameMap
getMappingName
in interface XAttributeNameMap
public String map(XAttribute attribute)
XAttributeNameMap
null
is returned.
map
in interface XAttributeNameMap
attribute
- Attribute to retrieve mapping for.
null
, if no such mapping exists.public String map(String attributeKey)
XAttributeNameMap
null
is returned.
map
in interface XAttributeNameMap
attributeKey
- Attribute key to retrieve mapping for.
null
, if no such mapping exists.public void registerMapping(XAttribute attribute, String alias)
attribute
- Attribute for which to register a mapping.alias
- Alias string to map the attribute to.public void registerMapping(String attributeKey, String alias)
attributeKey
- Attribute key for which to register a mapping.alias
- Alias string to map the attribute key to.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |