Interface XMLProperty

All Known Subinterfaces:
XMLControl
All Known Implementing Classes:
XMLControlElement, XMLNode, XMLPropertyElement

public interface XMLProperty
This defines methods for storing data in an xml property element.
Version:
1.0
Author:
Douglas Brown
  • Field Details

  • Method Details

    • getTypeName

      static String getTypeName(int type)
    • getTypeCode

      static int getTypeCode(String type)
    • getDataType

      static int getDataType(Object obj)
      Gets the XMLProperty type for a Java object.
      Parameters:
      obj - the object
      Returns:
      the type
    • getPropertyName

      String getPropertyName()
      Gets the property name.
      Returns:
      a name
    • getPropertyType

      int getPropertyType()
      Gets the property type.
      Returns:
      the type
    • getPropertyClass

      Class<?> getPropertyClass()
      Gets the property class.
      Returns:
      the class
    • getParentProperty

      XMLProperty getParentProperty()
      Gets the immediate parent property.
      Returns:
      the type
    • getLevel

      int getLevel()
      Gets the level of this property relative to root.
      Returns:
      the non-negative integer level
    • getPropertyContent

      List<Object> getPropertyContent()
      Clone the property content of this property.
      Returns:
      a list of strings and XMLProperties
    • getChildControl

      XMLControl getChildControl(String name)
      Gets the named XMLControl child of this property. May return null.
      Parameters:
      name - the property name
      Returns:
      the XMLControl
    • getChildControls

      XMLControl[] getChildControls()
      Gets the XMLControl children of this property.
      Returns:
      an array of XMLControls
    • setValue

      void setValue(String stringValue)
      Sets the value of this property if property type is primitive or string. This does nothing for other property types.
      Parameters:
      stringValue - the string value of a primitive or string property