psdi.unittest

Class XMLCommand

  • java.lang.Object
    • psdi.unittest.XMLCommand
    • Field Detail

      • context

        protected java.util.Map context
      • commandElement

        protected org.jdom2.Element commandElement
    • Constructor Detail

      • XMLCommand

        public XMLCommand(java.util.Map context,
                          org.jdom2.Element commandElement,
                          TestDataSource testDataSource)
    • Method Detail

      • isNull

        protected boolean isNull(java.lang.String value)
      • getMboUniqueIdString

        protected java.lang.String getMboUniqueIdString(MboRemote mbo)
                                                 throws java.rmi.RemoteException,
                                                        MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • generateRandomValue

        protected java.lang.String generateRandomValue(java.lang.String prefix,
                                                       int length)
      • isContextParam

        public boolean isContextParam(java.lang.String param)
      • asDate

        public java.util.Date asDate(java.lang.String value)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • asBoolean

        public boolean asBoolean(java.lang.String value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • asBoolean

        public boolean asBoolean(java.lang.String value,
                                 boolean dflt)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • asLong

        public long asLong(java.lang.String value)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • asDouble

        public double asDouble(java.lang.String value)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • asFloat

        public float asFloat(java.lang.String value)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • asInteger

        public int asInteger(java.lang.String value)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • asInteger

        public int asInteger(java.lang.String value,
                             int def)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • toString

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