public class SFNodeObject extends X3DConcreteField implements SFNode
MFNodeObject| Modifier and Type | Field and Description |
|---|---|
static X3DNode |
DEFAULT_VALUE
Default value for this field type is a null node.
|
static java.lang.String |
DEFAULT_VALUE_STRING
Default string value for this field type is "".
|
static java.lang.String |
NAME
String constant NAME provides name of this element: SFNode
|
static int |
TUPLE_SIZE
Default tuple size for this field type is 1 (i.e. number of component values making up a single-field SF object).
|
validationResult| Constructor and Description |
|---|
SFNodeObject()
Constructor for SFNodeObject performs value initialization.
|
SFNodeObject(SFNodeObject newValue)
Constructor to copy an SFNodeObject value as initial value for this new field object.
|
SFNodeObject(X3DNode newValue)
Constructor for SFNodeObject using a corresponding Java primitive X3DNode as new initial value.
|
| Modifier and Type | Method and Description |
|---|---|
SFNodeObject |
clearChildren()
Utility method to clear all contained children including nodes, statements and comments (if any).
|
X3DNode |
getPrimitiveValue()
Provides current value of the field as a Java primitive type.
|
X3DNode |
getValue()
Get the current value.
|
void |
initialize()
Initialization for SFNodeObject applies default initial value.
|
boolean |
isDefaultValue()
Determine whether current value matches DEFAULT_VALUE
|
SFNodeObject |
setValue(SFNodeObject newValue)
Apply an SFNodeObject value to this field.
|
void |
setValue(X3DNode newValue)
Assign a new value to this field.
|
java.lang.String |
toString()
Provides current value as a String.
|
static java.lang.String |
toString(X3DNode value)
Static utility method to provide String representation of a correctly typed input value.
|
addX3DEventListener, getDefinition, getTupleSize, getValidationResult, isReadable, isWritable, removeX3DEventListener, setReadable, setWritableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddX3DEventListener, getDefinition, isReadable, isWritable, removeX3DEventListenerpublic static final java.lang.String NAME
public static final X3DNode DEFAULT_VALUE
public static final java.lang.String DEFAULT_VALUE_STRING
public static final int TUPLE_SIZE
public SFNodeObject()
public SFNodeObject(SFNodeObject newValue)
newValue - The newValue to applypublic SFNodeObject(X3DNode newValue)
newValue - is new value to assign
setContainerFieldOverride(containerFieldName); // apply checksConcreteField#getTupleSize(String)public void initialize()
initialize in class X3DConcreteFieldDEFAULT_VALUEpublic static java.lang.String toString(X3DNode value)
value - The value to convert to a Stringpublic X3DNode getValue()
public X3DNode getPrimitiveValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setValue(X3DNode newValue)
setValue in interface SFNodenewValue - The replacement value to assign.X3DConcreteField.getTupleSize(String)public SFNodeObject setValue(SFNodeObject newValue)
newValue - The newValue to applySFNodeObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public SFNodeObject clearChildren()
SFNodeObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public boolean isDefaultValue()
DEFAULT_VALUECopyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.