TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DStyleRegistry

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DStyleRegistry
All Implemented Interfaces:
IDObject, IDRegistry

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DStyleRegistry
extends java.lang.Object
implements IDRegistry

A style registry is a collection of IDStyle, the registry assures that a style is stored only once (in the meaning of '==').

See Also:
IDStyle

Constructor Summary
DStyleRegistry()
          Deprecated. Creates an empty DStyleRegistry.
 
Method Summary
 void clear()
          Deprecated. Clears the registry.
 boolean contains(IDStyle style)
          Deprecated. Checks if the style already exists in the registry.
 IDStyle getFirstStyle(java.lang.String _name)
          Deprecated. Returns the first style of the registry which have the name _name.
 java.util.List getStyles(java.lang.String _name)
          Deprecated. Returns all IDStyle stored in the registry and they have the name _name in a java.util.List.
 boolean isEmpty()
          Deprecated.  
 java.util.Iterator iterator()
          Deprecated. Returns an iterator to acces to all values in this registry.
 void merge(DStyleRegistry r)
          Deprecated. Merges the styles of the registry r with the current registry.
 void merge(IDItem root)
          Deprecated. Merges the styles which are existing in the registry with the styles which are existing in the document doc.
 IDStyle putStyle(IDStyle style)
          Deprecated. Puts the style in the registry only if style isn't already stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DStyleRegistry

public DStyleRegistry()
Deprecated. 
Creates an empty DStyleRegistry.

Method Detail

clear

public void clear()
Deprecated. 
Clears the registry. All IDStyle object are removed.

Specified by:
clear in interface IDRegistry

putStyle

public IDStyle putStyle(IDStyle style)
Deprecated. 
Puts the style in the registry only if style isn't already stored. (the null styles aren't stored).

Parameters:
style - the style to store in registry.
Returns:
stored style or null if storage is not done.

merge

public void merge(DStyleRegistry r)
Deprecated. 
Merges the styles of the registry r with the current registry. Only new styles are added in the current registry.

Parameters:
r - the registry to merge.

contains

public boolean contains(IDStyle style)
Deprecated. 
Checks if the style already exists in the registry.

Returns:
true if this registry contains given style.

iterator

public java.util.Iterator iterator()
Deprecated. 
Returns an iterator to acces to all values in this registry.

Specified by:
iterator in interface IDRegistry

getStyles

public java.util.List getStyles(java.lang.String _name)
Deprecated. 
Returns all IDStyle stored in the registry and they have the name _name in a java.util.List. This list can be empty if no IDStyle stored in the registry has the name _name.

See Also:
List

getFirstStyle

public IDStyle getFirstStyle(java.lang.String _name)
Deprecated. 
Returns the first style of the registry which have the name _name. If no style has the name _name this method returns null.

See Also:
getStyles(java.lang.String)

merge

public void merge(IDItem root)
Deprecated. 
Merges the styles which are existing in the registry with the styles which are existing in the document doc. Only not existing style are added in the current registry


isEmpty

public boolean isEmpty()
Deprecated. 
Returns:
true if registry is empty, false if not

TPTP 4.5.0 Platform Project
Internal API Specification