xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.hints
Class RenderingHintsImpl

java.lang.Object
  extended byedu.uci.isr.xarch.hints.RenderingHintsImpl
All Implemented Interfaces:
DOMBased, IRenderingHints, IXArchElement

public class RenderingHintsImpl
extends Object
implements IRenderingHints, DOMBased

DOM-Based implementation of the IRenderingHints interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String HINTS_ELT_NAME
          Tag name for hintss in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.hints.IRenderingHints
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
RenderingHintsImpl(Element elt)
           
 
Method Summary
 void addHints(IHints newHints)
          Add a hints to this RenderingHints.
 void addHintss(Collection hintss)
          Add a collection of hintss to this RenderingHints.
 void clearHintss()
          Remove all hintss from this RenderingHints.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllHintss()
          Get all the hintss from this RenderingHints.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllHintss(Collection hintssToCheck)
          Determine if this RenderingHints contains each element in the given set of hintss.
 int hashCode()
           
 boolean hasHints(IHints hintsToCheck)
          Determine if this RenderingHints contains a given hints.
 Collection hasHintss(Collection hintssToCheck)
          Determine if this RenderingHints contains the given set of hintss.
 boolean isEquivalent(IRenderingHints c)
          Determine if another RenderingHints is equivalent to this one, ignoring ID's.
 void removeHints(IHints hintsToRemove)
          Remove the given hints from this RenderingHints.
 void removeHintss(Collection hintss)
          Remove all the given hintss from this RenderingHints.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setXArch(IXArch xArch)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_TYPE_NSURI

public static final String XSD_TYPE_NSURI
See Also:
Constant Field Values

XSD_TYPE_NAME

public static final String XSD_TYPE_NAME
See Also:
Constant Field Values

xArch

protected IXArch xArch

HINTS_ELT_NAME

public static final String HINTS_ELT_NAME
Tag name for hintss in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

RenderingHintsImpl

public RenderingHintsImpl(Element elt)
Method Detail

getDOMNode

public Node getDOMNode()
Description copied from interface: DOMBased
Gets the DOM node on which this implementation is based.

Specified by:
getDOMNode in interface DOMBased
Returns:
DOM node

setDOMNode

public void setDOMNode(Node node)
Description copied from interface: DOMBased
Sets the DOM node on which this implementation is based.

Specified by:
setDOMNode in interface DOMBased
Parameters:
node - DOM node

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

setXArch

public void setXArch(IXArch xArch)
Specified by:
setXArch in interface IXArchElement

getXArch

public IXArch getXArch()
Specified by:
getXArch in interface IXArchElement

cloneElement

public IXArchElement cloneElement(int depth)
Specified by:
cloneElement in interface IXArchElement

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getTypeMetadata

public XArchTypeMetadata getTypeMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the xsi:type of this element.

Specified by:
getTypeMetadata in interface IXArchElement
Returns:
metadata describing the xsi:type of this element.

getInstanceMetadata

public XArchInstanceMetadata getInstanceMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the instance of this element.

Specified by:
getInstanceMetadata in interface IXArchElement
Returns:
metadata describing the instance of this element.

addHints

public void addHints(IHints newHints)
Description copied from interface: IRenderingHints
Add a hints to this RenderingHints.

Specified by:
addHints in interface IRenderingHints
Parameters:
newHints - hints to add.

addHintss

public void addHintss(Collection hintss)
Description copied from interface: IRenderingHints
Add a collection of hintss to this RenderingHints.

Specified by:
addHintss in interface IRenderingHints
Parameters:
hintss - hintss to add.

clearHintss

public void clearHintss()
Description copied from interface: IRenderingHints
Remove all hintss from this RenderingHints.

Specified by:
clearHintss in interface IRenderingHints

removeHints

public void removeHints(IHints hintsToRemove)
Description copied from interface: IRenderingHints
Remove the given hints from this RenderingHints. Matching is done by the isEquivalent(...) function.

Specified by:
removeHints in interface IRenderingHints
Parameters:
hintsToRemove - hints to remove.

removeHintss

public void removeHintss(Collection hintss)
Description copied from interface: IRenderingHints
Remove all the given hintss from this RenderingHints. Matching is done by the isEquivalent(...) function.

Specified by:
removeHintss in interface IRenderingHints
Parameters:
hintss - hints to remove.

getAllHintss

public Collection getAllHintss()
Description copied from interface: IRenderingHints
Get all the hintss from this RenderingHints.

Specified by:
getAllHintss in interface IRenderingHints
Returns:
all hintss in this RenderingHints.

hasHints

public boolean hasHints(IHints hintsToCheck)
Description copied from interface: IRenderingHints
Determine if this RenderingHints contains a given hints.

Specified by:
hasHints in interface IRenderingHints
Returns:
true if this RenderingHints contains the given hintsToCheck, false otherwise.

hasHintss

public Collection hasHintss(Collection hintssToCheck)
Description copied from interface: IRenderingHints
Determine if this RenderingHints contains the given set of hintss.

Specified by:
hasHintss in interface IRenderingHints
Parameters:
hintssToCheck - hintss to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in hintss was found, then the ith element of the collection will be set to true, otherwise it will be set to false. Matching is done with the isEquivalent(...) method.

hasAllHintss

public boolean hasAllHintss(Collection hintssToCheck)
Description copied from interface: IRenderingHints
Determine if this RenderingHints contains each element in the given set of hintss.

Specified by:
hasAllHintss in interface IRenderingHints
Parameters:
hintssToCheck - hintss to check for.
Returns:
true if every element in hintss is found in this RenderingHints, false otherwise.

isEquivalent

public boolean isEquivalent(IRenderingHints c)
Description copied from interface: IRenderingHints
Determine if another RenderingHints is equivalent to this one, ignoring ID's.

Specified by:
isEquivalent in interface IRenderingHints
Parameters:
c - RenderingHints to compare to this one.
Returns:
true if all the child elements of this RenderingHints are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library