Package org.web3d.vrml.lang
Class ProfileInfo
java.lang.Object
org.web3d.vrml.lang.ProfileInfo
Description of a single profile.
A profile is a short-hand way of describing an aggregation of components. A valid profile will always have one or more components, but a title string is optional.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
-
Constructor Summary
ConstructorsConstructorDescriptionProfileInfo
(String name, String title, ComponentInfo[] comps) Construct a basic component description that just has a name and level. -
Method Summary
-
Constructor Details
-
ProfileInfo
Construct a basic component description that just has a name and level.- Parameters:
name
- The name of the componenttitle
- The level of the componentcomps
- The components that make up this profile- Throws:
IllegalArgumentException
- The name was null or level < 1
-
-
Method Details
-
getName
-
getTitle
Get the title of this component. This is a long-form version that could be used in a UI. If no title is set, will return null.- Returns:
- The title string of this component
-
getComponents
Get the list of defined components for this profile. A profile will always have one or more components.- Returns:
- An array of the component definitions for this profile
-
toX3DString
Return a formatted string version of this component that conforms to the X3D 1.0 specification for VRML file encoding. The string will start with thePROFILE
keyword, as per spec.- Returns:
- A correctly formatted string.
-