com.uc4.ara.collabnet
Class AbstractFeature

java.lang.Object
  extended by com.uc4.ara.collabnet.AbstractFeature
Direct Known Subclasses:
AssignComponent, CreatePackage

public abstract class AbstractFeature
extends java.lang.Object


Constructor Summary
AbstractFeature()
           
 
Method Summary
static org.w3c.dom.Document createDocumentFromResult(Result result)
           
abstract  int execute(CmdLineParser parser)
           
static org.w3c.dom.Node findNodeByAttribute(org.w3c.dom.Document document, java.lang.String tagName, java.lang.String attributeName, java.lang.String attributeValue)
           
static org.w3c.dom.Node findNodeByTagName(org.w3c.dom.Document document, java.lang.String tagName)
           
protected  java.lang.String getNodeValue(Result result, java.lang.String tagName, java.lang.String attributeName, java.lang.String attributeValue)
           
protected  java.lang.String getProperty(java.lang.String name, java.lang.String value)
           
protected  java.lang.String getProperty(java.lang.String name, java.lang.String value, boolean isIdentity)
           
protected  Result handleResult(Result result, ImportExportServiceSoap service)
           
abstract  void setParams(CmdLineParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFeature

public AbstractFeature()
Method Detail

execute

public abstract int execute(CmdLineParser parser)

setParams

public abstract void setParams(CmdLineParser parser)

handleResult

protected Result handleResult(Result result,
                              ImportExportServiceSoap service)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getProperty

protected java.lang.String getProperty(java.lang.String name,
                                       java.lang.String value)

getProperty

protected java.lang.String getProperty(java.lang.String name,
                                       java.lang.String value,
                                       boolean isIdentity)

createDocumentFromResult

public static org.w3c.dom.Document createDocumentFromResult(Result result)
                                                     throws javax.xml.parsers.ParserConfigurationException,
                                                            org.xml.sax.SAXException,
                                                            java.io.IOException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

findNodeByAttribute

public static org.w3c.dom.Node findNodeByAttribute(org.w3c.dom.Document document,
                                                   java.lang.String tagName,
                                                   java.lang.String attributeName,
                                                   java.lang.String attributeValue)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

findNodeByTagName

public static org.w3c.dom.Node findNodeByTagName(org.w3c.dom.Document document,
                                                 java.lang.String tagName)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getNodeValue

protected java.lang.String getNodeValue(Result result,
                                        java.lang.String tagName,
                                        java.lang.String attributeName,
                                        java.lang.String attributeValue)
                                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2013. All Rights Reserved.