Package fb.xml

Examples of fb.xml.XMLException


  }

  public void connectParameter(FBElement obj) throws FBRManagementException,
      FBDataTypeException, XMLException {
    if (!(obj instanceof FBMConnection)) {
      throw new XMLException("INVALID_OBJECT");
    } else {
      FBMConnection cnxn = (FBMConnection) obj;
      String dst[] = unpackHierName(cnxn.getDestination());
      fbNamed(dst[0]).connectParameter(dst[1], cnxn.getSource());
      return;
View Full Code Here


    if (obj instanceof FBMConnection)
      connect((FBMConnection) obj);
    else if (obj instanceof FBMFB)
      createFB((FBMFB) obj);
    else
      throw new XMLException("INVALID_OBJECT");
  }
View Full Code Here

    if (obj instanceof FBMFB)
      deleteFB((FBMFB) obj);
    else if (obj instanceof FBMConnection)
      deleteConnection((FBMConnection) obj);
    else
      throw new XMLException("INVALID_OBJECT");
  }
View Full Code Here

    if (obj instanceof FBMFB)
      return queryFB((FBMFB) obj);
    if (obj instanceof FBMConnection)
      return queryConnection((FBMConnection) obj);
    else
      throw new XMLException("INVALID_OBJECT");
  }
View Full Code Here

        return new FBMFBStatus(getStateName());
      else
        throw FBRManagementException.NO_SUCH_OBJECT;
    }
    if (!wildtype && !isFBType(fbtype))
      throw new XMLException("UNSUPPORTED_TYPE");
    StringBuffer buff = new StringBuffer(256);
    boolean found = false;
    for (Enumeration e = fbs.elements(); e.hasMoreElements();) {
      FBInstance fbi = (FBInstance) e.nextElement();
      if (wildtype || fbi.getType().equals(fbtype)) {
View Full Code Here

  }

  public FBElement read(FBElement obj) throws XMLException,
      FBRManagementException {
    if (!(obj instanceof FBMConnection)) {
      throw new XMLException("INVALID_OBJECT");
    } else {
      FBMConnection rsp = (FBMConnection) obj.copy();
      boolean isInput = rsp.getSource().equals("*");
      String endpoint[] = unpackHierName(isInput ? rsp.getDestination()
          : rsp.getSource());
View Full Code Here

TOP

Related Classes of fb.xml.XMLException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.