org.inria.ns.reflex.util.wunit
Class XFrame

java.lang.Object
  extended by org.inria.ns.reflex.util.wunit.XFrame
All Implemented Interfaces:
Unwrappable, XOperable

public class XFrame
extends Object
implements XOperable, Unwrappable

Represent a window (#wunit:x-frame) of a Web browser.

This is not a component used for display the window content, but rather to interact with an automaton for testing purpose.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Unwrappable
Unwrappable.Unwrapper
 
Field Summary
 
Fields inherited from interface org.inria.ns.reflex.structures.Unwrappable
UNWRAPPER
 
Method Summary
 QName getQName()
          Return the name of this window, if any.
static URI getURI(WebWindow window)
          Return the URI of a window.
 XOperator getXOperator()
          Return the XOperator for this class.
 Object unwrap()
          Return the wrapped Web window.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getXOperator

public XOperator getXOperator()
Return the XOperator for this class.

Specified by:
getXOperator in interface XOperable
Returns:
The XOperator.

getQName

public QName getQName()
Return the name of this window, if any.

Returns:
The name of this window, or QName.QNULL

unwrap

public Object unwrap()
Return the wrapped Web window.

Specified by:
unwrap in interface Unwrappable
Returns:
The Web window.
See Also:
WebWindow

getURI

public static URI getURI(WebWindow window)
                  throws URISyntaxException
Return the URI of a window.

Parameters:
window - The window.
Returns:
Its URI.
Throws:
URISyntaxException - When the URI is invalid.