Klasse ModelPropertyPointer

java.lang.Object
org.apache.commons.jxpath.ri.model.NodePointer
org.apache.commons.jxpath.ri.model.beans.PropertyPointer
org.apache.torque.generator.source.ModelPropertyPointer
Alle implementierten Schnittstellen:
Serializable, Cloneable, Comparable, org.apache.commons.jxpath.Pointer

public class ModelPropertyPointer extends org.apache.commons.jxpath.ri.model.beans.PropertyPointer
Pointer pointing to a property or field of a JavaBean.
Version:
$Id: $
Autor:
Dmitri Plotnikov, Thomas Fox
Siehe auch:
  • Feldübersicht

    Von Klasse geerbte Felder org.apache.commons.jxpath.ri.model.beans.PropertyPointer

    bean, propertyIndex, UNSPECIFIED_PROPERTY

    Von Klasse geerbte Felder org.apache.commons.jxpath.ri.model.NodePointer

    index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    ModelPropertyPointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.JXPathBeanInfo beanInfo, Class<?> valueClass)
    Create a new BeanPropertyPointer.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    org.apache.commons.jxpath.ri.model.NodePointer
    createPath(org.apache.commons.jxpath.JXPathContext context)
     
    Get the value of the currently selected property.
    If index == WHOLE_COLLECTION, the value of the property, otherwise the value of the index'th element of the collection represented by the property.
    int
    If the property contains a collection, then the length of that collection, otherwise - 1.
    int
     
    protected PropertyDescriptor[]
    Get all PropertyDescriptors.
    Get the name of the currently selected property.
    Get the names of all properties, sorted alphabetically.
    protected boolean
     
    boolean
     
    boolean
    This type of node is auxiliary.
    void
     
    void
    setIndex(int index)
     
    void
    setPropertyIndex(int index)
    Selects a property by its offset in the alphabetically sorted list.
    void
    Select a property by name.
    void
    If index == WHOLE_COLLECTION, change the value of the property, otherwise change the value of the index'th element of the collection represented by the property.

    Von Klasse geerbte Methoden org.apache.commons.jxpath.ri.model.beans.PropertyPointer

    compareChildNodePointers, createChild, createChild, createPath, equals, getBean, getImmediateValuePointer, getName, getPropertyIndex, hashCode, isActual, isLeaf

    Von Klasse geerbte Methoden org.apache.commons.jxpath.ri.model.NodePointer

    asPath, attributeIterator, childIterator, clone, compareTo, createAttribute, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isAttribute, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setNamespaceResolver, testNode, toString

    Von Klasse geerbte Methoden java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Konstruktordetails

    • ModelPropertyPointer

      public ModelPropertyPointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.JXPathBeanInfo beanInfo, Class<?> valueClass)
      Create a new BeanPropertyPointer.
      Parameter:
      parent - parent pointer
      beanInfo - describes the target property/ies.
      valueClass - the class of the base object
  • Methodendetails

    • isContainer

      public boolean isContainer()
      This type of node is auxiliary.
      Setzt außer Kraft:
      isContainer in Klasse org.apache.commons.jxpath.ri.model.NodePointer
      Gibt zurück:
      true
    • getPropertyCount

      public int getPropertyCount()
      Angegeben von:
      getPropertyCount in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
    • getPropertyNames

      public String[] getPropertyNames()
      Get the names of all properties, sorted alphabetically.
      Angegeben von:
      getPropertyNames in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
      Gibt zurück:
      the names of all properties, not null.
    • setPropertyName

      public void setPropertyName(String name)
      Select a property by name.
      Angegeben von:
      setPropertyName in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
      Parameter:
      name - String name
    • setPropertyIndex

      public void setPropertyIndex(int index)
      Selects a property by its offset in the alphabetically sorted list.
      Setzt außer Kraft:
      setPropertyIndex in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
      Parameter:
      index - property index
    • getBaseValue

      public Object getBaseValue()
      Get the value of the currently selected property.
      Angegeben von:
      getBaseValue in Klasse org.apache.commons.jxpath.ri.model.NodePointer
      Gibt zurück:
      Object value
    • setIndex

      public void setIndex(int index)
      Setzt außer Kraft:
      setIndex in Klasse org.apache.commons.jxpath.ri.model.NodePointer
    • getImmediateNode

      public Object getImmediateNode()
      If index == WHOLE_COLLECTION, the value of the property, otherwise the value of the index'th element of the collection represented by the property. If the property is not a collection, index should be zero and the value will be the property itself.
      Setzt außer Kraft:
      getImmediateNode in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
      Gibt zurück:
      Object
    • isActualProperty

      protected boolean isActualProperty()
      Angegeben von:
      isActualProperty in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
    • isCollection

      public boolean isCollection()
      Setzt außer Kraft:
      isCollection in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
    • getLength

      public int getLength()
      If the property contains a collection, then the length of that collection, otherwise - 1.
      Setzt außer Kraft:
      getLength in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
      Gibt zurück:
      int length
    • setValue

      public void setValue(Object value)
      If index == WHOLE_COLLECTION, change the value of the property, otherwise change the value of the index'th element of the collection represented by the property.
      Angegeben von:
      setValue in Schnittstelle org.apache.commons.jxpath.Pointer
      Angegeben von:
      setValue in Klasse org.apache.commons.jxpath.ri.model.NodePointer
      Parameter:
      value - value to set
    • createPath

      public org.apache.commons.jxpath.ri.model.NodePointer createPath(org.apache.commons.jxpath.JXPathContext context)
      Setzt außer Kraft:
      createPath in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
    • remove

      public void remove()
      Setzt außer Kraft:
      remove in Klasse org.apache.commons.jxpath.ri.model.NodePointer
    • getPropertyName

      public String getPropertyName()
      Get the name of the currently selected property.
      Angegeben von:
      getPropertyName in Klasse org.apache.commons.jxpath.ri.model.beans.PropertyPointer
      Gibt zurück:
      String property name
    • getPropertyDescriptors

      protected PropertyDescriptor[] getPropertyDescriptors()
      Get all PropertyDescriptors.
      Gibt zurück:
      PropertyDescriptor[]