|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.lang.ComponentInfo
Description of a single component.
A component description contains many useful pieces of information about the requirements. At the basic level, it is just a name and a level. In addition to that, we can include supplemental information, such as who the provider of that component is, URL information and more.
| Constructor Summary | |
ComponentInfo(ComponentInfo info,
int level)
Copy constructor for creating a derived version of this component info but with a different level set. |
|
ComponentInfo(java.lang.String name,
int level)
Construct a basic component description that just has a name and level. |
|
ComponentInfo(java.lang.String name,
int level,
java.lang.String title,
java.lang.String url,
java.util.Map pkgs)
Construct a full component description. |
|
| Method Summary | |
int |
getLevel()
Get the level of the component. |
java.lang.String |
getName()
Get the name of this component. |
java.lang.String |
getPackage(java.lang.String renderer)
Get the name of the java package that the rendering classes will be sourced from for the given renderer type. |
java.lang.String |
getProviderURL()
Get the URL of the provider. |
java.lang.String |
getTitle()
Get the title of this component. |
java.lang.String |
toX3DString()
Return a formatted string version of this component that conforms to the X3D 1.0 specification for VRML file encoding. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComponentInfo(java.lang.String name,
int level)
name - The name of the componentlevel - The level of the component
java.lang.IllegalArgumentException - The name was null or level < 1
public ComponentInfo(java.lang.String name,
int level,
java.lang.String title,
java.lang.String url,
java.util.Map pkgs)
throws java.lang.IllegalArgumentException
name - The name of the componentlevel - The level of the componenttitle - The title of this componenturl - The provider URLpkgs - The Java package that this component is sourced from
java.lang.IllegalArgumentException - The name was null or level < 1
public ComponentInfo(ComponentInfo info,
int level)
info - The source to extract information fromlevel - The new level to use
java.lang.IllegalArgumentException - level < 1| Method Detail |
public java.lang.String getName()
public int getLevel()
public java.lang.String getTitle()
public java.lang.String getProviderURL()
public java.lang.String getPackage(java.lang.String renderer)
renderer - The name of the renderer for properties
public java.lang.String toX3DString()
COMPONENT keyword, as per spec.
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||