org.telscenter.pas.util
Class AbstractPasBuilder

java.lang.Object
  extended by org.telscenter.pas.util.AbstractPasBuilder
Direct Known Subclasses:
EmptyPasBuilder

public abstract class AbstractPasBuilder
extends java.lang.Object

Superclass of Java-based Pas builder classes providing common methods for their use

Author:
turadg

Constructor Summary
protected AbstractPasBuilder(java.lang.String title, int projectID)
          Construct a new builder for the specified title and projectID number
 
Method Summary
static net.sf.sail.core.uuid.CurnitUuid curnitIdFromProjectId(int projectID)
          Transform integer id into a valid curnit uuid
protected abstract  net.sf.sail.core.beans.Pod getRootPod()
          Implemented by concrete subclasses in order to provide the root pod of the curnit
 java.io.File writeCurnit()
          Write out the curnit for the Pas project generated by this builder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPasBuilder

protected AbstractPasBuilder(java.lang.String title,
                             int projectID)
Construct a new builder for the specified title and projectID number

Method Detail

curnitIdFromProjectId

public static net.sf.sail.core.uuid.CurnitUuid curnitIdFromProjectId(int projectID)
Transform integer id into a valid curnit uuid

Parameters:
projectID - simple serial id (e.g. from WISE project list)
Returns:
uuid of curnit for given serial id

getRootPod

protected abstract net.sf.sail.core.beans.Pod getRootPod()
                                                  throws java.lang.Exception
Implemented by concrete subclasses in order to provide the root pod of the curnit

Throws:
java.lang.Exception

writeCurnit

public java.io.File writeCurnit()
                         throws java.lang.Exception
Write out the curnit for the Pas project generated by this builder

Returns:
Throws:
java.lang.Exception


Copyright © 2004-2008 TELS Center. All Rights Reserved.