org.activemath.omdocjdom.slumb.data
Class SlumbRelation

java.lang.Object
  extended by org.activemath.omdocjdom.slumb.data.SlumbRelation
All Implemented Interfaces:
MBaseRef.Relation, SlumbConstants

public class SlumbRelation
extends Object
implements SlumbConstants, MBaseRef.Relation


Nested Class Summary
static class SlumbRelation.RelList
           
 
Field Summary
static String[] allForTypes
           
static String[] allInvForTypes
           
static String[] containsType
           
static String[] dependsOnType
           
static String[] emptyArray
           
static String[] forTypes
           
static org.jdom.xpath.XPath referenceAttributesXPath
           
 
Fields inherited from interface org.activemath.omdocjdom.slumb.SlumbConstants
COLL_NAMES_book_list, COLL_NAMES_collection_info, COLL_NAMES_collection_info_sole_text, COLL_NAMES_collection_metadata, COLL_NAMES_course_generation_menu, COLL_NAMES_reserved_names, FIELD_attributes, FIELD_colAndRelPath, FIELD_collection, FIELD_columnNumber, FIELD_commonname, FIELD_containedIds, FIELD_dcmetadata, FIELD_elt_absPath, FIELD_elt_relpath, FIELD_file_absPath, FIELD_file_relpath, FIELD_fileNameFromId, FIELD_fmp, FIELD_id, FIELD_importStrings, FIELD_lastModification, FIELD_lineNumber, FIELD_metadata, FIELD_name, FIELD_relSourceId, FIELD_relTargetId, FIELD_textualContent, FIELD_theoryId, FIELD_theoryName, FIELD_type, FIELD_xmlContent, FIELDVALUE_type_fileObject, FIELDVALUE_type_itemObject, FIELDVALUE_type_theoryObject, modifDateFormat
 
Constructor Summary
SlumbRelation(org.apache.lucene.document.Document doc)
           
SlumbRelation(ID source, String[] types, ID target, String colAndRelPath)
           
 
Method Summary
 org.apache.lucene.document.Document asLuceneDocument()
           
 boolean equals(Object other)
           
 String getColAndRelPath()
           
 MBaseRef.Relation getInverse()
           
 SlumbRelation getInverseRelation()
           
 String getPrimaryType()
           
 ID getSource()
           
 MBaseID getSourceNodeId()
           
 ID getTarget()
           
 MBaseID getTargetNodeId()
           
 Collection getTypes()
           
 int hashCode()
           
static org.jdom.xpath.XPath makeReferenceAttsXP()
           
static String[] relationTypes(org.jdom.Attribute att)
           
 void setColAndRelPath(String colAndRelPath)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referenceAttributesXPath

public static final org.jdom.xpath.XPath referenceAttributesXPath

forTypes

public static final String[] forTypes

dependsOnType

public static final String[] dependsOnType

containsType

public static final String[] containsType

emptyArray

public static final String[] emptyArray

allInvForTypes

public static final String[] allInvForTypes

allForTypes

public static final String[] allForTypes
Constructor Detail

SlumbRelation

public SlumbRelation(ID source,
                     String[] types,
                     ID target,
                     String colAndRelPath)

SlumbRelation

public SlumbRelation(org.apache.lucene.document.Document doc)
Method Detail

getSource

public ID getSource()

getSourceNodeId

public MBaseID getSourceNodeId()
Specified by:
getSourceNodeId in interface MBaseRef.Relation

getTarget

public ID getTarget()

getTargetNodeId

public MBaseID getTargetNodeId()
Specified by:
getTargetNodeId in interface MBaseRef.Relation

getTypes

public Collection getTypes()
Specified by:
getTypes in interface MBaseRef.Relation

getPrimaryType

public String getPrimaryType()
Specified by:
getPrimaryType in interface MBaseRef.Relation

getColAndRelPath

public String getColAndRelPath()

setColAndRelPath

public void setColAndRelPath(String colAndRelPath)

relationTypes

public static String[] relationTypes(org.jdom.Attribute att)

asLuceneDocument

public org.apache.lucene.document.Document asLuceneDocument()

getInverseRelation

public SlumbRelation getInverseRelation()

getInverse

public MBaseRef.Relation getInverse()
Specified by:
getInverse in interface MBaseRef.Relation

makeReferenceAttsXP

public static final org.jdom.xpath.XPath makeReferenceAttsXP()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object