public void endStyle() { if (!isStyleOpen) { throw new IllegalStateException( "Attempting to close a style attribute, but the style attribute isn't open"); } maybeCloseStyleAttribute(); }
/** * Assert that the builder is in a state where an attribute can be added. * * @throw {@link IllegalStateException} if the start tag is closed */ protected void assertCanAddAttributeImpl() { assertStartTagOpen("Attributes cannot be added after appending HTML or adding a child " + "element."); maybeCloseStyleAttribute(); }
/** * Close the start tag if it is still open. */ private void maybeCloseStartTag() { maybeCloseStyleAttribute(); if (isStartTagOpen) { isStartTagOpen = false; /* * Close the start tag, unless the end tag is forbidden. If the end tag is * forbidden, the only valid call is to #end(), which will self end the * start tag. */ if (!getCurrentBuilder().isEndTagForbidden()) { doCloseStartTagImpl(); } } }
public void endStyle() { if (!isStyleOpen) { throw new IllegalStateException( "Attempting to close a style attribute, but the style attribute isn't open"); } maybeCloseStyleAttribute(); }
public void endStyle() { if (!isStyleOpen) { throw new IllegalStateException( "Attempting to close a style attribute, but the style attribute isn't open"); } maybeCloseStyleAttribute(); }
/** * Assert that the builder is in a state where an attribute can be added. * * @throw {@link IllegalStateException} if the start tag is closed */ protected void assertCanAddAttributeImpl() { assertStartTagOpen("Attributes cannot be added after appending HTML or adding a child " + "element."); maybeCloseStyleAttribute(); }
/** * Assert that the builder is in a state where an attribute can be added. * * @throw {@link IllegalStateException} if the start tag is closed */ protected void assertCanAddAttributeImpl() { assertStartTagOpen("Attributes cannot be added after appending HTML or adding a child " + "element."); maybeCloseStyleAttribute(); }
/** * Close the start tag if it is still open. */ private void maybeCloseStartTag() { maybeCloseStyleAttribute(); if (isStartTagOpen) { isStartTagOpen = false; /* * Close the start tag, unless the end tag is forbidden. If the end tag is * forbidden, the only valid call is to #end(), which will self end the * start tag. */ if (!getCurrentBuilder().isEndTagForbidden()) { doCloseStartTagImpl(); } } }
/** * Close the start tag if it is still open. */ private void maybeCloseStartTag() { maybeCloseStyleAttribute(); if (isStartTagOpen) { isStartTagOpen = false; /* * Close the start tag, unless the end tag is forbidden. If the end tag is * forbidden, the only valid call is to #end(), which will self end the * start tag. */ if (!getCurrentBuilder().isEndTagForbidden()) { doCloseStartTagImpl(); } } }