|
||||||||||
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(java.lang.String name)
Creates a new attribute name mapping instance. |
Method Summary | |
---|---|
java.lang.String |
getMappingName()
Returns the name of this mapping. |
java.lang.String |
map(java.lang.String attributeKey)
Returns the name mapped onto the provided attribute key by this mapping. |
java.lang.String |
map(XAttribute attribute)
Returns the name mapped onto the provided attribute by this mapping. |
void |
registerMapping(java.lang.String attributeKey,
java.lang.String alias)
Registers a mapping for a given attribute key. |
void |
registerMapping(XAttribute attribute,
java.lang.String alias)
Registers a mapping for a given attribute. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XAttributeNameMapImpl(java.lang.String name)
name
- Name of the mapping.Method Detail |
---|
public java.lang.String getMappingName()
XAttributeNameMap
getMappingName
in interface XAttributeNameMap
public java.lang.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 java.lang.String map(java.lang.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, java.lang.String alias)
attribute
- Attribute for which to register a mapping.alias
- Alias string to map the attribute to.public void registerMapping(java.lang.String attributeKey, java.lang.String alias)
attributeKey
- Attribute key for which to register a mapping.alias
- Alias string to map the attribute key to.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |