public class StructuralMetadata
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StructuralMetadata.ClassType
Class definition in metadata
|
static class |
StructuralMetadata.EnumType
The enum type definition
|
static class |
StructuralMetadata.EnumValue
The value definition of enum type.
|
static class |
StructuralMetadata.Property
The property definition in meta data's classes
|
static class |
StructuralMetadata.PropertyTable
Property table.
|
| Constructor and Description |
|---|
StructuralMetadata() |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Scene scene)
Attach current meta data to specified scene
|
StructuralMetadata.ClassType |
createClass(java.lang.String name)
Create a meta class type
|
StructuralMetadata.EnumType |
createEnum(java.lang.String name)
Create an enum type
|
StructuralMetadata.PropertyTable |
createPropertyTable(java.lang.String name,
StructuralMetadata.ClassType clazz)
Create a new property table with given meta class type
|
static StructuralMetadata |
from(Scene scene)
Get
StructuralMetadata associated with specified scene. |
java.util.HashMap<java.lang.String,StructuralMetadata.ClassType> |
getClasses()
The class definitions .
|
java.util.HashMap<java.lang.String,StructuralMetadata.EnumType> |
getEnums()
The enum type definitions
|
java.util.ArrayList<StructuralMetadata.PropertyTable> |
getPropertyTables()
The property tables in this metadata.
|
public java.util.HashMap<java.lang.String,StructuralMetadata.ClassType> getClasses()
public java.util.HashMap<java.lang.String,StructuralMetadata.EnumType> getEnums()
public java.util.ArrayList<StructuralMetadata.PropertyTable> getPropertyTables()
public StructuralMetadata.ClassType createClass(java.lang.String name)
name - The class's namejava.lang.IllegalArgumentException - Raised when empty class name or the name has been already used.public StructuralMetadata.EnumType createEnum(java.lang.String name)
name - The enum type's namepublic StructuralMetadata.PropertyTable createPropertyTable(java.lang.String name, StructuralMetadata.ClassType clazz)
name - The name of the property tableclazz - The class type of the new property tablepublic void attach(Scene scene)
public static StructuralMetadata from(Scene scene)
StructuralMetadata associated with specified scene.scene - Which scene to look for the structural metadataStructuralMetadata if its found in the scene, otherwise null returned