hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/impl SchemaImpl.java
Date Mon, 27 Sep 2004 14:36:43 GMT
hlship      2004/09/27 07:36:43

  Modified:    framework/src/java/org/apache/hivemind/schema Schema.java
               framework/src/java/org/apache/hivemind/schema/impl
                        SchemaImpl.java
  Log:
  
  
  Revision  Changes    Path
  1.4       +2 -3      jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/Schema.java
  
  Index: Schema.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/Schema.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Schema.java	25 Sep 2004 17:08:35 -0000	1.3
  +++ Schema.java	27 Sep 2004 14:36:43 -0000	1.4
  @@ -42,10 +42,9 @@
       public List getElementModel();
   
       /**
  -     * Returns the visibility of the Schema into other modules.
  +     * Returns true if the schema is visible to the specified module, false otherwise.
        * 
        * @since 1.1
        */
  -
  -    public Visibility getVisibility();
  +    public boolean visibleToModule(String moduleId);
   }
  
  
  
  1.4       +33 -5     jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/impl/SchemaImpl.java
  
  Index: SchemaImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/impl/SchemaImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SchemaImpl.java	25 Sep 2004 17:08:35 -0000	1.3
  +++ SchemaImpl.java	27 Sep 2004 14:36:43 -0000	1.4
  @@ -35,7 +35,35 @@
       private List _shareableElementModels;
   
       /** @since 1.1 */
  -    private Visibility _visibility;
  +    private Visibility _visibility = Visibility.PUBLIC;
  +
  +    /** @since 1.1 */
  +    private String _moduleId;
  +
  +    /**
  +     * @since 1.1
  +     */
  +    public String getModuleId()
  +    {
  +        return _moduleId;
  +    }
  +
  +    /**
  +     * @since 1.1
  +     */
  +    public Visibility getVisibility()
  +    {
  +        return _visibility;
  +    }
  +
  +    /** @since 1.1 */
  +    public boolean visibleToModule(String moduleId)
  +    {
  +        if (_visibility == Visibility.PUBLIC)
  +            return true;
  +
  +        return _moduleId.equals(moduleId);
  +    }
   
       public void addElementModel(ElementModel model)
       {
  @@ -58,16 +86,16 @@
       /**
        * @since 1.1
        */
  -    public Visibility getVisibility()
  +    public void setVisibility(Visibility visibility)
       {
  -        return _visibility;
  +        _visibility = visibility;
       }
   
       /**
        * @since 1.1
        */
  -    public void setVisibility(Visibility visibility)
  +    public void setModuleId(String moduleId)
       {
  -        _visibility = visibility;
  +        _moduleId = moduleId;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message