|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.epfl.lsr.apex.APEXOption
An APEXOption
defines an APEX option element as it is
specified in the Application Exchange (APEX) Protocol RFC3340 DTD.
Field Summary | |
static int |
EMPTY
content of the option: empty |
static int |
EXTERNAL
identifier type: external |
static int |
INTERNAL
identifier type: internal |
static int |
STRINGCONTENT
content of the option: string content (on instantiation) |
static int |
XMLCONTENT
content of the option: xml content |
Constructor Summary | |
APEXOption()
Instantiates an empty APEXOption .
|
|
APEXOption(int type,
String identifier)
Instantiates an APEXOption with the specified attribute.
|
|
APEXOption(int type,
String identifier,
String targetHop,
int transID)
Instantiates an APEXOption with the specified attributes.
|
|
APEXOption(int type,
String identifier,
String targetHop,
String mustUnderstand)
Instantiates an APEXOption with the specified attributes.
|
|
APEXOption(int type,
String identifier,
String targetHop,
String mustUnderstand,
int transID)
Instantiates an APEXOption with the specified attributes.
|
|
APEXOption(int type,
String identifier,
String targetHop,
String mustUnderstand,
int transID,
String content)
Instantiates an APEXOption with the specified attributes
and the textual XML content.
|
|
APEXOption(int type,
String identifier,
String targetHop,
String mustUnderstand,
int transID,
String localize,
String content)
Instantiates an APEXOption with the specified attributes
and the textual XML content.
|
|
APEXOption(int type,
String identifier,
String targetHop,
String mustUnderstand,
String content)
Instantiates an APEXOption with the specified attributes
and the textual XML content.
|
Method Summary | |
void |
addApplicableEndpoint(APEXEndpointAddress applicableEndpoint)
Adds an applicable endpoints defined in processing of this option. |
boolean |
equals(Object o)
|
HashSet |
getApplicableEndpoints()
Returns a set of applicable endpoints defined in processing of this option. |
String |
getIdentifier()
Returns the identifier ("name") attribute's value for this option. |
String |
getMustUnderstand()
Returns the mustUnderstand attribute's value for this option. |
Node |
getOptionNode()
Returns the whole option as a Node. |
String |
getTargetHop()
Returns the targetHop attribute's value for this option. |
int |
getTransID()
Returns the transaction identifier of this option. |
NodeList |
getXMLContent()
Returns the XML Content of the option. |
String |
getXMLOption()
Returns the option as a String. |
String |
getXMLOption(String indent)
Returns a String containing the fully created XML option. |
int |
hashCode()
|
void |
setApplicableEndpoints(HashSet applicableEndpointSet)
Adds a set of applicable endpoints defined in processing of this option. |
void |
setContent(String content)
Sets the textual content for this option. |
void |
setIdentifier(String identifier)
Sets the identifier ("name") for this option. |
void |
setLocalize(String localize)
Sets the localize attribute's value for this option. |
void |
setMustUnderstand(String mustUnderstand)
Sets the mustUnderstand attribute's value for this option. |
void |
setOptionNode(Node n)
Sets the content (option node) internally for this option. |
void |
setTargetHop(String targetHop)
Sets the targetHop attribute's value for this option. |
void |
setTransID(int transID)
Sets the transaction identifier for this option. |
void |
setType(int type)
Sets the type of this option. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INTERNAL
public static final int EXTERNAL
public static final int EMPTY
public static final int STRINGCONTENT
public static final int XMLCONTENT
Constructor Detail |
public APEXOption(int type, String identifier, String targetHop, String mustUnderstand, int transID, String localize, String content)
Instantiates an APEXOption
with the specified attributes
and the textual XML content.
type
- The type (APEX.INTERNAL
or APEX.EXTERNAL
)identifier
- An identifier ("name") of the optiontargetHop
- The targetHop attribute's value (APEX.THIS
,
APEX.FINAL
, or APEX.ALL
)mustUnderstand
- The mustUnderstand attribute (APEX.TRUE
or
APEX.FALSE
)transID
- A transaction identifier for the optionlocalize
- The localize attribute (e.g. APEX.LOCALIZE_IDEFAULT
)content
- The content of the optionAPEX.INTERNAL
,
APEX.EXTERNAL
,
APEX.THIS
,
APEX.FINAL
,
APEX.ALL
,
APEX.TRUE
,
APEX.FALSE
,
APEX.LOCALIZE_IDEFAULT
public APEXOption(int type, String identifier, String targetHop, String mustUnderstand, int transID, String content)
Instantiates an APEXOption
with the specified attributes
and the textual XML content.
type
- The type (APEX.INTERNAL
or APEX.EXTERNAL
)identifier
- An identifier ("name") of the optiontargetHop
- The targetHop attribute's value (APEX.THIS
,APEX.FINAL
,
or APEX.ALL
)mustUnderstand
- The mustUnderstand attribute (APEX.TRUE
or
APEX.FALSE
)transID
- A transaction identifier for the optioncontent
- The content of the optionAPEX.INTERNAL
,
APEX.EXTERNAL
,
APEX.THIS
,
APEX.FINAL
,
APEX.ALL
,
APEX.TRUE
,
APEX.FALSE
public APEXOption(int type, String identifier, String targetHop, String mustUnderstand, int transID)
Instantiates an APEXOption
with the specified attributes.
type
- The type (APEX.INTERNAL
or APEX.EXTERNAL
)identifier
- An identifier ("name") of the optiontargetHop
- The targetHop attribute's value (APEX.THIS
,APEX.FINAL
,
or APEX.ALL
)mustUnderstand
- The mustUnderstand attribute's value (APEX.TRUE
or
APEX.FALSE
)transID
- A transaction identifier for the optionAPEX.INTERNAL
,
APEX.EXTERNAL
,
APEX.THIS
,
APEX.FINAL
,
APEX.ALL
,
APEX.TRUE
,
APEX.FALSE
public APEXOption(int type, String identifier, String targetHop, String mustUnderstand)
Instantiates an APEXOption
with the specified attributes.
Note: the transID must be set later!
type
- The type (APEX.INTERNAL
or APEX.EXTERNAL
)identifier
- An identifier ("name") of the optiontargetHop
- The targetHop attribute's value (APEX.THIS
,APEX.FINAL
,
or APEX.ALL
)mustUnderstand
- The mustUnderstand attribute's value (APEX.TRUE
or
APEX.FALSE
)APEX.INTERNAL
,
APEX.EXTERNAL
,
APEX.THIS
,
APEX.FINAL
,
APEX.ALL
,
APEX.TRUE
,
APEX.FALSE
,
APEX.LOCALIZE_IDEFAULT
public APEXOption(int type, String identifier, String targetHop, String mustUnderstand, String content)
Instantiates an APEXOption
with the specified attributes
and the textual XML content.
Note: the transID must be set later!
type
- The type (APEX.INTERNAL
or APEX.EXTERNAL
)identifier
- An identifier ("name") of the optiontargetHop
- The targetHop attribute's value (APEX.THIS
,APEX.FINAL
,
or APEX.ALL
)mustUnderstand
- The mustUnderstand attribute's value (APEX.TRUE
or
APEX.FALSE
)content
- The content of the optionAPEX.INTERNAL
,
APEX.EXTERNAL
,
APEX.THIS
,
APEX.FINAL
,
APEX.ALL
,
APEX.TRUE
,
APEX.FALSE
public APEXOption(int type, String identifier, String targetHop, int transID)
Instantiates an APEXOption
with the specified attributes.
type
- The type (APEX.INTERNAL
or APEX.EXTERNAL
)identifier
- An identifier ("name") of the optiontargetHop
- The targetHop attribute's value (APEX.THIS
,APEX.FINAL
,
or APEX.ALL
)transID
- A transaction identifier for the optionAPEX.INTERNAL
,
APEX.EXTERNAL
,
APEX.THIS
,
APEX.FINAL
,
APEX.ALL
public APEXOption(int type, String identifier)
Instantiates an APEXOption
with the specified attribute.
type
- The type (APEX.INTERNAL
or APEX.EXTERNAL
)identifier
- An identifier ("name") of the optionAPEX.INTERNAL
,
APEX.EXTERNAL
public APEXOption()
Instantiates an empty APEXOption
.
Method Detail |
public void setContent(String content)
content
- The contentpublic void setTransID(int transID)
transID
- The transIDpublic void setType(int type)
type
- The typeAPEX.INTERNAL
,
APEX.EXTERNAL
public void setIdentifier(String identifier)
identifier
- The identifierpublic void setTargetHop(String targetHop)
targetHop
- The targetHop attribute's valuepublic void setMustUnderstand(String mustUnderstand)
mustUnderstand
- The mustUnderstand attribute's valuepublic void setLocalize(String localize)
localize
- The localize attribute's valuepublic String getXMLOption()
public int getTransID()
public String getMustUnderstand()
public String getIdentifier()
public String getTargetHop()
public HashSet getApplicableEndpoints()
public void addApplicableEndpoint(APEXEndpointAddress applicableEndpoint)
applicableEndpoint
- An applicable endpoint addresspublic void setApplicableEndpoints(HashSet applicableEndpointSet)
applicableEndpointSet
- A set of applicable endpoint addresspublic String getXMLOption(String indent)
indent
- An indent (e.g. " ")
public String toString()
public void setOptionNode(Node n)
n
- The nodepublic NodeList getXMLContent()
NodeList
NodeList
public Node getOptionNode()
public boolean equals(Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |