Package org.opensourcephysics.controls
Class XMLNode
java.lang.Object
org.opensourcephysics.controls.XMLNode
- All Implemented Interfaces:
XMLProperty
- Direct Known Subclasses:
XMLControlElement
,XMLPropertyElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensourcephysics.controls.XMLProperty
XMLProperty.WrappedArray
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected XMLProperty
protected int
Fields inherited from interface org.opensourcephysics.controls.XMLProperty
TYPE_ARRAY, TYPE_BOOLEAN, TYPE_COLLECTION, TYPE_DOUBLE, TYPE_INT, TYPE_OBJECT, TYPE_STRING, TYPE_UNKNOWN, TYPE_WRAPPED_ARRAY, types
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the immediate parent property.int
Gets the property type.void
Sets the value of this property if property type is primitive or string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensourcephysics.controls.XMLProperty
getChildControl, getChildControls, getLevel, getPropertyClass, getPropertyContent, getPropertyName
-
Field Details
-
name
-
type
protected int type -
className
-
parent
-
-
Constructor Details
-
XMLNode
public XMLNode()
-
-
Method Details
-
getParentProperty
Gets the immediate parent property.- Specified by:
getParentProperty
in interfaceXMLProperty
- Returns:
- the type
-
getPropertyType
public int getPropertyType()Gets the property type.- Specified by:
getPropertyType
in interfaceXMLProperty
- Returns:
- the type
-
setValue
Description copied from interface:XMLProperty
Sets the value of this property if property type is primitive or string. This does nothing for other property types.- Specified by:
setValue
in interfaceXMLProperty
- Parameters:
stringValue
- the string value of a primitive or string property
-