MCPcopy Index your code
hub / github.com/ShiftLeftSecurity/overflowdb / propertiesMap

Method propertiesMap

core/src/main/java/overflowdb/Edge.java:121–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 }
120
121 @Override
122 public Map<String, Object> propertiesMap() {
123 final Map<String, Object> properties;
124 if (inBlockOffset != -1) {
125 properties = inNode.get().edgePropertyMap(Direction.IN, this, getInBlockOffset());
126 } else if (outBlockOffset != -1) {
127 properties = outNode.get().edgePropertyMap(Direction.OUT, this, getOutBlockOffset());
128 } else {
129 throw new RuntimeException("Cannot get properties. In and out block offset uninitialized.");
130 }
131
132 for (String key : propertyKeys()) {
133 if (!properties.containsKey(key)) {
134 final Object defaultValue = propertyDefaultValue(key);
135 if (defaultValue != null) {
136 properties.put(key, propertyDefaultValue(key));
137 }
138 }
139 }
140 return properties;
141 }
142
143 public Object property(String propertyKey) {
144 final Object value;

Callers 9

compareEdgesMethod · 0.95
copyToMethod · 0.45
compareMethod · 0.45
sortMethod · 0.45
overviewTestMethod · 0.45
serializeNodeMethod · 0.45
convertCustomTypesMethod · 0.45

Calls 7

getInBlockOffsetMethod · 0.95
getOutBlockOffsetMethod · 0.95
propertyKeysMethod · 0.95
edgePropertyMapMethod · 0.80
getMethod · 0.80
putMethod · 0.80
propertyDefaultValueMethod · 0.45

Tested by 5

overviewTestMethod · 0.36
serializeNodeMethod · 0.36
convertCustomTypesMethod · 0.36