Class XMLNode

java.lang.Object
org.opensourcephysics.controls.XMLNode
All Implemented Interfaces:
XMLProperty
Direct Known Subclasses:
XMLControlElement, XMLPropertyElement

public abstract class XMLNode extends Object implements XMLProperty
  • Field Details

    • name

      protected String name
    • type

      protected int type
    • className

      protected String className
    • parent

      protected XMLProperty parent
  • Constructor Details

    • XMLNode

      public XMLNode()
  • Method Details

    • getParentProperty

      public XMLProperty getParentProperty()
      Gets the immediate parent property.
      Specified by:
      getParentProperty in interface XMLProperty
      Returns:
      the type
    • getPropertyType

      public int getPropertyType()
      Gets the property type.
      Specified by:
      getPropertyType in interface XMLProperty
      Returns:
      the type
    • setValue

      public void setValue(String stringValue)
      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 interface XMLProperty
      Parameters:
      stringValue - the string value of a primitive or string property