part of fix for type checking
This commit is contained in:
parent
71a19710a0
commit
900faa2450
|
@ -1245,6 +1245,20 @@ public class StructureDefinition extends CanonicalResource {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
public ElementDefinition getElementById(String id) {
|
||||
if (id == null) {
|
||||
return null;
|
||||
}
|
||||
for (ElementDefinition ed : getElement()) {
|
||||
if (id.equals(ed.getId())) {
|
||||
return ed;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
// end addition
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue