private void writeCommentsPre(XMLStreamWriter theEventWriter, IBase theElement) throws XMLStreamException { if (theElement != null && theElement.hasFormatComment()) { for (String next : theElement.getFormatCommentsPre()) { if (isNotBlank(next)) { theEventWriter.writeComment(next); } } } }
public void commentPre(String theCommentText) { if (myState.getCurrentElement() != null) { IBase element = myState.getCurrentElement(); element.getFormatCommentsPre().add(theCommentText); } }
private void push(BaseState theState) { theState.setStack(myState); myState = theState; if (myComments.isEmpty() == false) { if (myState.getCurrentElement() != null) { myState.getCurrentElement().getFormatCommentsPre().addAll(myComments); myComments.clear(); } } }
private void writeCommentsPreAndPost(IBase theNextValue, JsonLikeWriter theEventWriter) throws IOException { if (theNextValue.hasFormatComment()) { beginArray(theEventWriter, "fhir_comments"); List<String> pre = theNextValue.getFormatCommentsPre(); if (pre.isEmpty() == false) { for (String next : pre) { theEventWriter.write(next); } } List<String> post = theNextValue.getFormatCommentsPost(); if (post.isEmpty() == false) { for (String next : post) { theEventWriter.write(next); } } theEventWriter.endArray(); } }
force |= addToHeldComments(valueIdx, nextValue.getFormatCommentsPre(), comments); force |= addToHeldComments(valueIdx, nextValue.getFormatCommentsPost(), comments);
private void writeCommentsPre(XMLStreamWriter theEventWriter, IBase theElement) throws XMLStreamException { if (theElement != null && theElement.hasFormatComment()) { for (String next : theElement.getFormatCommentsPre()) { if (isNotBlank(next)) { theEventWriter.writeComment(next); } } } }
public void commentPre(String theCommentText) { if (myState.getCurrentElement() != null) { IBase element = myState.getCurrentElement(); element.getFormatCommentsPre().add(theCommentText); } }
private void push(BaseState theState) { theState.setStack(myState); myState = theState; if (myComments.isEmpty() == false) { if (myState.getCurrentElement() != null) { myState.getCurrentElement().getFormatCommentsPre().addAll(myComments); myComments.clear(); } } }
private void writeCommentsPreAndPost(IBase theNextValue, JsonLikeWriter theEventWriter) throws IOException { if (theNextValue.hasFormatComment()) { beginArray(theEventWriter, "fhir_comments"); List<String> pre = theNextValue.getFormatCommentsPre(); if (pre.isEmpty() == false) { for (String next : pre) { theEventWriter.write(next); } } List<String> post = theNextValue.getFormatCommentsPost(); if (post.isEmpty() == false) { for (String next : post) { theEventWriter.write(next); } } theEventWriter.endArray(); } }
force |= addToHeldComments(valueIdx, nextValue.getFormatCommentsPre(), comments); force |= addToHeldComments(valueIdx, nextValue.getFormatCommentsPost(), comments);