Package org.web3d.vrml.lang
Class WriteableSceneMetaData
java.lang.Object
org.web3d.vrml.lang.SceneMetaData
org.web3d.vrml.lang.WriteableSceneMetaData
MetaData related to the scene.
MetaData provides setup information that is useful when trying to blend multiple scenes together. For example, it will tell you about what version and encoding the source file was in.
- Version:
- $Revision: 1.1 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.lang.SceneMetaData
ASCII_ENCODING, BIFS_ENCODING, BINARY_ENCODING, components, LAST_STD_ENCODING, metaData, profile, SCRIPTED_ENCODING, VRML_ENCODING, XML_ENCODING
-
Constructor Summary
ConstructorsConstructorDescriptionWriteableSceneMetaData
(String ver, boolean vrml, int enc) Create a new metadata instance for a scene that describes the given subset of information of the specification. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(ComponentInfo comp) Add a component description to this meta data.void
addMetaData
(String name, String value) Add a meta tag data item to this scene.void
removeMetaData
(String name) Remove the named tag from the map.void
setProfileName
(String prof) Set the name of the profile that is used by this scene.Methods inherited from class org.web3d.vrml.lang.SceneMetaData
getComponents, getEncoding, getMetaData, getProfileName, getVersion, isVrmlSpec
-
Constructor Details
-
WriteableSceneMetaData
Create a new metadata instance for a scene that describes the given subset of information of the specification.- Parameters:
ver
- The version string to be supportedvrml
- true if this is a VRMLX spec, false for X3Denc
- The encoding type used for the source file
-
-
Method Details
-
setProfileName
Set the name of the profile that is used by this scene. No validity checking is performed on the name.- Parameters:
prof
- The profile name
-
addComponent
Add a component description to this meta data. This describes additional component capabilities over the main profile.- Parameters:
comp
- The component information to add
-
addMetaData
Add a meta tag data item to this scene. Both name and value must be non-null.- Parameters:
name
- The name of the tag to addvalue
- The value of the tag- Throws:
NullPointerException
- The name or value were null
-
removeMetaData
Remove the named tag from the map. If tag name does not exist, the request is silently ignored.- Parameters:
name
- The name of the tag to remove
-