org.metadiff.infra.mdr
Class MdrResource

java.lang.Object
  extended byorg.metadiff.infra.mdr.MdrResource
All Implemented Interfaces:
ModelResource

public class MdrResource
extends java.lang.Object
implements ModelResource

Author:
Mark Kofman

Field Summary
private  org.apache.log4j.Logger LOG
          Logger instance
private  org.netbeans.api.mdr.MDRObject model
           
 
Constructor Summary
MdrResource()
           
 
Method Summary
private  org.omg.uml.foundation.core.Namespace findModelRootPackage()
           
 java.util.Iterator getContents()
          Returns an iterator that iterates over all the direct contents and indirect contents of this resource.
private  java.util.Collection getContents(org.omg.uml.foundation.core.Namespace ns)
           
 org.netbeans.api.mdr.MDRObject getModel()
           
 void setModel(org.netbeans.api.mdr.MDRObject model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private org.apache.log4j.Logger LOG
Logger instance


model

private org.netbeans.api.mdr.MDRObject model
Constructor Detail

MdrResource

public MdrResource()
Method Detail

getModel

public org.netbeans.api.mdr.MDRObject getModel()
Returns:
Returns the model.

setModel

public void setModel(org.netbeans.api.mdr.MDRObject model)
Parameters:
model - The model to set.

getContents

public java.util.Iterator getContents()
Description copied from interface: ModelResource
Returns an iterator that iterates over all the direct contents and indirect contents of this resource.

Specified by:
getContents in interface ModelResource
Returns:
an iterator that iterates over all contents.

getContents

private java.util.Collection getContents(org.omg.uml.foundation.core.Namespace ns)

findModelRootPackage

private org.omg.uml.foundation.core.Namespace findModelRootPackage()