org.activemath.omdocjdom.slumb.data
Class SlumbRelation
java.lang.Object
org.activemath.omdocjdom.slumb.data.SlumbRelation
- All Implemented Interfaces:
- MBaseRef.Relation, SlumbConstants
public class SlumbRelation
- extends Object
- implements SlumbConstants, MBaseRef.Relation
| 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 |
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
SlumbRelation
public SlumbRelation(ID source,
String[] types,
ID target,
String colAndRelPath)
SlumbRelation
public SlumbRelation(org.apache.lucene.document.Document doc)
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