public class RelationshipMap extends java.util.HashMap<java.lang.String,java.util.List<IRelationship>> implements IRelationshipMap
Constructor and Description |
---|
RelationshipMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all of the relationships in the map.
|
java.util.List<IRelationship> |
get(IProgramElement source) |
IRelationship |
get(IProgramElement source,
IRelationship.Kind kind,
java.lang.String relationshipName)
Return a relationship matching the kind and name for the given element.
|
IRelationship |
get(IProgramElement source,
IRelationship.Kind kind,
java.lang.String relationshipName,
boolean runtimeTest,
boolean createIfMissing)
Return a relationship matching the kind and name for the given element.
|
java.util.List<IRelationship> |
get(java.lang.String handle) |
IRelationship |
get(java.lang.String source,
IRelationship.Kind kind,
java.lang.String relationshipName,
boolean runtimeTest,
boolean createIfMissing)
Return a relationship matching the kind and name for the given element.
|
java.util.Set<java.lang.String> |
getEntries() |
void |
put(IProgramElement source,
IRelationship relationship) |
void |
put(java.lang.String source,
IRelationship relationship) |
boolean |
remove(java.lang.String source,
IRelationship relationship) |
void |
removeAll(java.lang.String source) |
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public java.util.List<IRelationship> get(java.lang.String handle)
get
in interface IRelationshipMap
public java.util.List<IRelationship> get(IProgramElement source)
get
in interface IRelationshipMap
public IRelationship get(java.lang.String source, IRelationship.Kind kind, java.lang.String relationshipName, boolean runtimeTest, boolean createIfMissing)
IRelationshipMap
get
in interface IRelationshipMap
public IRelationship get(IProgramElement source, IRelationship.Kind kind, java.lang.String relationshipName, boolean runtimeTest, boolean createIfMissing)
IRelationshipMap
get
in interface IRelationshipMap
public IRelationship get(IProgramElement source, IRelationship.Kind kind, java.lang.String relationshipName)
IRelationshipMap
get
in interface IRelationshipMap
public boolean remove(java.lang.String source, IRelationship relationship)
remove
in interface IRelationshipMap
public void removeAll(java.lang.String source)
removeAll
in interface IRelationshipMap
public void put(java.lang.String source, IRelationship relationship)
put
in interface IRelationshipMap
public void put(IProgramElement source, IRelationship relationship)
put
in interface IRelationshipMap
public void clear()
IRelationshipMap
clear
in interface java.util.Map<java.lang.String,java.util.List<IRelationship>>
clear
in interface IRelationshipMap
clear
in class java.util.HashMap<java.lang.String,java.util.List<IRelationship>>
public java.util.Set<java.lang.String> getEntries()
getEntries
in interface IRelationshipMap