protected boolean shouldAddSubsettedTag() { return isSummaryMode() || isSuppressNarratives() || getEncodeElements() != null; }
protected boolean shouldAddSubsettedTag(EncodeContext theEncodeContext) { if (isSummaryMode()) { return true; } if (isSuppressNarratives()) { return true; } if (myEncodeElements != null) { if (isEncodeElementsAppliesToChildResourcesOnly() && theEncodeContext.getResourcePath().size() < 2) { return false; } String currentResourceName = theEncodeContext.getResourcePath().get(theEncodeContext.getResourcePath().size() - 1).getName(); if (myEncodeElementsAppliesToResourceTypes == null || myEncodeElementsAppliesToResourceTypes.contains(currentResourceName)) { return true; } } return false; }