public abstract class Command
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
Command.Transformer<T> |
static interface |
Command.Visitor |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
base |
static java.lang.String |
DEFAULT_BASE |
Constructor and Description |
---|
Command() |
Command(Command o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
accept(Command.Transformer<T> transformer,
T[] t) |
abstract void |
accept(Command.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Command.
|
static Command |
fromString(java.lang.String s)
String representation of this Command.
|
java.lang.String |
getBase()
HTTP path for this command
|
Command |
makeCopy() |
static Command |
readFrom(java.io.InputStream is)
Read this Command from an XML fragment.
|
void |
setBase(java.lang.String base)
HTTP path for this command
|
java.lang.String |
toString()
String representation of this Command.
|
Command |
withBase(java.lang.String base) |
void |
writeTo(java.io.OutputStream os) |
public java.lang.String base
public static final java.lang.String DEFAULT_BASE
public Command()
public Command(Command o)
public void setBase(java.lang.String base)
public java.lang.String getBase()
public Command withBase(java.lang.String base)
public Command makeCopy()
public static Command readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Command fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
public abstract void accept(Command.Visitor visitor) throws com.exalead.util.TypedException
com.exalead.util.TypedException
public abstract <T> T accept(Command.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.