net.sf.gridarta.model.archetype
public class AttributeListUtils extends Object
Modifier | Constructor and Description |
---|---|
private |
AttributeListUtils()
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static String |
diffArchTextKeys(BaseObject<?,?,?,?> gameObject,
BaseObject<?,?,?,?> archetype)
Returns all attributes from the given game object that don't exist in an
archetype.
|
static String |
diffArchTextValues(BaseObject<?,?,?,?> archetype,
CharSequence attributes)
Returns all entries from the given attributes that don't exist in an
archetype.
|
static String |
removeAttribute(String attributeList,
String key)
Removes an attribute from an attribute list.
|
private AttributeListUtils()
public static String removeAttribute(@NotNull String attributeList, @NotNull String key)
attributeList
- the attribute list to modifykey
- the attribute key to remove@NotNull public static String diffArchTextKeys(@NotNull BaseObject<?,?,?,?> gameObject, @NotNull BaseObject<?,?,?,?> archetype)
gameObject
- the game objectarchetype
- the archetype@NotNull public static String diffArchTextValues(@NotNull BaseObject<?,?,?,?> archetype, @NotNull CharSequence attributes)
attributes
- the attributesarchetype
- the game objectattributes
that don't occur in this
game objectFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.