org.apache.harmony.beans
Class Command

java.lang.Object
  extended by org.apache.harmony.beans.Command

public class Command
extends Object


Constructor Summary
Command(String tagName, Map<String,String> attrs)
           
Command(XMLDecoder decoder, String tagName, Map<String,String> attrs)
           
 
Method Summary
 void addChild(Command cmd)
           
 boolean backtrack(Map<String,Command> references)
           
 int exec(Map<String,Command> references)
           
 String getAttr(String name)
           
static Class<?> getPrimitiveClass(String className)
           
 Argument getResult()
           
 Class<?> getResultType()
           
 Object getResultValue()
           
 int getStatus()
           
 String getTagName()
           
 boolean hasAttr(String name)
           
 boolean hasAttr(String name, String value)
           
 boolean isExecutable()
           
static boolean isPrimitiveClassName(String className)
           
 boolean isTag(String name)
           
static Map<String,String> parseAttrs(String tagName, Attributes attrs)
           
static void pr(int tabCount, String msg)
           
static void pr(String msg)
           
static void printAttrs(int tabCount, String tagName, Attributes attrs)
           
static void prn(int tabCount, String msg)
           
static void prn(String msg)
           
 void removeChild(Command cmd)
           
 void setContext(Command ctx)
           
 void setData(String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(String tagName,
               Map<String,String> attrs)

Command

public Command(XMLDecoder decoder,
               String tagName,
               Map<String,String> attrs)
Method Detail

setData

public void setData(String data)

setContext

public void setContext(Command ctx)

addChild

public void addChild(Command cmd)

removeChild

public void removeChild(Command cmd)

getStatus

public int getStatus()

exec

public int exec(Map<String,Command> references)
         throws Exception
Throws:
Exception

backtrack

public boolean backtrack(Map<String,Command> references)
                  throws Exception
Throws:
Exception

getResult

public Argument getResult()

getResultValue

public Object getResultValue()

getResultType

public Class<?> getResultType()
                       throws ClassNotFoundException
Throws:
ClassNotFoundException

hasAttr

public boolean hasAttr(String name)

getAttr

public String getAttr(String name)

isTag

public boolean isTag(String name)

hasAttr

public boolean hasAttr(String name,
                       String value)

getTagName

public String getTagName()

isExecutable

public boolean isExecutable()

isPrimitiveClassName

public static boolean isPrimitiveClassName(String className)

getPrimitiveClass

public static Class<?> getPrimitiveClass(String className)

parseAttrs

public static Map<String,String> parseAttrs(String tagName,
                                            Attributes attrs)

pr

public static void pr(String msg)

pr

public static void pr(int tabCount,
                      String msg)

prn

public static void prn(String msg)

prn

public static void prn(int tabCount,
                       String msg)

printAttrs

public static void printAttrs(int tabCount,
                              String tagName,
                              Attributes attrs)


Copyright © 2013. All Rights Reserved.