Class X3DConcreteStatement
java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteStatement
- Direct Known Subclasses:
CommentsBlock, component, connect, EXPORT, ExternProtoDeclare, field, fieldValue, head, IMPORT, IS, meta, ProtoBody, ProtoDeclare, ProtoInterface, ROUTE, Scene, unit, X3D
Abstract parent class for concrete X3D statements, containing common methods and member variables.
- See Also:
-
Field Summary
Fields inherited from class X3DConcreteElement
NAME, validationResultModifier and TypeFieldDescriptionprotected static final StringString constant NAME provides name of this element; overridden by implementing class.protected StringBuilderResults log of local validation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitialize all member variables to default values.static final booleanisNode()Utility method to indicate whether this element is an X3D Graphics node (implementing X3DConcreteNode), returns false.static final booleanUtility method to indicate whether this element is an X3D Graphics statement (implementing X3DConcreteStatement), returns true.Methods inherited from class X3DConcreteElement
addComments, addComments, addComments, addComments, clearParent, findAncestorElementByName, findAncestorProtoBody, findAncestorScene, findAncestorX3D, findElementByNameValue, findElementByNameValue, findNodeByDEF, getAccessType, getComponent, getComponentLevel, getCssClass, getCssClassDefault, getCssStyle, getCssStyleDefault, getElementName, getFieldType, getHtmlId, getHtmlIdDefault, getPackageName, getParent, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorScene, hasAncestorX3D, hasParent, isValid, setConcreteCssClass, setConcreteCssStyle, setConcreteHtmlId, setParent, toStringClassicVRML, toStringClassicVRML, toStringVRML97, toStringVRML97, toStringX3D, toStringX3D, validateModifier and TypeMethodDescriptionDebug support: adding empty comment as CommentsBlock to children field has no effect.abstract X3DConcreteElementaddComments(String newComment) Add comment as String to contained commentsList.abstract X3DConcreteElementaddComments(String[] newComments) Add comments as String[] array to contained commentsList.abstract X3DConcreteElementaddComments(CommentsBlock newCommentsBlock) Add CommentsBlock to elementvoidPackage-protected internal method to clear local reference to parent object, if any.findAncestorElementByName(String ancestorElementName) Find object reference to ancestor element (i.e. node or statement), if this object is an attached child.Find object reference to ancestor ProtoBody, if this node or statement is a child.Find object reference to ancestor Scene element, assumes this object is an attached child.Find object reference to ancestor X3D element, if this node or statement is part of an X3D object.abstract X3DConcreteElementfindElementByNameValue(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.abstract X3DConcreteElementfindElementByNameValue(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.abstract X3DConcreteNodefindNodeByDEF(String DEFvalue) Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.abstract StringgetAccessType(String fieldName) Indicate accessType corresponding to given fieldName.abstract StringDefines X3D component for this element.abstract intProvides default X3D component level for this elementProvide String value from inputOutput SFString field named class.static final StringPublic SFString accessor for field named class for CSS has default value equal to an empty string.Provide String value from inputOutput SFString field named style.static final StringPublic SFString accessor for field named style for CSS has default value equal to an empty string.abstract StringProvides name of this element.abstract StringgetFieldType(String fieldName) Indicate type corresponding to given fieldName.Provide String value from inputOutput SFString field named id.static final StringPublic SFString accessor for field named id for html has default value equal to an empty string.static StringgetPackageName(String className) Provide fully qualified package for a given element object, including className.Provide object reference to parent X3D node or statement, if any.Get output of results from prior validation, if anybooleanhasAncestorElementByName(String ancestorElementName) Determine whether ancestor element (i.e. node or statement) is found, meaning this object is an attached child.booleanDetermine whether ancestor ProtoBody element is found, meaning this object is an attached child.booleanDetermine whether ancestor Scene element is found, meaning this object is an attached child.booleanDetermine whether ancestor X3D element is found, meaning this object is an attached child.booleanWhether parent object exists.booleanisValid()Recursive method to determine whether this element is valid.protected voidsetConcreteCssClass(String newValue) Protected internal superclass method to keep cssClass private, scene authors should use method setCssClass(newValue) instead.protected voidsetConcreteCssStyle(String newValue) Protected internal superclass method to keep cssStyles private, scene authors should use method setCssStyle(newValue) instead.protected voidsetConcreteHtmlId(String newValue) Protected internal superclass method to keep HTML id private, scene authors should use method setHtmlId(newValue) instead.voidsetParent(X3DConcreteElement newParentObject) Package-internal method to set parent object reference.Recursive method to provide ClassicVRML string serialization.abstract StringtoStringClassicVRML(int indentLevel) Recursive method to provide ClassicVRML string serialization.Recursive method to provide VRML97 string serialization.abstract StringtoStringVRML97(int indentLevel) Recursive method to provide VRML97 string serialization.Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.abstract StringtoStringX3D(int indentLevel) Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.abstract Stringvalidate()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.
-
Constructor Details
-
X3DConcreteStatement
public X3DConcreteStatement()
-
-
Method Details
-
isNode
public static final boolean isNode()Utility method to indicate whether this element is an X3D Graphics node (implementing X3DConcreteNode), returns false.- Returns:
- whether this element is an X3D Graphics node: false
- See Also:
-
isStatement
public static final boolean isStatement()Utility method to indicate whether this element is an X3D Graphics statement (implementing X3DConcreteStatement), returns true. (Does not include CommentsBlock objects.)- Returns:
- whether this element is an X3D Graphics statement: true
- See Also:
-
initialize
public void initialize()Initialize all member variables to default values.- Overrides:
initializein classX3DConcreteElement
-