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 Stringprotected Stringprotected XMLPropertyprotected intFields 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.intGets the property type.voidSets 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, waitMethods 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:
getParentPropertyin interfaceXMLProperty- Returns:
- the type
-
getPropertyType
public int getPropertyType()Gets the property type.- Specified by:
getPropertyTypein interfaceXMLProperty- Returns:
- the type
-
setValue
Description copied from interface:XMLPropertySets the value of this property if property type is primitive or string. This does nothing for other property types.- Specified by:
setValuein interfaceXMLProperty- Parameters:
stringValue- the string value of a primitive or string property
-