FileDocCategorySizeDatePackage
SerializableTargetModuleID.javaAPI DocJBoss 4.2.13616Fri Jul 13 20:52:34 BST 2007org.jboss.deployment.spi

SerializableTargetModuleID

public class SerializableTargetModuleID extends Object implements Serializable
A Serializable representation of the TargetModuleID
author
Scott.Stark@jboss.org
version
$Revision: 57190 $

Fields Summary
private final long
serialVersionUID
private SerializableTargetModuleID
parentModuleID
private ArrayList
childModuleIDs
private String
moduleID
private int
moduleType
private boolean
isRunning
Constructors Summary
public SerializableTargetModuleID(TargetModuleIDImpl impl)


     
   
      this(null, impl);
   
public SerializableTargetModuleID(SerializableTargetModuleID parent, TargetModuleIDImpl impl)

      parentModuleID = parent;
      moduleID = impl.getModuleID();
      moduleType = impl.getModuleType().getValue();

      TargetModuleID[] children = impl.getChildTargetModuleID();
      int length = children != null ? children.length : 0;
      for (int n = 0; n < length; n++)
      {
         TargetModuleIDImpl child = (TargetModuleIDImpl)children[n];
         childModuleIDs.add(new SerializableTargetModuleID(this, child));
      }
   
public SerializableTargetModuleID(SerializableTargetModuleID parent, String moduleID, int moduleType, boolean isRunning)

      parentModuleID = parent;
      this.moduleID = moduleID;
      this.moduleType = moduleType;
      this.isRunning = isRunning;
   
Methods Summary
public voidaddChildTargetModuleID(org.jboss.deployment.spi.SerializableTargetModuleID child)

      childModuleIDs.add(child);
   
public voidclearChildModuleIDs()

      childModuleIDs.clear();
   
public org.jboss.deployment.spi.SerializableTargetModuleID[]getChildModuleIDs()

      SerializableTargetModuleID[] ids = new SerializableTargetModuleID[childModuleIDs.size()];
      childModuleIDs.toArray(ids);
      return ids;
   
public java.lang.StringgetModuleID()

      return moduleID;
   
public intgetModuleType()

      return moduleType;
   
public org.jboss.deployment.spi.SerializableTargetModuleIDgetParentModuleID()

      return parentModuleID;
   
public booleanisRunning()

      return isRunning;
   
public voidsetRunning(boolean flag)

      this.isRunning = flag;
   
public java.lang.StringtoString()

      return "SerializableTargetModuleID{" + "parentModuleID=@" + System.identityHashCode(parentModuleID) + ", childModuleIDs=" + childModuleIDs + ", moduleID='"
            + moduleID + "'" + ", moduleType=" + moduleType + ", isRunning=" + isRunning + "}";