Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon.generator

Class LockTagRemover

com.gentleware.poseidon.generator.LockTagRemover
All known implemented Interfaces:
LockTagConstants


public class LockTagRemover


Removes lock tags from a stream; probably used to filter templates for saving.

The velocity templates contain tags that mark read-only blocks in the generated Java code. The editor uses them to lock lines. When generating code to disk, these tags have to be removed. Therefore, generated code has to pass this stream before writing to a file.

This class is with all probability only used internally.

Authors:
JvV


 Constructor Summary
public   LockTagRemover(Writer outStream)
Creates new LockTagRemover  
arrow_up
 

 Method Summary
public void   write(String s)
Removes the lock tags. 
public void   write(String s, int offs, int len)
Another writing method that filters the lock tags. 
arrow_up
 

Tagged Values
static false
 

 Constructor Detail

LockTagRemover

public LockTagRemover LockTagRemover(Writer outStream)


Creates new LockTagRemover  
Parameters:
outStream -
Returns:
arrow_up
 Method Detail

write

public void write(String s)


Removes the lock tags.

The method assumes that there is not more than one tag of a kind per line.  

Parameters:
s -
arrow_up


write

public void write(String s, int offs, int len)


Another writing method that filters the lock tags. Calls write(String).  
Parameters:
s - The String to be written,
offs - The start of the substring.
len - The length of the substring.
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.