org.apache.harmony.beans
Class Command
java.lang.Object
org.apache.harmony.beans.Command
public class Command
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Command
public Command(String tagName,
Map<String,String> attrs)
Command
public Command(XMLDecoder decoder,
String tagName,
Map<String,String> attrs)
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.