|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deckfour.xes.util.XAttributeUtils
public class XAttributeUtils
Utilities for working with attributes.
| Constructor Summary | |
|---|---|
XAttributeUtils()
|
|
| Method Summary | |
|---|---|
static XAttribute |
composeAttribute(XFactory factory,
String key,
String value,
String type,
XExtension extension)
Composes the appropriate attribute type from the string-based information found, e.g., in XML serializations. |
static XAttribute |
derivePrototype(XAttribute instance)
Derives a prototype for the given attribute. |
static Set<XExtension> |
extractExtensions(Map<String,XAttribute> attributeMap)
Static helper method for extracting all extensions from an attribute map. |
static Class<? extends XAttribute> |
getType(XAttribute attribute)
For the given attribute, returns its type, i.e., the most high-level, typed interface this attribute implements. |
static String |
getTypeString(XAttribute attribute)
For the given attribute, derives the standardized string describing the attributes specific type (used, e.g., for serialization). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XAttributeUtils()
| Method Detail |
|---|
public static Class<? extends XAttribute> getType(XAttribute attribute)
attribute - Attribute to analyze.
public static String getTypeString(XAttribute attribute)
attribute - Attribute to extract type string from.
public static XAttribute derivePrototype(XAttribute instance)
instance - Attribute to derive prototype from.
public static XAttribute composeAttribute(XFactory factory,
String key,
String value,
String type,
XExtension extension)
factory - Factory to use for creating the attribute.key - Key of the attribute.value - Value of the attribute.type - Type string of the attribute.extension - Extension of the attribute (can be null).
public static Set<XExtension> extractExtensions(Map<String,XAttribute> attributeMap)
attributeMap - The attribute map from which to
extract extensions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||