public static class StructuralMetadata.PropertyTable
extends java.lang.Object
| Constructor and Description |
|---|
PropertyTable(java.lang.String name,
StructuralMetadata.ClassType mclass)
Constructor of the property table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String propName,
java.lang.Object value)
Add a new property to the property table.
|
void |
addValue(StructuralMetadata.Property prop,
java.lang.Object value)
Add a new property to the property table.
|
void |
attach(VertexElementUserData userData)
Attach current property table to specified user data
|
static StructuralMetadata.PropertyTable |
from(VertexElementUserData userData)
Extract attached property table from specified user data
|
StructuralMetadata.ClassType |
getMetaClass()
The meta class of this property table.
|
java.lang.String |
getName()
Name of the property table.
|
java.lang.Object |
getValue(java.lang.String name)
Gets the value of specified property name
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getValues()
Values of the property table.
|
public PropertyTable(java.lang.String name,
StructuralMetadata.ClassType mclass)
name - The name of this table instance.mclass - The meta class definition of this property tablepublic java.lang.String getName()
public StructuralMetadata.ClassType getMetaClass()
public java.util.HashMap<java.lang.String,java.lang.Object> getValues()
public java.lang.Object getValue(java.lang.String name)
name - Property namepublic void addValue(StructuralMetadata.Property prop, java.lang.Object value)
prop - Which property to add with valuevalue - Array of valuespublic void addValue(java.lang.String propName,
java.lang.Object value)
propName - Which property to add with valuevalue - Array of valuespublic static StructuralMetadata.PropertyTable from(VertexElementUserData userData)
userData - The user data which associated with a property tablepublic void attach(VertexElementUserData userData)