Package org.web3d.x3d.jsail.Core
Class X3D
java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteStatement
org.web3d.x3d.jsail.Core.X3D
X3D is the root node for an Extensible 3D (X3D) Graphics model. This concrete class represents an X3D statement.
X3D statement tooltip: [X3D statement] X3D is the top-most XML element for an Extensible 3D (X3D) Graphics model. The X3D element contains a single head element for metadata, and a single Scene element which is root node of the 3D scene graph.
X3D statement tooltip: [X3D statement] X3D is the top-most XML element for an Extensible 3D (X3D) Graphics model. The X3D element contains a single head element for metadata, and a single Scene element which is root node of the 3D scene graph.
- Hint: for more on XML declaration and DOCTYPE (DTD) statements, see https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Validation
- Hint: additional attributes are under consideration for use when embedding X3D version 4 scenes within HTML version 5 web pages.
- Hint: X3D Architecture 7.2.5.2 Header statement https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/core.html#HeaderStatement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
String constant COMPONENT defines X3D component for the X3D element: Corestatic final String
File extension for X3D ClassicVRML Encoding, with dot prepended: .x3dvstatic final String
File extension for Efficient XML Interchange (EXI) compressed XML file, with dot prepended: .existatic final String
File extension for Graphics Interchange Format (GIF) image format, with dot prepended: .gifstatic final String
File extension for GZIP compressed file, with dot prepended: .gzstatic final String
File extension for HTML Encoding, with dot prepended: .htmlstatic final String
File extension for Java source code, with dot prepended: .javastatic final String
File extension for JavaScript source code, with dot prepended: .jsstatic final String
File extension for Joint Photographic Experts Group (JPEG) image format, with dot prepended: .jpegstatic final String
File extension for Joint Photographic Experts Group (JPEG) image format, with dot prepended: .jpgstatic final String
File extension for JavaScript Object Notation (JSON) source data, with dot prepended: .jsonstatic final String
File extension for markdown encoding, with dot prepended: .mdstatic final String
File extension for PLY file format (Polygon File Format, or Stanford Triangle Format) with dot prepended: .ply.static final String
File extension for Portable Network Graphics (PNG) image format, with dot prepended: .pngstatic final String
File extension for Python programming-language source code, with dot prepended: .pystatic final String
File extension for STL (stereolithography) file format with dot prepended: .stlstatic final String
File extension for Scalable Vector Graphics (SVG), with dot prepended: .svgstatic final String
File extension for text files, with dot prepended: .txtstatic final String
File extension for VRML97 Encoding, with dot prepended: .wrlstatic final String
File extension for X3D XML Encoding, with dot prepended: .x3dstatic final String
File extension for X3D Compressed Binary Encoding, with dot prepended: .x3dbstatic final String
File extension for XHTML Encoding, with dot prepended: .xhtmlstatic final String
File extension for Extensible Markup Language, with dot prepended: .xmlstatic final String
File extension for ZIP compressed file, with dot prepended: .zipstatic final head
SFNode field named head has default value null (Java syntax) or NULL (XML syntax).static final int
Integer constant LEVEL provides default X3D Core component level for this element: 1static final String
String constant NAME provides name of this element: X3D.static final String
Tooltip: CADInterchange Profile adds support for CADGeometry component nodes to Interchange Profile.static final String
Tooltip: Core Profile includes no nodes and is provided as the basis for custom componentization.static final String
SFString field named profile has default value "Full" (Java syntax) or Full (XML syntax).static final String
Tooltip: The Full Profile corresponds to all Immersive X3D nodes plus all approved/implemented extensions.static final String
Tooltip: Immersive Profile equals all of the nodes in the VRML97 Specification, plus various X3D node additions including KeySensor, StringSensor and Scene.static final String
Tooltip: Interactive Profile adds interaction nodes (Anchor, KeySensor) to the minimum subset of nodes needed to display lightweight compelling content.static final String
Tooltip: Interchange Profile equals the minimum subset of nodes needed to display lightweight compelling content.static final String
Tooltip: The MedicalInterchange profile adds support for VolumeRendering component to Interchange profile.static final String
Tooltip: MPEGInteractive Profile defines base interoperability with MPEG4 standards to a small subset of nodes needed to display lightweight compelling content.static final Scene
SFNode field named Scene has default value null (Java syntax) or NULL (XML syntax).static final String
Tooltip: X3D version 3.0 approved by ISO in 2004.static final String
Tooltip: X3D version 3.1 Amendment 1 approved by ISO in 2005.static final String
Tooltip: X3D version 3.2 Amendment 2 approved by ISO in 2007.static final String
Tooltip: X3D version 3.3 approved by ISO in 2013 as International Standard (IS).static final String
Tooltip: X3D version 4.0 under final development by Web3D Consortium.static final String
SFString field named version has default value "4.0" (Java syntax) or 4.0 (XML syntax).static final String
XML Schema attributes for X3D element.static final String
XML Schema attributes for X3D element.static final String
XML Schema attributes for X3D element.static final String
XML Schema attributes for X3D element.static final String
XML Schema attributes for X3D element.static final String
XML Schema attributes for X3D element.static final String
XML document type declaration.static final String
XML document type declaration.static final String
XML document type declaration.static final String
XML document type declaration.static final String
XML document type declaration.static final String
XML document type declaration.static final String
XML declaration appears on first line of an XML document.Fields inherited from class org.web3d.x3d.jsail.X3DConcreteElement
CLASS_DEFAULT_VALUE, ID_DEFAULT_VALUE, STYLE_DEFAULT_VALUE, validationResult
-
Constructor Summary
ConstructorsConstructorDescriptionX3D()
Constructor for X3D to initialize member variables with default values. -
Method Summary
Modifier and TypeMethodDescriptionaddComments
(String newComment) Add comment as String to contained commentsList.addComments
(String[] newComments) Add comments as String[] array to contained commentsList.addComments
(CommentsBlock newCommentsBlock) Add CommentsBlock to contained commentsList.Utility method to clear SFNode value of head field.Utility method to clear SFNode value of Scene field.static boolean
fileNameMeetsX3dNamingConventions
(String fileName) Check whether fileName ending in .x3d meets X3D naming conventions, ignoring prior path (if any).findElementByNameValue
(String nameValue) Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.findElementByNameValue
(String nameValue, String elementName) Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.findNodeByDEF
(String DEFvalue) Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.boolean
fromFileEXI
(String exiFileName) Load new model from an EXI file, using unzip to extract the model plus any associated files into the same path location.boolean
fromFileGZIP
(String gzipFileName) Load new model from a gz gzip file, using ungzip to extract the model into the same path location.boolean
fromFileZIP
(String zipFileName, String outputFileName) Load new model from a zip file, using unzip to extract the model plus any associated files into the same path location.boolean
fromFileZIP
(String zipFileName, String outputFileName, String modelFileName) Load new model from a zip file, using unzip to extract the model plus any associated files into the same path location.getAccessType
(String fieldName) Indicate accessType corresponding to given fieldName.final String
Defines X3D component for the X3D element: Corefinal int
Provides default X3D component level for this element: 1Provide String value from inputOutput SFString field named class.Provide String value from inputOutput SFString field named style.final String
Provides name of this element: X3DgetFieldType
(String fieldName) Indicate type corresponding to given fieldName.getHead()
Provide head instance (using a properly typed node) from inputOutput SFNode field head.Provide String value from inputOutput SFString field named id.Provide String enumeration value (baseType xs:NMTOKEN) ["Core" | "Interchange" | "CADInterchange" | "Interactive" | "Immersive" | "MedicalInterchange" | "MPEG4Interactive" | "Full"] from inputOutput SFString field named profile.getScene()
Provide Scene instance (using a properly typed node) from inputOutput SFNode field Scene.static File
getTempFileFromX3dJsailJar
(String internalPath, String fileName) Return a file found within X3DJSAIL jarProvide String enumeration value (baseType xs:NMTOKEN) ["3.0" | "3.1" | "3.2" | "3.3" | "4.0"] from inputOutput SFString field named version.void
handleArguments
(String[] args) Utility method for standalone programs that get created with stylesheet X3dToJava.xslt, also sets loaded X3D model fileInputStream global CommandLine to this X3D object.boolean
hasElementByNameValue
(String nameValue, String elementName) Recursive method to determine whether node or statement with given name attribute is found, meaning both objects are attached to same scene graph.boolean
hasHead()
Indicate whether an object is available for inputOutput SFNode field head.boolean
hasNodeByDEF
(String DEFvalue) Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.boolean
hasScene()
Indicate whether an object is available for inputOutput SFNode field Scene.final void
Initialize all member variables to default values.boolean
isEmpty()
Determine if this X3D model is empty and no content is present.static boolean
isFileNameNMTOKEN
(String fileName) Check whether fileName is satisfactory NMTOKEN, ignoring prior path (if any).boolean
loadModelFromFileX3D
(File x3dFile) Load X3D model from file to initialize or replace contents of this X3D object.boolean
loadModelFromFileX3D
(String fileName) Load X3D model from file to initialize or replace contents of this X3D object.boolean
loadModelFromFileX3D
(String path, String fileName) Load X3D model from file to initialize or replace contents of this X3D object.boolean
Replaces current X3D object with new X3D object.final X3D
setCssClass
(String newValue) Accessor method to assign String value to inputOutput SFString field named class.setCssClass
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.final X3D
setCssStyle
(String newValue) Accessor method to assign String value to inputOutput SFString field named style.setCssStyle
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssStyle(String)
.Accessor method to assign head instance (using a properly typed node) to inputOutput SFNode field head.final X3D
Accessor method to assign String value to inputOutput SFString field named id.Assign typed object value to SFString HtmlID field, similar tosetHtmlID(String)
.void
setIncludeSubdirectoryPaths
(boolean value) Set whether to include subdirectory paths when creating markdown (default is true)setProfile
(String newValue) Accessor method to assign String enumeration value ("Core" | "Interchange" | "CADInterchange" | "Interactive" | "Immersive" | "MedicalInterchange" | "MPEG4Interactive" | "Full") to inputOutput SFString field named profile.setProfile
(SFString newValue) Assign typed object value to SFString profile field, similar tosetProfile(String)
.Accessor method to assign Scene instance (using a properly typed node) to inputOutput SFNode field Scene.setVersion
(String newValue) Accessor method to assign String enumeration value ("3.0" | "3.1" | "3.2" | "3.3" | "4.0") to inputOutput SFString field named version.setVersion
(SFString newValue) Assign typed object value to SFString version field, similar tosetVersion(String)
.boolean
supportsX3dComponent
(String otherComponent, int minimumLevel) Confirm whether given component is supported by current X3D model, Warning: no support for level tests yet.boolean
supportsX3dProfile
(String otherProfile) Confirm whether given profile is supported by current X3D modelboolean
supportsX3dVersion
(String otherVersion) Confirm whether given version is supported by current X3D object.toFileClassicVRML
(String fileName) Serialize scene graph using toStringClassicVRML() to create a new X3D file with extension x3dv.toFileCobweb
(String sourceSceneName, String resultFileName) Deprecated.Save current model as an EXI file.toFileGZIP
(String resultFileName) Save current model as a GZIP file.toFileHtmlDocumentation
(String fileName) Serialize scene graph using toFileX3D() and then create a new pretty-print HTML file with extension .html, suitable for documentation purposes.toFileJava
(String fileName) Serialize scene graph using X3dToJava.xslt stylesheet to create a new Java source file with extension java, no default license included.toFileJava
(String fileName, boolean includeWeb3dLicense) Serialize scene graph using X3dToJava.xslt stylesheet to create a new Java source file with extension java.toFileJavaScript
(String fileName) Serialize scene graph using NodeSerializer.js to create a JavaScript file.toFileJavaScript
(String fileName, boolean includeWeb3dLicense) Serialize scene graph using NodeSerializer.js to create a JavaScript file, with boolean indicating whether to include open-source license.toFileJSON
(String fileName) Serialize scene graph using X3dToJson.xslt stylesheet to create a new JSON-encoding X3D file with extension json.toFileModelMetaMarkdown
(String fileName) Create model meta information as `name`=`value` pairs, providing markdown output as an output file having extension .md.toFilePython
(String fileName) Serialize scene graph using X3dToPython.xslt stylesheet to create a new Python-language X3D file with extension py.toFileStylesheetConversion
(String stylesheetName, String fileName) Utility method for toFileStylesheetConversion() with no stylesheet parameters.toFileStylesheetConversion
(String stylesheetName, String fileName, String parameterName1, String parameterValue1) Utility method for toFileStylesheetConversion() with a single stylesheet name=value parameter pair.toFileStylesheetConversion
(String stylesheetName, String fileName, String parameterName1, String parameterValue1, String parameterName2, String parameterValue2) Serialize current X3D scene graph using toFileX3D() and then create a new file with corresponding filename extension (e.g.toFileVRML97
(String fileName) Serialize scene graph using toStringVRML97() to create a new X3D file with extension wrl.toFileX_ITE
(String sourceSceneName, String resultFileName) Create displayable scene page rendered with X_ITE (formerly Cobweb) using STYLESHEET_X3DOM and special settings, by serializing XML syntax within an XHTML file having extension .xhtml.Serialize scene graph using toStringX3D() to create a new XML-encoding X3D file with extension x3d or xml.toFileX3DOM
(String fileName) Create displayable scene page rendered with X3DOM, using STYLESHEET_X3DOM by serializing XML syntax within an XHTML file having extension .xhtml.toFileX3dTidy
(String fileName) Create alternate cleaned-up X3D scene using STYLESHEET_X3DTIDY within an output file having extension .x3d.Serialize scene graph using toStringX3D() to create a new XML-encoding X3D file with extension x3d or xml.Save current model as a ZIP file.toStringClassicVRML
(int indentLevel) Recursive method to provide ClassicVRML string serialization.Serialize scene graph using STYLESHEET_HTML_DOCUMENTATION to create a new X3DOM html page as a string.Serialize scene graph using toFileJava() to create new Java source as a string.Serialize scene graph using NodeSerializer.js to create a JavaScript string.Serialize scene graph using X3dToJson.xslt stylesheet to create a new JSON-encoding string.Produce model meta information as `name`=`value` pairs, providing markdown output as a string.Serialize scene graph using X3dToPython.xslt stylesheet to create a new Python-language string.toStringVRML97
(int indentLevel) Recursive method to provide VRML97 string serialization.toStringX_ITE
(String sourceSceneName) Serialize scene graph using STYLESHEET_X3DOM (with appropriate parameters) to create a new X_ITE html page as a string.toStringX3D
(int indentLevel) Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.Serialize scene graph using STYLESHEET_X3DOM to create a new X3DOM html page as a string.Produce alternate cleaned-up X3D scene using STYLESHEET_X3DTIDY, providing output as a string.Provide XML string serialization of this model subgraph, utilizing X3D XML encoding and conforming to X3D Canonical Form.toStringXML
(int indentLevel) Provide XML string serialization of this model subgraph, utilizing X3D XML encoding and conforming to X3D Canonical Form.validate()
Recursive method to validate this element plus all contained nodes and statements, using both datatype-specification value checks and regular expression (regex) checking of corresponding string values.Provide thorough X3DJSAIL validation results for this X3D model.Methods inherited from class org.web3d.x3d.jsail.X3DConcreteStatement
isNode, isStatement
Methods inherited from class org.web3d.x3d.jsail.X3DConcreteElement
addComments, clearParent, findAncestorElementByName, findAncestorProtoBody, findAncestorScene, findAncestorX3D, getPackageName, getParent, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorScene, hasAncestorX3D, hasParent, isValid, setConcreteCssClass, setConcreteCssStyle, setConcreteHtmlID, setParent, toStringClassicVRML, toStringVRML97, toStringX3D
-
Field Details
-
XML_HEADER
XML declaration appears on first line of an XML document.
<?xml version="1.0" encoding="UTF-8"?> -
XML_DOCTYPE_X3D_4_1
XML document type declaration. DOCTYPE supports element/attribute structural validation and follows the initial XML declaration, before the first element in an XML document.
<?DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.1//EN" "https://www.web3d.org/specifications/x3d-4.1.dtd"> -
XML_DOCTYPE_X3D_4_0
XML document type declaration. DOCTYPE supports element/attribute structural validation and follows the initial XML declaration, before the first element in an XML document. <?DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd"> -
XML_DOCTYPE_X3D_3_3
XML document type declaration. DOCTYPE supports element/attribute structural validation and follows the initial XML declaration, before the first element in an XML document.
<?DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd"> -
XML_DOCTYPE_X3D_3_2
XML document type declaration. DOCTYPE supports element/attribute structural validation and follows the initial XML declaration, before the first element in an XML document.
<?DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd"> -
XML_DOCTYPE_X3D_3_1
XML document type declaration. DOCTYPE supports element/attribute structural validation and follows the initial XML declaration, before the first element in an XML document.
<?DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd"> -
XML_DOCTYPE_X3D_3_0
XML document type declaration. DOCTYPE supports element/attribute structural validation and follows the initial XML declaration, before the first element in an XML document.
<?DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd"> -
X3D_XML_SCHEMA_3_0_ATTRIBUTES
XML Schema attributes for X3D element.
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd' -
X3D_XML_SCHEMA_3_1_ATTRIBUTES
XML Schema attributes for X3D element.
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.1.xsd' -
X3D_XML_SCHEMA_3_2_ATTRIBUTES
XML Schema attributes for X3D element.
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd' -
X3D_XML_SCHEMA_3_3_ATTRIBUTES
XML Schema attributes for X3D element.
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd' -
X3D_XML_SCHEMA_4_0_ATTRIBUTES
XML Schema attributes for X3D element.
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd' -
X3D_XML_SCHEMA_4_1_ATTRIBUTES
XML Schema attributes for X3D element.
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.1.xsd' -
PROFILE_CORE
Tooltip: Core Profile includes no nodes and is provided as the basis for custom componentization. Allowed X3D statements for all profiles are: connect ExternProtoDeclare EXPORT field fieldValue IMPORT IS ProtoBody ProtoDeclare ProtoInterface ProtoInstance ROUTE X3D. Allowed X3D nodes for this profile are: MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Core" (Java syntax) or Core (XML syntax). -
PROFILE_INTERCHANGE
Tooltip: Interchange Profile equals the minimum subset of nodes needed to display lightweight compelling content. Allowed X3D nodes for this profile are: Appearance Background Box Color ColorInterpolator ColorRGBA Cone Coordinate CoordinateInterpolator Cylinder DirectionalLight Group ImageTexture IndexedFaceSet IndexedLineSet IndexedTriangleFanSet IndexedTriangleSet IndexedTriangleStripSet LineSet Material MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString MultiTexture MultiTextureCoordinate MultiTextureTransform NavigationInfo Normal NormalInterpolator OrientationInterpolator PixelTexture PointSet PositionInterpolator ScalarInterpolator Shape Sphere TextureCoordinate TextureCoordinateGenerator TextureTransform TimeSensor Transform TriangleFanSet TriangleSet TriangleStripSet Viewpoint WorldInfo. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Interchange" (Java syntax) or Interchange (XML syntax). -
PROFILE_CADINTERCHANGE
Tooltip: CADInterchange Profile adds support for CADGeometry component nodes to Interchange Profile. Allowed X3D nodes for this profile are: Anchor Appearance CADAssembly CADFace CADLayer CADPart Billboard Collision Color ColorRGBA Coordinate DirectionalLight FragmentShader Group ImageTexture IndexedLineSet IndexedQuadSet IndexedTriangleFanSet IndexedTriangleSet IndexedTriangleStripSet Inline LineProperties LineSet LOD Material MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString MultiShader MultiTexture MultiTextureCoordinate MultiTextureTransform NavigationInfo Normal PixelTexture PointSet QuadSet Shader ShaderAppearance Shape TextureCoordinate TextureCoordinateGenerator TextureTransform Transform TriangleFanSet TriangleSet TriangleStripSet Viewpoint VertexShader WorldInfo. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CADInterchange" (Java syntax) or CADInterchange (XML syntax). -
PROFILE_INTERACTIVE
Tooltip: Interactive Profile adds interaction nodes (Anchor, KeySensor) to the minimum subset of nodes needed to display lightweight compelling content. Allowed X3D nodes for this profile are: Anchor Appearance Background BooleanFilter BooleanSequencer BooleanToggle BooleanTrigger Box Color ColorInterpolator ColorRGBA Cone Coordinate CoordinateInterpolator Cylinder CylinderSensor DirectionalLight ElevationGrid Group ImageTexture IndexedFaceSet IndexedLineSet IndexedTriangleFanSet IndexedTriangleSet IndexedTriangleStripSet Inline IntegerSequencer IntegerTrigger KeySensor LineSet Material MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString MultiTexture MultiTextureCoordinate MultiTextureTransform NavigationInfo Normal NormalInterpolator OrientationInterpolator IndexedTriangleStripSet Inline IntegerSequencer IntegerTrigger KeySensor LineSet Material MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString MultiTexture MultiTextureCoordinate MultiTextureTransform NavigationInfo Normal NormalInterpolator OrientationInterpolator PixelTexture PlaneSensor PointLight PointSet PositionInterpolator ProximitySensor ScalarInterpolator Shape Sphere SphereSensor SpotLight StringSensor Switch TextureCoordinate TextureCoordinateGenerator TextureTransform TimeSensor TimeTrigger TouchSensor Transform TriangleFanSet TriangleSet TriangleStripSet Viewpoint VisibilitySensor WorldInfo. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Interactive" (Java syntax) or Interactive (XML syntax). -
PROFILE_IMMERSIVE
Tooltip: Immersive Profile equals all of the nodes in the VRML97 Specification, plus various X3D node additions including KeySensor, StringSensor and Scene. Allowed X3D nodes for this profile are: Anchor Appearance AudioClip Background Billboard BooleanFilter BooleanSequencer BooleanToggle BooleanTrigger Box Collision Color ColorInterpolator ColorRGBA Cone Coordinate CoordinateInterpolator Cylinder CylinderSensor DirectionalLight ElevationGrid Extrusion Fog FontStyle Group ImageTexture IndexedFaceSet IndexedLineSet IndexedTriangleFan IndexedTriangleSet IndexedTriangleStripSet Inline IntegerSequencer IntegerTrigger KeySensor LineProperties LineSet LoadSensor LOD Material MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString MovieTexture MultiTexture MultiTextureCoordinate MultiTextureTransform NavigationInfo Normal NormalInterpolator OrientationInterpolator PixelTexture PlaneSensor PointLight PointSet Polyline2D Polypoint2D PositionInterpolator ProximitySensor Rectangle2D ScalarInterpolator Script Shape Sound Sphere SphereSensor SpotLight StringSensor Switch Text TextureCoordinate TextureCoordinateGenerator TextureTransform TimeSensor TimeTrigger TouchSensor TriangleFanSet TriangleSet TriangleSet2D TriangleStripSet Transform Viewpoint VisibilitySensor WorldInfo. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Immersive" (Java syntax) or Immersive (XML syntax). -
PROFILE_MEDICALINTERCHANGE
Tooltip: The MedicalInterchange profile adds support for VolumeRendering component to Interchange profile. Allowed X3D nodes for this profile are: Anchor Arc2D ArcClose2D Appearance Background Billboard BlendedVolumeStyle BooleanFilter BooleanSequencer BooleanToggle BooleanTrigger BoundaryEnhancementVolumeStyle Box CartoonVolumeStyle Circle2D ClipPlane Collision Color ColorInterpolator ColorRGBA ComposedVolumeStyle CompositeTexture3D Cone Coordinate CoordinateDouble CoordinateInterpolator Cylinder DirectionalLight Disk2D EdgeEnhancementVolumeStyle FillProperties FontStyle Group ImageTexture ImageTexture3D IndexedFaceSet IndexedLineSet IndexedTriangleFanSet IndexedTriangleSet IndexedTriangleStripSet Inline IntegerSequencer IntegerTrigger IsoSurfaceVolumeData LineProperties LineSet LOD Material MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString MultiTexture MultiTextureCoordinate MultiTextureTransform NavigationInfo Normal NormalInterpolator OctTree OpacityMapVolumeStyle OrientationInterpolator OrthoViewpoint PixelTexture PixelTexture3D PointSet Polyline2D Polypoint2D PositionInterpolator ProjectionVolumeStyle Rectangle2D ScalarInterpolator SegmentedVolumeData ShadedVolumeStyle Shape SilhouetteEnhancementVolumeStyle Sphere StaticGroup Switch Text TextureCoordinate TextureCoordinate3D TextureCoordinate4D TextureCoordinateGenerator TextureMatrixTransform TextureProperties TextureTransform TextureTransform3D TimeSensor TimeTrigger ToneMappedVolumeStyle Transform TriangleFanSet TriangleSet TriangleStripSet Viewpoint ViewpointGroup VolumeData WorldInfo. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "MedicalInterchange" (Java syntax) or MedicalInterchange (XML syntax). -
PROFILE_MPEG4INTERACTIVE
Tooltip: MPEGInteractive Profile defines base interoperability with MPEG4 standards to a small subset of nodes needed to display lightweight compelling content. Allowed X3D nodes for this profile are: Anchor Appearance Background Box Color ColorInterpolator ColorRGBA Cone Coordinate CoordinateInterpolator Cylinder CylinderSensor DirectionalLight ElevationGrid Group ImageTexture IndexedFaceSet IndexedLineSet Inline LineSet Material MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString NavigationInfo NormalInterpolator OrientationInterpolator PixelTexture PlaneSensor PointLight PointSet PositionInterpolator ProximitySensor ScalarInterpolator Shape Sphere SphereSensor SpotLight Switch TextureCoordinate TextureTransform TimeSensor TouchSensor Transform Viewpoint WorldInfo. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "MPEG4Interactive" (Java syntax) or MPEG4Interactive (XML syntax). -
PROFILE_FULL
Tooltip: The Full Profile corresponds to all Immersive X3D nodes plus all approved/implemented extensions. All X3D nodes and statements are allowed in this profile. SFString field named profile with X3DUOM simpleType profileNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Full" (Java syntax) or Full (XML syntax). -
VERSION_3_0
Tooltip: X3D version 3.0 approved by ISO in 2004. SFString field named version with X3DUOM simpleType x3dVersionChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "3.0" (Java syntax) or 3.0 (XML syntax). -
VERSION_3_1
Tooltip: X3D version 3.1 Amendment 1 approved by ISO in 2005. Backwards compatibility maintained with version 3.0. SFString field named version with X3DUOM simpleType x3dVersionChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "3.1" (Java syntax) or 3.1 (XML syntax). -
VERSION_3_2
Tooltip: X3D version 3.2 Amendment 2 approved by ISO in 2007. Backwards compatibility maintained with versions 3.0 and 3.1. SFString field named version with X3DUOM simpleType x3dVersionChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "3.2" (Java syntax) or 3.2 (XML syntax). -
VERSION_3_3
Tooltip: X3D version 3.3 approved by ISO in 2013 as International Standard (IS). Backwards compatibility maintained with versions 3.0, 3.1 and 3.2. SFString field named version with X3DUOM simpleType x3dVersionChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "3.3" (Java syntax) or 3.3 (XML syntax). -
VERSION_4_0
Tooltip: X3D version 4.0 under final development by Web3D Consortium. Backwards compatibility maintained with versions 3.0, 3.1, 3.2 and 3.3. SFString field named version with X3DUOM simpleType x3dVersionChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "4.0" (Java syntax) or 4.0 (XML syntax). -
NAME
String constant NAME provides name of this element: X3D.- See Also:
-
COMPONENT
String constant COMPONENT defines X3D component for the X3D element: Core- See Also:
-
LEVEL
public static final int LEVELInteger constant LEVEL provides default X3D Core component level for this element: 1- See Also:
-
HEAD_DEFAULT_VALUE
SFNode field named head has default value null (Java syntax) or NULL (XML syntax). -
PROFILE_DEFAULT_VALUE
SFString field named profile has default value "Full" (Java syntax) or Full (XML syntax).- See Also:
-
SCENE_DEFAULT_VALUE
SFNode field named Scene has default value null (Java syntax) or NULL (XML syntax). -
VERSION_DEFAULT_VALUE
SFString field named version has default value "4.0" (Java syntax) or 4.0 (XML syntax).- See Also:
-
FILE_EXTENSION_X3D
File extension for X3D XML Encoding, with dot prepended: .x3d- See Also:
-
FILE_EXTENSION_CLASSICVRML
File extension for X3D ClassicVRML Encoding, with dot prepended: .x3dv -
FILE_EXTENSION_X3DB
File extension for X3D Compressed Binary Encoding, with dot prepended: .x3db -
FILE_EXTENSION_VRML97
File extension for VRML97 Encoding, with dot prepended: .wrl- See Also:
-
FILE_EXTENSION_XML
File extension for Extensible Markup Language, with dot prepended: .xml -
FILE_EXTENSION_SVG
File extension for Scalable Vector Graphics (SVG), with dot prepended: .svg- See Also:
-
FILE_EXTENSION_HTML
File extension for HTML Encoding, with dot prepended: .html- See Also:
-
FILE_EXTENSION_MARKDOWN
File extension for markdown encoding, with dot prepended: .md -
FILE_EXTENSION_PLY
File extension for PLY file format (Polygon File Format, or Stanford Triangle Format) with dot prepended: .ply. -
FILE_EXTENSION_STL
File extension for STL (stereolithography) file format with dot prepended: .stl -
FILE_EXTENSION_XHTML
File extension for XHTML Encoding, with dot prepended: .xhtml- See Also:
-
FILE_EXTENSION_TEXT
File extension for text files, with dot prepended: .txt- See Also:
-
FILE_EXTENSION_GIF
File extension for Graphics Interchange Format (GIF) image format, with dot prepended: .gif -
FILE_EXTENSION_JPG
File extension for Joint Photographic Experts Group (JPEG) image format, with dot prepended: .jpg -
FILE_EXTENSION_JPEG
File extension for Joint Photographic Experts Group (JPEG) image format, with dot prepended: .jpeg -
FILE_EXTENSION_PNG
File extension for Portable Network Graphics (PNG) image format, with dot prepended: .png -
FILE_EXTENSION_JAVA
File extension for Java source code, with dot prepended: .java -
FILE_EXTENSION_JAVASCRIPT
File extension for JavaScript source code, with dot prepended: .js -
FILE_EXTENSION_JSON
File extension for JavaScript Object Notation (JSON) source data, with dot prepended: .json -
FILE_EXTENSION_PYTHON
File extension for Python programming-language source code, with dot prepended: .py -
FILE_EXTENSION_EXI
File extension for Efficient XML Interchange (EXI) compressed XML file, with dot prepended: .exi -
FILE_EXTENSION_GZIP
File extension for GZIP compressed file, with dot prepended: .gz -
FILE_EXTENSION_ZIP
File extension for ZIP compressed file, with dot prepended: .zip
-
-
Constructor Details
-
X3D
public X3D()Constructor for X3D to initialize member variables with default values.
-
-
Method Details
-
getElementName
Provides name of this element: X3D- Specified by:
getElementName
in classX3DConcreteElement
- Returns:
- name of this element
-
getComponent
Defines X3D component for the X3D element: Core- Specified by:
getComponent
in classX3DConcreteElement
- Returns:
- X3D component for this element
-
getComponentLevel
public final int getComponentLevel()Provides default X3D component level for this element: 1- Specified by:
getComponentLevel
in classX3DConcreteElement
- Returns:
- default X3D component level for this element
-
getFieldType
Indicate type corresponding to given fieldName.- Specified by:
getFieldType
in classX3DConcreteElement
- Parameters:
fieldName
- name of field in this X3D statement- Returns:
- X3D type (SFvec3f etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE if not recognized
- See Also:
-
getAccessType
Indicate accessType corresponding to given fieldName.- Specified by:
getAccessType
in classX3DConcreteElement
- Parameters:
fieldName
- name of field in this X3D statement- Returns:
- X3D accessType (inputOnly etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE if not recognized
- See Also:
-
initialize
public final void initialize()Initialize all member variables to default values.- Overrides:
initialize
in classX3DConcreteStatement
-
toStringXML
Provide XML string serialization of this model subgraph, utilizing X3D XML encoding and conforming to X3D Canonical Form. -
toStringXML
Provide XML string serialization of this model subgraph, utilizing X3D XML encoding and conforming to X3D Canonical Form.- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- X3D string
- See Also:
-
toFileXML
Serialize scene graph using toStringX3D() to create a new XML-encoding X3D file with extension x3d or xml.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .x3d- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
isFileNameNMTOKEN
Check whether fileName is satisfactory NMTOKEN, ignoring prior path (if any).- Parameters:
fileName
- name of file to check- Returns:
- whether fileName is satisfactory NMTOKEN
- See Also:
-
fileNameMeetsX3dNamingConventions
Check whether fileName ending in .x3d meets X3D naming conventions, ignoring prior path (if any). Not observing these conventions can cause errors when converting to a Java file name.- Parameters:
fileName
- name of file to check- Returns:
- whether fileName ending in .x3d is satisfactory NMTOKEN
- See Also:
-
toFileX3D
Serialize scene graph using toStringX3D() to create a new XML-encoding X3D file with extension x3d or xml.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .x3d- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toFileClassicVRML
Serialize scene graph using toStringClassicVRML() to create a new X3D file with extension x3dv.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .x3dv- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toFileVRML97
Serialize scene graph using toStringVRML97() to create a new X3D file with extension wrl.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .wrl- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toFileStylesheetConversion
Utility method for toFileStylesheetConversion() with no stylesheet parameters.- Parameters:
stylesheetName
- name of stylesheet to applyfileName
- name of file to create and save, can include local directory path, must end with allowed file extension (e.g. ".html")- Returns:
- File containing result (if operation succeeds), null otherwise
-
toFileStylesheetConversion
public File toFileStylesheetConversion(String stylesheetName, String fileName, String parameterName1, String parameterValue1) Utility method for toFileStylesheetConversion() with a single stylesheet name=value parameter pair.- Parameters:
stylesheetName
- name of stylesheet to applyfileName
- name of file to create and save, can include local directory path, must end with allowed file extension (e.g. ".html")parameterName1
- first stylesheet parameter nameparameterValue1
- first stylesheet parameter value- Returns:
- File containing result (if operation succeeds), null otherwise
-
toFileStylesheetConversion
public File toFileStylesheetConversion(String stylesheetName, String fileName, String parameterName1, String parameterValue1, String parameterName2, String parameterValue2) Serialize current X3D scene graph using toFileX3D() and then create a new file with corresponding filename extension (e.g. .html) using an embedded stylesheet.- Parameters:
stylesheetName
- name of stylesheet to applyfileName
- name of file to create and save, can include local directory path, must end with allowed file extension (e.g. ".html")parameterName1
- first stylesheet parameter nameparameterValue1
- first stylesheet parameter valueparameterName2
- second stylesheet parameter nameparameterValue2
- second stylesheet parameter value- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileJSON(String)
toFilePython(String)
toFileX3DOM(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
SFString.isNMTOKEN(String)
SFString.meetsX3dInteroperabilityNamingConventions(String)
ConfigurationProperties.X3DJSAIL_JAR_RELEASE_VERSIONS
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
toFileHtmlDocumentation
Serialize scene graph using toFileX3D() and then create a new pretty-print HTML file with extension .html, suitable for documentation purposes. Also create SVG output file (with same base name) for Extrusion crossSection, if found.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .html- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
ConfigurationProperties.STYLESHEET_HTML_DOCUMENTATION
ConfigurationProperties.STYLESHEET_ExtrusionCrossSectionSVG
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileJSON(String)
toFilePython(String)
toFileX3DOM(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
getTempFileFromX3dJsailJar
Return a file found within X3DJSAIL jar- Parameters:
internalPath
- is relative path to file from top of jarfileName
- is fileName of interest to retrieve- Returns:
- resulting temporary File object that is deleted when program invocation ends
-
toStringJSON
Serialize scene graph using X3dToJson.xslt stylesheet to create a new JSON-encoding string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringPython
Serialize scene graph using X3dToPython.xslt stylesheet to create a new Python-language string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringJava
Serialize scene graph using toFileJava() to create new Java source as a string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringJavaScript
Serialize scene graph using NodeSerializer.js to create a JavaScript string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toFileJavaScript
Serialize scene graph using NodeSerializer.js to create a JavaScript file.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .js- Returns:
- File containing result (if operation succeeds), empty otherwise
- See Also:
-
toFileJavaScript
Serialize scene graph using NodeSerializer.js to create a JavaScript file, with boolean indicating whether to include open-source license.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .jsincludeWeb3dLicense
- whether to include license- Returns:
- File containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringHtmlDocumentation
Serialize scene graph using STYLESHEET_HTML_DOCUMENTATION to create a new X3DOM html page as a string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringModelMetaMarkdown
Produce model meta information as `name`=`value` pairs, providing markdown output as a string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringX3dTidy
Produce alternate cleaned-up X3D scene using STYLESHEET_X3DTIDY, providing output as a string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringX3DOM
Serialize scene graph using STYLESHEET_X3DOM to create a new X3DOM html page as a string.- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toStringX_ITE
Serialize scene graph using STYLESHEET_X3DOM (with appropriate parameters) to create a new X_ITE html page as a string.- Parameters:
sourceSceneName
- X3D file to load and view- Returns:
- String containing result (if operation succeeds), empty otherwise
- See Also:
-
toFileJSON
Serialize scene graph using X3dToJson.xslt stylesheet to create a new JSON-encoding X3D file with extension json.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .xhtml (preferred) or .html- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toStringJSON()
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileHtmlDocumentation(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
toFileX3DOM(String)
FILE_EXTENSION_JSON
FILE_EXTENSION_JAVASCRIPT
ConfigurationProperties.STYLESHEET_JSON
ConfigurationProperties.isNormalizeCommentWhitespace()
- X3dToJson.xslt
- examples/HelloWorldProgramOutput.json
- X3D JSON Encoding
- X3D to JSON Stylesheet Converter
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
toFilePython
Serialize scene graph using X3dToPython.xslt stylesheet to create a new Python-language X3D file with extension py.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .xhtml (preferred) or .html- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toStringPython()
toStringJSON()
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFilePython(String)
toFileHtmlDocumentation(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
toFileX3DOM(String)
FILE_EXTENSION_PYTHON
ConfigurationProperties.STYLESHEET_PYTHON
ConfigurationProperties.isNormalizeCommentWhitespace()
- X3dToPython.xslt
- examples/HelloWorldProgramOutput.py
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
toFileJava
Serialize scene graph using X3dToJava.xslt stylesheet to create a new Java source file with extension java, no default license included.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .xhtml (preferred) or .html- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toFileJava
Serialize scene graph using X3dToJava.xslt stylesheet to create a new Java source file with extension java.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .xhtml (preferred) or .htmlincludeWeb3dLicense
- whether to insert default open-source Web3D license at top of source file- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJSON(String)
toFilePython(String)
toFileHtmlDocumentation(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
toFileX3DOM(String)
FILE_EXTENSION_JSON
FILE_EXTENSION_JAVASCRIPT
ConfigurationProperties.STYLESHEET_JSON
- X3dToJava.xslt
- examples/HelloWorldProgramOutput.java
- X3D JSON Encoding
- X3D to JSON Stylesheet Converter
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
setIncludeSubdirectoryPaths
public void setIncludeSubdirectoryPaths(boolean value) Set whether to include subdirectory paths when creating markdown (default is true)- Parameters:
value
- whether to omit subdirectory paths when creating markdown (default is true)- See Also:
-
toFileModelMetaMarkdown
Create model meta information as `name`=`value` pairs, providing markdown output as an output file having extension .md.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .xhtml (preferred) or .html- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toStringModelMetaMarkdown()
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileJSON(String)
toFilePython(String)
toFileHtmlDocumentation(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
SFString.isNMTOKEN(String)
SFString.meetsX3dInteroperabilityNamingConventions(String)
ConfigurationProperties.STYLESHEET_MODEL_META_TO_MARKDOWN
- X3D Tidy for Scene Cleanup, Corrections and Modifications
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
toFileX3dTidy
Create alternate cleaned-up X3D scene using STYLESHEET_X3DTIDY within an output file having extension .x3d.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .xhtml (preferred) or .html- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toStringX3dTidy()
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileJSON(String)
toFilePython(String)
toFileHtmlDocumentation(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
SFString.isNMTOKEN(String)
SFString.meetsX3dInteroperabilityNamingConventions(String)
ConfigurationProperties.STYLESHEET_X3DTIDY
- X3D Tidy for Scene Cleanup, Corrections and Modifications
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
toFileX3DOM
Create displayable scene page rendered with X3DOM, using STYLESHEET_X3DOM by serializing XML syntax within an XHTML file having extension .xhtml.- Parameters:
fileName
- name of file to create and save, can include local directory path, must end with .xhtml (preferred) or .html- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
- X3DOM open-source X3D player
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileJSON(String)
toFilePython(String)
toFileHtmlDocumentation(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
SFString.isNMTOKEN(String)
SFString.meetsX3dInteroperabilityNamingConventions(String)
ConfigurationProperties.STYLESHEET_X3DOM
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
toFileX_ITE
Create displayable scene page rendered with X_ITE (formerly Cobweb) using STYLESHEET_X3DOM and special settings, by serializing XML syntax within an XHTML file having extension .xhtml.- Parameters:
sourceSceneName
- X3D file to load and viewresultFileName
- name of file to create and save, can include local directory path, must end with .html (preferred) or .xhtml- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
- X_ITE open-source X3D player
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileJSON(String)
toFilePython(String)
toFileHtmlDocumentation(String)
toFileX3DOM(String)
toFileX_ITE(String,String)
toFileCobweb(String,String)
ConfigurationProperties.STYLESHEET_X3DOM
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
toFileCobweb
Deprecated.Create displayable scene page rendered with X_ITE (formerly Cobweb) using STYLESHEET_X3DOM and special settings, by serializing XML syntax within an XHTML file having extension .xhtml.- Parameters:
sourceSceneName
- X3D file to load and viewresultFileName
- name of file to create and save, can include local directory path, must end with .html (preferred) or .xhtml- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
- X_ITE open-source X3D player
X3DConcreteElement.toStringX3D()
toFileX3D(String)
toFileJava(String)
toFileJSON(String)
toFilePython(String)
toFileHtmlDocumentation(String)
toFileX3DOM(String)
toFileX_ITE(String,String)
ConfigurationProperties.STYLESHEET_X3DOM
- Saxonica > Saxon > Using XSLT > Invoking XSLT from an application
- Saxon-HE 9.7
- Java Tutorials: Transforming XML Data with XSLT
- Java Tutorials: Transforming XML Data with XSLT, sample files
- Buffered I/O Methods for Text Files
-
fromFileZIP
Load new model from a zip file, using unzip to extract the model plus any associated files into the same path location.- Parameters:
zipFileName
- name of zip file to load, can include local directory path, must end with .zipoutputFileName
- name of output file to save, can include local directory path, must end with .x3d or .xml- Returns:
- boolean if operation succeeds in creating this X3DObject, false otherwise
- See Also:
-
fromFileZIP
Load new model from a zip file, using unzip to extract the model plus any associated files into the same path location.
Warning: If nomodelFileName
is provided, then the first.x3d
model encountered in the zip file is returned (if any).
Warning: this method overwrites any previously existing file versions when decompressing.- Parameters:
zipFileName
- name of zip file to load, can include local directory path, must end with .zipoutputFileName
- name of output file to save, can include local directory path, must end with .x3d or .xmlmodelFileName
- name of model file to load, can include local directory path, must end with .x3d- Returns:
- boolean if operation succeeds in creating this X3DObject, false otherwise
- See Also:
-
fromFileGZIP
Load new model from a gz gzip file, using ungzip to extract the model into the same path location.
Warning: this method overwrites any previously existing file versions when decompressing.- Parameters:
gzipFileName
- name of file to load, can include local directory path, must end with .exi- Returns:
- boolean if operation succeeds in creating this X3DObject, false otherwise
- See Also:
-
fromFileEXI
Load new model from an EXI file, using unzip to extract the model plus any associated files into the same path location.
Warning: this method overwrites any previously existing file versions when decompressing.- Parameters:
exiFileName
- name of file to load, can include local directory path, must end with .exi- Returns:
- boolean if operation succeeds in creating this X3DObject, false otherwise
- See Also:
-
- OpenEXI Nagasena Tutorial
- EXIFICIENT Java Implementations
- Wikipedia: Efficient XML Interchange (EXI) file format
ConfigurationProperties.getExiEngine()
ConfigurationProperties.setExiEngine(String)
FILE_EXTENSION_EXI
FILE_EXTENSION_GZIP
FILE_EXTENSION_ZIP
toFileEXI(String)
fromFileZIP(String,String)
fromFileGZIP(String)
-
isEmpty
public boolean isEmpty()Determine if this X3D model is empty and no content is present.- Returns:
- true if no head and no Scene found, otherwise false
-
loadModelFromFileX3D
Load X3D model from file to initialize or replace contents of this X3D object. Supports .x3d or .xml file encodings.- Parameters:
fileName
- name of model file that replaces current X3DObject- Returns:
- true if replacement successful, false otherwise
-
loadModelFromFileX3D
Load X3D model from file to initialize or replace contents of this X3D object. Supports .x3d or .xml file encodings.- Parameters:
path
- directory path to file of interestfileName
- name of model file that replaces current X3DObject- Returns:
- true if replacement successful, false otherwise
-
loadModelFromFileX3D
Load X3D model from file to initialize or replace contents of this X3D object. Supports .x3d or .xml file encodings.- Parameters:
x3dFile
- model file that replaces current X3DObject- Returns:
- true if replacement successful, false otherwise
-
replace
Replaces current X3D object with new X3D object.- Parameters:
newX3DObject
- replaces current X3DObject- Returns:
- true if replacement successful, false otherwise
-
toFileEXI
Save current model as an EXI file.- Parameters:
resultFileName
- name of file to create and save, can include local directory path, must end with .exi- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toFileGZIP
Save current model as a GZIP file.- Parameters:
resultFileName
- name of file to create and save, can include local directory path, must end with .gz (TODO or .tgz)- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
toFileZIP
Save current model as a ZIP file.- Parameters:
zipFileName
- name of zip archive file to create and save, can include local directory path, must end with .zipmodelName
- name of X3D file to create and save within the .zip archive- Returns:
- File containing result (if operation succeeds), null otherwise
- See Also:
-
validationReport
Provide thorough X3DJSAIL validation results for this X3D model.- Returns:
- "success" or validation results plus exception information (if any)
-
handleArguments
Utility method for standalone programs that get created with stylesheet X3dToJava.xslt, also sets loaded X3D model fileInputStream global CommandLine to this X3D object. Invocation switches are listed in CommandLine.USAGE help.- Parameters:
args
- command-line arguments- See Also:
-
getCssClass
Provide String value from inputOutput SFString field named class.- Overrides:
getCssClass
in classX3DConcreteElement
- Returns:
- value of class field
- See Also:
-
setCssClass
Accessor method to assign String value to inputOutput SFString field named class.- Parameters:
newValue
- is new value for the class field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setCssClass
Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.- Parameters:
newValue
- is new value for the class field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getHead
Provide head instance (using a properly typed node) from inputOutput SFNode field head.
Tooltip: Include a head element to contain component, unit or meta statements for this X3D model. *- Returns:
- value of head field
-
setHead
Accessor method to assign head instance (using a properly typed node) to inputOutput SFNode field head.
Tooltip: Include a head element to contain component, unit or meta statements for this X3D model. *- Parameters:
newValue
- is new value for the head field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearHead
Utility method to clear SFNode value of head field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
hasHead
public boolean hasHead()Indicate whether an object is available for inputOutput SFNode field head.- Returns:
- whether a concrete statement or CommentsBlock is available.
- See Also:
-
getHtmlID
Provide String value from inputOutput SFString field named id.- Overrides:
getHtmlID
in classX3DConcreteElement
- Returns:
- value of id field
- See Also:
-
setHtmlID
Accessor method to assign String value to inputOutput SFString field named id.- Parameters:
newValue
- is new value for the id field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setHtmlID
Assign typed object value to SFString HtmlID field, similar tosetHtmlID(String)
.- Parameters:
newValue
- is new value for the id field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getProfile
Provide String enumeration value (baseType xs:NMTOKEN) ["Core" | "Interchange" | "CADInterchange" | "Interactive" | "Immersive" | "MedicalInterchange" | "MPEG4Interactive" | "Full"] from inputOutput SFString field named profile.
Tooltip: profile attribute is required and defines the player or tool support needed for this model.- Hint: Core profile corresponds to minimalist extensible profile with Metadata* nodes, useful for defining custom scene capabilities via addition of individual component statements. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/coreprofile.html
- Hint: Interchange profile corresponds to minimum lightweight subset of nodes needed to display (or import/export) compelling 3D content. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/interchange.html
- Hint: Interactive profile corresponds to Interchange geometry plus simple user interaction. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/interactive.html
- Hint: Immersive profile is common and approximately matches VRML97 with Script and Prototypes. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/immersive.html
- Hint: CADInterchange profile (X3D version 3.1 or later) corresponds to Interchange geometry plus distillation of computer-aided design (CAD) models. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/CADInterchange.html
- Hint: MedicalInterchange profile (X3D version 3.3 or later) adds support for VolumeRendering component to Interchange profile. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/MedicalInterchange.html
- Hint: Full profile contains all nodes defined in X3D specification. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/fullProfile.html
- Warning: PROFILE is capitalized and is a separate statement in the ClassicVRML Encoding.
- Hint: X3D Architecture 7.2.5.3 PROFILE statement https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/core.html#PROFILEStatement
Available enumeration values for string comparison:CORE
,INTERCHANGE
,CADINTERCHANGE
,INTERACTIVE
,IMMERSIVE
,MEDICALINTERCHANGE
,MPEG4INTERACTIVE
,FULL
.- Returns:
- value of profile field
-
setProfile
Accessor method to assign String enumeration value ("Core" | "Interchange" | "CADInterchange" | "Interactive" | "Immersive" | "MedicalInterchange" | "MPEG4Interactive" | "Full") to inputOutput SFString field named profile.
Warning: authors can only choose from a strict list of enumeration values (CORE
,INTERCHANGE
,CADINTERCHANGE
,INTERACTIVE
,IMMERSIVE
,MEDICALINTERCHANGE
,MPEG4INTERACTIVE
,FULL
).
Tooltip: profile attribute is required and defines the player or tool support needed for this model.- Hint: Core profile corresponds to minimalist extensible profile with Metadata* nodes, useful for defining custom scene capabilities via addition of individual component statements. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/coreprofile.html
- Hint: Interchange profile corresponds to minimum lightweight subset of nodes needed to display (or import/export) compelling 3D content. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/interchange.html
- Hint: Interactive profile corresponds to Interchange geometry plus simple user interaction. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/interactive.html
- Hint: Immersive profile is common and approximately matches VRML97 with Script and Prototypes. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/immersive.html
- Hint: CADInterchange profile (X3D version 3.1 or later) corresponds to Interchange geometry plus distillation of computer-aided design (CAD) models. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/CADInterchange.html
- Hint: MedicalInterchange profile (X3D version 3.3 or later) adds support for VolumeRendering component to Interchange profile. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/MedicalInterchange.html
- Hint: Full profile contains all nodes defined in X3D specification. https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/fullProfile.html
- Warning: PROFILE is capitalized and is a separate statement in the ClassicVRML Encoding.
- Hint: X3D Architecture 7.2.5.3 PROFILE statement https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/core.html#PROFILEStatement
- Parameters:
newValue
- is new value for the profile field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setProfile
Assign typed object value to SFString profile field, similar tosetProfile(String)
.- Parameters:
newValue
- is new value for the profile field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getScene
Provide Scene instance (using a properly typed node) from inputOutput SFNode field Scene.
Tooltip: Include a Scene element to contain scene-graph nodes for this X3D model.- Warning: Scene is a child of X3D statement, and must follow the (optional) head statement.
- Returns:
- value of Scene field
-
setScene
Accessor method to assign Scene instance (using a properly typed node) to inputOutput SFNode field Scene.
Tooltip: Include a Scene element to contain scene-graph nodes for this X3D model.- Warning: Scene is a child of X3D statement, and must follow the (optional) head statement.
- Parameters:
newValue
- is new value for the Scene field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearScene
Utility method to clear SFNode value of Scene field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
hasScene
public boolean hasScene()Indicate whether an object is available for inputOutput SFNode field Scene.- Returns:
- whether a concrete statement or CommentsBlock is available.
- See Also:
-
getCssStyle
Provide String value from inputOutput SFString field named style.- Overrides:
getCssStyle
in classX3DConcreteElement
- Returns:
- value of style field
- See Also:
-
setCssStyle
Accessor method to assign String value to inputOutput SFString field named style.- Parameters:
newValue
- is new value for the style field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setCssStyle
Assign typed object value to SFString cssClass field, similar tosetCssStyle(String)
.- Parameters:
newValue
- is new value for the style field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getVersion
Provide String enumeration value (baseType xs:NMTOKEN) ["3.0" | "3.1" | "3.2" | "3.3" | "4.0"] from inputOutput SFString field named version.
Tooltip: Default is highest value matching schema and DOCTYPE in the scene.- Hint: X3D version 3.0 standardization occurred in 2004, version 3.1 standardization occurred in 2006, version 3.2 standardization occurred in 2008, version 3.3 standardization occurred in 2012, version 4.0 undergoing final implementation, evaluation and publication in 2020.
- Warning: X3D version 4.0 is experimental and under development, focused on HTML5/DOM interoperability.
- Warning: X3D version 4.1 is experimental and under development, focused on Mixed and Augmented Reality (MAR).
- Hint: X3D version 4 Overview at https://www.web3d.org/x3d4
- Hint: X3D version 4 Implementations Status at https://www.web3d.org/x3dv4-implementations
Available enumeration values for string comparison:3_0
,3_1
,3_2
,3_3
,4_0
.- Returns:
- value of version field
-
setVersion
Accessor method to assign String enumeration value ("3.0" | "3.1" | "3.2" | "3.3" | "4.0") to inputOutput SFString field named version.
Warning: authors can only choose from a strict list of enumeration values (3_0
,3_1
,3_2
,3_3
,4_0
).
Tooltip: Default is highest value matching schema and DOCTYPE in the scene.- Hint: X3D version 3.0 standardization occurred in 2004, version 3.1 standardization occurred in 2006, version 3.2 standardization occurred in 2008, version 3.3 standardization occurred in 2012, version 4.0 undergoing final implementation, evaluation and publication in 2020.
- Warning: X3D version 4.0 is experimental and under development, focused on HTML5/DOM interoperability.
- Warning: X3D version 4.1 is experimental and under development, focused on Mixed and Augmented Reality (MAR).
- Hint: X3D version 4 Overview at https://www.web3d.org/x3d4
- Hint: X3D version 4 Implementations Status at https://www.web3d.org/x3dv4-implementations
- Parameters:
newValue
- is new value for the version field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setVersion
Assign typed object value to SFString version field, similar tosetVersion(String)
.- Parameters:
newValue
- is new value for the version field.- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addComments
Add comment as String to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newComment
- initial value- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addComments
Add comments as String[] array to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newComments
- array of comments- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add CommentsBlock to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newCommentsBlock
- block of comments to add- Returns:
X3D
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
toStringX3D
Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.- Specified by:
toStringX3D
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- X3D string
- See Also:
-
toStringClassicVRML
Recursive method to provide ClassicVRML string serialization.- Specified by:
toStringClassicVRML
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- ClassicVRML string
- See Also:
-
toStringVRML97
Recursive method to provide VRML97 string serialization.- Specified by:
toStringVRML97
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- VRML97 string
- See Also:
-
findElementByNameValue
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorScene() to check entire scene graph, or findAncestorX3D() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValue
in classX3DConcreteElement
- Parameters:
nameValue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found element, null otherwise
- See Also:
-
findElementByNameValue
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorScene() to check entire scene graph, or findAncestorX3D() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValue
in classX3DConcreteElement
- Parameters:
nameValue
- is value of the name field being searched for in this element and child elements(if any)elementName
- identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)- Returns:
- object reference to found element, null otherwise
- See Also:
-
hasElementByNameValue
Recursive method to determine whether node or statement with given name attribute is found, meaning both objects are attached to same scene graph.- Parameters:
nameValue
- is value of the name field being searched for in this element and child elements(if any)elementName
- identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)- Returns:
- whether node is found
- See Also:
-
findNodeByDEF
Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.
Warning: first start with findAncestorScene() to check entire scene graph, or findAncestorX3D() to check entire model document.
Warning: more than one element may be found that has the same DEF, this method does not handle that case.- Specified by:
findNodeByDEF
in classX3DConcreteElement
- Parameters:
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found node, null otherwise
- See Also:
-
hasNodeByDEF
Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.- Parameters:
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- whether node is found
- See Also:
-
validate
Recursive method to validate this element plus all contained nodes and statements, using both datatype-specification value checks and regular expression (regex) checking of corresponding string values.- Specified by:
validate
in classX3DConcreteElement
- Returns:
- validation results (if any)
-
supportsX3dVersion
Confirm whether given version is supported by current X3D object.- Parameters:
otherVersion
- other X3D version to check- Returns:
- whether current X3D version is greater than or equal to otherVersion
- Throws:
InvalidFieldValueException
- if provided with illegal value
-
supportsX3dProfile
Confirm whether given profile is supported by current X3D model- Parameters:
otherProfile
- different X3D profile for comparison- Returns:
- whether current X3D model supports otherProfile
- Throws:
InvalidFieldValueException
- if provided with illegal value
-
supportsX3dComponent
public boolean supportsX3dComponent(String otherComponent, int minimumLevel) throws InvalidFieldValueException Confirm whether given component is supported by current X3D model, Warning: no support for level tests yet. TODO.- Parameters:
otherComponent
- other component to checkminimumLevel
- minimum level of component support needed- Returns:
- comparison result
- Throws:
InvalidFieldValueException
- if provided with illegal value(s)
-