com.xmlmind.assembly
Class Relationship

java.lang.Object
  extended by com.xmlmind.assembly.Relationship

public final class Relationship
extends java.lang.Object

Not part of the public, documented, API: representation of element <relationship>.


Field Summary
 java.lang.String association
           
 Instance[] instances
           
 org.w3c.dom.Element source
           
 java.lang.String type
           
 
Constructor Summary
Relationship()
           
Relationship(org.w3c.dom.Element source)
           
 
Method Summary
 void add(Instance instance)
           
 boolean contains(Instance instance)
           
 boolean equals(java.lang.Object other)
           
static int indexOfInstance(Instance[] instances, Instance instance)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public org.w3c.dom.Element source

type

public java.lang.String type

association

public java.lang.String association

instances

public Instance[] instances
Constructor Detail

Relationship

public Relationship()

Relationship

public Relationship(org.w3c.dom.Element source)
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

contains

public boolean contains(Instance instance)

add

public void add(Instance instance)

indexOfInstance

public static int indexOfInstance(Instance[] instances,
                                  Instance instance)