ozone core API

org.ozoneDB.tools.OPP.srcgen.resolve
Class UpdateMethodBagMapAdapter

java.lang.Object
  extended byorg.ozoneDB.tools.OPP.srcgen.resolve.UpdateMethodBagMapAdapter
All Implemented Interfaces:
MethodResolver.UpdateMethodBag

public class UpdateMethodBagMapAdapter
extends java.lang.Object
implements MethodResolver.UpdateMethodBag

User: Jocke Date: 2003-dec-30 Time: 00:57:22


Field Summary
private  java.util.Map methods
           
 
Constructor Summary
UpdateMethodBagMapAdapter(java.util.Map methods)
           
 
Method Summary
 void addMethod(java.lang.String methodName, int lockLevel)
          Add a method to the bag, if the method exists with a "lower" lockLevel (read < write) it will be upgraded.
 boolean contains(java.lang.String methodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methods

private java.util.Map methods
Constructor Detail

UpdateMethodBagMapAdapter

public UpdateMethodBagMapAdapter(java.util.Map methods)
Method Detail

addMethod

public void addMethod(java.lang.String methodName,
                      int lockLevel)
Add a method to the bag, if the method exists with a "lower" lockLevel (read < write) it will be upgraded. if the method exists with a "higher" lockLevel it will be left as is.

Specified by:
addMethod in interface MethodResolver.UpdateMethodBag
Parameters:
methodName - The method to add
lockLevel - The locklevel to assign to the method

contains

public boolean contains(java.lang.String methodName)
Specified by:
contains in interface MethodResolver.UpdateMethodBag

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.