StructuralMetadata.PropertyTable
Inheritance: java.lang.Object
public static class StructuralMetadata.PropertyTable
Property table.
Constructors
| Constructor | Description |
|---|---|
| PropertyTable(String name, StructuralMetadata.ClassType mclass) | Constructor of the property table. |
Methods
| Method | Description |
|---|---|
| addValue(StructuralMetadata.Property prop, Object value) | Add a new property to the property table. |
| addValue(String propName, Object value) | Add a new property to the property table. |
| attach(VertexElementUserData userData) | Attach current property table to specified user data |
| equals(Object arg0) | |
| from(VertexElementUserData userData) | Extract attached property table from specified user data |
| getClass() | |
| getMetaClass() | The meta class of this property table. |
| getName() | Name of the property table. |
| getValue(String name) | Gets the value of specified property name |
| getValues() | Values of the property table. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
PropertyTable(String name, StructuralMetadata.ClassType mclass)
public PropertyTable(String name, StructuralMetadata.ClassType mclass)
Constructor of the property table.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name of this table instance. |
| mclass | ClassType | The meta class definition of this property table |
addValue(StructuralMetadata.Property prop, Object value)
public void addValue(StructuralMetadata.Property prop, Object value)
Add a new property to the property table.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| prop | Property | Which property to add with value |
| value | java.lang.Object | Array of values |
addValue(String propName, Object value)
public void addValue(String propName, Object value)
Add a new property to the property table.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| propName | java.lang.String | Which property to add with value |
| value | java.lang.Object | Array of values |
attach(VertexElementUserData userData)
public void attach(VertexElementUserData userData)
Attach current property table to specified user data
Parameters:
| Parameter | Type | Description |
|---|---|---|
| userData | VertexElementUserData |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
from(VertexElementUserData userData)
public static StructuralMetadata.PropertyTable from(VertexElementUserData userData)
Extract attached property table from specified user data
Parameters:
| Parameter | Type | Description |
|---|---|---|
| userData | VertexElementUserData | The user data which associated with a property table |
Returns: PropertyTable - The associated property table instance
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getMetaClass()
public StructuralMetadata.ClassType getMetaClass()
The meta class of this property table.
Returns: ClassType - The meta class of this property table.
getName()
public String getName()
Name of the property table.
Returns: java.lang.String - Name of the property table.
getValue(String name)
public Object getValue(String name)
Gets the value of specified property name
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | Property name |
Returns: java.lang.Object - Property value or null if not found
getValues()
public HashMap<String,Object> getValues()
Values of the property table.
Returns: java.util.HashMap<java.lang.String,java.lang.Object> - Values of the property table.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |