public class MarvinAttributes
extends java.lang.Object
Constructor and Description |
---|
MarvinAttributes() |
MarvinAttributes(MarvinPlugin p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
MarvinAttributes |
clone()
Clones a MarvinAttributes Object.
|
java.lang.Object |
get(java.lang.String name)
Get an attribute by its name.
|
java.lang.Object |
get(java.lang.String name,
java.lang.Object defaultValue) |
java.lang.Object[] |
getValues()
returns an array containing the attrbiute values
|
void |
set(java.lang.Object... params)
Set a list of parameters.
|
void |
set(java.lang.String name,
java.lang.Object value)
Set an attribute.
|
java.lang.String[] |
toStringArray()
Returns all attributes´ name and value as a String array.
|
public MarvinAttributes(MarvinPlugin p)
public MarvinAttributes()
public void set(java.lang.String name, java.lang.Object value)
name
- attribute name.value
- attribute value.public void set(java.lang.Object... params)
params
- public java.lang.Object get(java.lang.String name)
name
- attribute´s name.public java.lang.Object get(java.lang.String name, java.lang.Object defaultValue)
public java.lang.String[] toStringArray()
public java.lang.Object[] getValues()
public MarvinAttributes clone()
clone
in class java.lang.Object