public class Properties
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DEFAULT_NAME
Default name of the property (used if the name is not specified in blender file).
|
static int |
IDP_ARRAY |
static int |
IDP_DOUBLE |
static int |
IDP_FLOAT |
static int |
IDP_GROUP |
static int |
IDP_IDPARRAY |
static int |
IDP_INT |
static int |
IDP_NUMTYPES |
static int |
IDP_STRING |
protected static java.lang.String |
RNA_PROPERTY_NAME |
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
protected void |
completeLoading()
This method should be called after the properties loading.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
findValue(java.lang.String propertyName)
This method returns the same as getValue if the current property is of
other type than IDP_GROUP and its name matches 'propertyName' param.
|
java.lang.String |
getName()
This method returns the name of the property.
|
java.util.List<java.lang.String> |
getSubPropertiesNames() |
java.lang.Object |
getValue()
This method returns the value of the property.
|
int |
hashCode() |
void |
load(Structure idPropertyStructure,
BlenderContext blenderContext)
This method loads the property from the belnder file.
|
java.lang.String |
toString() |
public static final int IDP_STRING
public static final int IDP_INT
public static final int IDP_FLOAT
public static final int IDP_ARRAY
public static final int IDP_GROUP
public static final int IDP_DOUBLE
public static final int IDP_IDPARRAY
public static final int IDP_NUMTYPES
protected static final java.lang.String RNA_PROPERTY_NAME
protected static final java.lang.String DEFAULT_NAME
public void load(Structure idPropertyStructure, BlenderContext blenderContext) throws BlenderFileException
idPropertyStructure
- the ID structure constining the propertyblenderContext
- the blender contextBlenderFileException
- an exception is thrown when the belnder file is somehow invalidpublic java.lang.String getName()
public java.lang.Object getValue()
public java.util.List<java.lang.String> getSubPropertiesNames()
public java.lang.Object findValue(java.lang.String propertyName)
propertyName
- the name of the propertypublic java.lang.String toString()
toString
in class java.lang.Object
protected void completeLoading()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object