|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deckfour.xes.info.XGlobalAttributeNameMap
public class XGlobalAttributeNameMap
This singleton class implements a global attribute name mapping facility and can manage a number of attribute name mappings. Further, this class also acts as a proxy to the standard mapping, i.e. it can be used directly as a attribute name mapping instance.
| Field Summary | |
|---|---|
static String |
MAPPING_DUTCH
The attribute name mapping to the Dutch language. |
static String |
MAPPING_ENGLISH
The attribute name mapping to the English language. |
static String |
MAPPING_FRENCH
The attribute name mapping to the French language. |
static String |
MAPPING_GERMAN
The attribute name mapping to the German language. |
static String |
MAPPING_ITALIAN
The attribute name mapping to the Italian language. |
static String |
MAPPING_PORTUGUESE
The attribute name mapping to the Portuguese language. |
static String |
MAPPING_SPANISH
The attribute name mapping to the Spanish language. |
static String |
MAPPING_STANDARD
The standard attribute name mapping, to the English language (EN). |
| Method Summary | |
|---|---|
Collection<String> |
getAvailableMappingNames()
Returns the names of all available mappings. |
Collection<XAttributeNameMap> |
getAvailableMappings()
Returns all available mappings. |
XAttributeNameMap |
getMapping(String name)
Provides access to a specific attribute name mapping by its name. |
String |
getMappingName()
Returns the name of this mapping. |
XAttributeNameMap |
getStandardMapping()
Retrieves the standard attribute name mapping, i.e. |
static XGlobalAttributeNameMap |
instance()
Accesses the singleton instance. |
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. |
String |
mapSafely(String attributeKey,
String mappingName)
Maps an attribute safely, using the given attribute mapping. |
String |
mapSafely(String attributeKey,
XAttributeNameMap mapping)
Maps an attribute safely, using the given attribute mapping. |
String |
mapSafely(XAttribute attribute,
String mappingName)
Maps an attribute safely, using the given attribute mapping. |
String |
mapSafely(XAttribute attribute,
XAttributeNameMap mapping)
Maps an attribute safely, using the given attribute mapping. |
void |
registerMapping(String mappingName,
String attributeKey,
String alias)
Registers a known attribute for mapping in a given attribute name map. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MAPPING_STANDARD
public static final String MAPPING_ENGLISH
public static final String MAPPING_GERMAN
public static final String MAPPING_DUTCH
public static final String MAPPING_FRENCH
public static final String MAPPING_ITALIAN
public static final String MAPPING_SPANISH
public static final String MAPPING_PORTUGUESE
| Method Detail |
|---|
public static XGlobalAttributeNameMap instance()
public Collection<String> getAvailableMappingNames()
public Collection<XAttributeNameMap> getAvailableMappings()
public XAttributeNameMap getMapping(String name)
name - Name of the requested mapping.
public XAttributeNameMap getStandardMapping()
public String mapSafely(XAttribute attribute,
XAttributeNameMap mapping)
attribute - Attribute to map.mapping - Mapping to be used preferably.
public String mapSafely(String attributeKey,
XAttributeNameMap mapping)
attributeKey - Key of the attribute to map.mapping - Mapping to be used preferably.
public String mapSafely(XAttribute attribute,
String mappingName)
attribute - Attribute to map.mappingName - Name of the mapping to be used preferably.
public String mapSafely(String attributeKey,
String mappingName)
attributeKey - Key of the attribute to map.mappingName - Name of the mapping to be used preferably.
public void registerMapping(String mappingName,
String attributeKey,
String alias)
mappingName - Name of the mapping to register with.attributeKey - Attribute key to be mapped.alias - Alias to map the given attribute to.public String getMappingName()
XAttributeNameMap
getMappingName in interface XAttributeNameMappublic String map(XAttribute attribute)
XAttributeNameMapnull is returned.
map in interface XAttributeNameMapattribute - Attribute to retrieve mapping for.
null, if no such mapping exists.public String map(String attributeKey)
XAttributeNameMapnull is returned.
map in interface XAttributeNameMapattributeKey - Attribute key to retrieve mapping for.
null, if no such mapping exists.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||