Class Attribute

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected InterMineObject item  
      protected java.lang.String name  
      protected java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Attribute()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getFieldProxy​(java.lang.String fieldName)
      Returns the value of a field without dereferencing any ProxyReference objects.
      java.lang.Class<?> getFieldType​(java.lang.String fieldName)
      Returns the type of a field by name.
      java.lang.Object getFieldValue​(java.lang.String fieldName)
      Returns the value of a field by name.
      Item getItem()  
      java.lang.String getName()  
      java.lang.String getValue()  
      InterMineObject proxGetItem()  
      void proxyItem​(ProxyReference item)  
      void setFieldValue​(java.lang.String fieldName, java.lang.Object value)
      Sets the value of a field by name.
      void setItem​(Item item)  
      void setName​(java.lang.String name)  
      void setValue​(java.lang.String value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • value

        protected java.lang.String value
    • Constructor Detail

      • Attribute

        public Attribute()
    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getValue

        public java.lang.String getValue()
      • setValue

        public void setValue​(java.lang.String value)
      • getItem

        public Item getItem()
      • setItem

        public void setItem​(Item item)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFieldValue

        public java.lang.Object getFieldValue​(java.lang.String fieldName)
                                       throws java.lang.IllegalAccessException
        Description copied from interface: FastPathObject
        Returns the value of a field by name.
        Specified by:
        getFieldValue in interface FastPathObject
        Parameters:
        fieldName - the name of the field
        Returns:
        the value of the field
        Throws:
        java.lang.IllegalAccessException - when something goes wrong
      • getFieldProxy

        public java.lang.Object getFieldProxy​(java.lang.String fieldName)
                                       throws java.lang.IllegalAccessException
        Description copied from interface: FastPathObject
        Returns the value of a field without dereferencing any ProxyReference objects.
        Specified by:
        getFieldProxy in interface FastPathObject
        Parameters:
        fieldName - the name of the field
        Returns:
        the value of the field, or a ProxyReference representing it
        Throws:
        java.lang.IllegalAccessException - when something goes wrong
      • setFieldValue

        public void setFieldValue​(java.lang.String fieldName,
                                  java.lang.Object value)
        Description copied from interface: FastPathObject
        Sets the value of a field by name.
        Specified by:
        setFieldValue in interface FastPathObject
        Parameters:
        fieldName - the name of the field
        value - the value of the field, or a ProxyReference representing it
      • getFieldType

        public java.lang.Class<?> getFieldType​(java.lang.String fieldName)
        Description copied from interface: FastPathObject
        Returns the type of a field by name.
        Specified by:
        getFieldType in interface FastPathObject
        Parameters:
        fieldName - the name of the field
        Returns:
        the type of the field