com.ibm.broker.plugin

Class MbProperty

  • java.lang.Object
    • com.ibm.broker.plugin.MbProperty


  • public class MbProperty
    extends java.lang.Object
    MbProperty represents a property of a config object in the C++ part of the broker. A container of instances of this class is returned by the getProperties() method of MbConfigObject.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isComplex()
      Returns true if this property is a complex property, or false if it is a simple property Simple properties are Boolean Long Double String com.ibm.broker.plugin.MbTime com.ibm.broker.plugin.MbDate com.ibm.broker.plugin.MbTimestamp com.ibm.broker.plugin.MbInterval byte[] bitSet
      java.lang.String name()
      Returns the name of the property as a string
      int numberOfColumns()
      Returns the number of columns this property has.
      int numberOfRows()
      Returns the number of rows this property has.
      java.lang.Object value()
      Returns the value of the property as a java object.
      java.lang.Object value(int row, int column)
      Returns the value at the given row and column number for a complex property.
      java.lang.Object value(int row, java.lang.String columnName)
      Returns the value at the given row and column number for a complex property.
      java.lang.String valueAsString()
      Returns a string representation of the property as a string
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • name

        public java.lang.String name()
                              throws MbException
        Returns the name of the property as a string
        Returns:
        The property name
        Throws:
        MbException
      • value

        public java.lang.Object value()
                               throws MbException
        Returns the value of the property as a java object. If the property is a complex property then null will be returned.
        Returns:
        The property value
        Throws:
        MbException
      • value

        public java.lang.Object value(int row,
                                      int column)
                               throws MbException
        Returns the value at the given row and column number for a complex property. The value will be a java object that represents the type of the cell in the complex property.
        Parameters:
        row - The row number (indexed from zero)
        column - The column number (indexed from zero)
        Returns:
        The cell property value
        Throws:
        MbException
      • value

        public java.lang.Object value(int row,
                                      java.lang.String columnName)
                               throws MbException
        Returns the value at the given row and column number for a complex property. The value will be a java object that represents the type of the cell in the complex property.
        Parameters:
        row - The row number (indexed from zero)
        columnName - The name of the column
        Returns:
        The cell property value
        Throws:
        MbException
      • valueAsString

        public java.lang.String valueAsString()
                                       throws MbException
        Returns a string representation of the property as a string
        Returns:
        The config object asString
        Throws:
        MbException
      • isComplex

        public boolean isComplex()
        Returns true if this property is a complex property, or false if it is a simple property Simple properties are Boolean Long Double String com.ibm.broker.plugin.MbTime com.ibm.broker.plugin.MbDate com.ibm.broker.plugin.MbTimestamp com.ibm.broker.plugin.MbInterval byte[] bitSet
        Returns:
        true if the property is a complex property
      • numberOfRows

        public int numberOfRows()
        Returns the number of rows this property has. If the property is a simple property than this method will always return 1.
        Returns:
        The number of rows this property has.
        Throws:
        MbException
      • numberOfColumns

        public int numberOfColumns()
        Returns the number of columns this property has. If the property is a simple property than this method will always return 1.
        Returns:
        The number of columns this property has.
IBM Integration BusTM
JavaTM Plugin Node API