@Override public TagList get(IResource theResource) { Object retValObj = theResource.getResourceMetadata().get(TAG_LIST); if (retValObj == null) { return null; } else if (retValObj instanceof TagList) { if (((TagList) retValObj).isEmpty()) { return null; } return (TagList) retValObj; } throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + TAG_LIST.name() + " - Expected " + TagList.class.getCanonicalName()); }
if (tags != null && tags.isEmpty() == false) { beginArray(theEventWriter, "tag"); for (Tag tag : tags) {
@Override public TagList get(IResource theResource) { Object retValObj = theResource.getResourceMetadata().get(TAG_LIST); if (retValObj == null) { return null; } else if (retValObj instanceof TagList) { if (((TagList) retValObj).isEmpty()) { return null; } return (TagList) retValObj; } throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + TAG_LIST.name() + " - Expected " + TagList.class.getCanonicalName()); }
if (tags != null && tags.isEmpty() == false) { beginArray(theEventWriter, "tag"); for (Tag tag : tags) {