/** * @return <code>true</code> if this block is empty and does not contain any * statement. */ public boolean isEmpty () { return m_aObjs.isEmpty (); }
public boolean isValid (@Nonnull final IPSErrorHandler aErrorHandler) { if (m_aContent.isEmpty ()) { aErrorHandler.error (this, "<emph> has no content"); return false; } return true; }
public void validateCompletely (@Nonnull final IPSErrorHandler aErrorHandler) { if (m_aContent.isEmpty ()) aErrorHandler.error (this, "<dir> has no content"); }
@Override public void onDownloadComplete(String downloadedString, String contentType) { parseCSS(cssTreeNode, downloadedString); if (!cssTreeNode.allImportRules.isEmpty()) { cssTreeNode.downloadNodeCss(); } }
@Nullable public String getExtensionAsString () { if (m_aExtensions.isEmpty ()) return null; return BDXRExtensionConverter.convertToString (m_aExtensions); }
/** * @return The MIC algorithm(s) as a comma delimited string. May be * <code>null</code>. */ @Nullable public String getMICAlgAsString () { if (m_aMICAlgs.isEmpty ()) return null; return StringHelper.getImplodedMapped (", ", m_aMICAlgs, ECryptoAlgorithmSign::getID); }
public void validateCompletely (@Nonnull final IPSErrorHandler aErrorHandler) { if (m_aContent.isEmpty ()) aErrorHandler.error (this, "<emph> has no content"); }
public boolean isValid (@Nonnull final IPSErrorHandler aErrorHandler) { if (m_aContent.isEmpty ()) { aErrorHandler.error (this, "<dir> has no content"); return false; } return true; }
public boolean isValid (@Nonnull final IPSErrorHandler aErrorHandler) { if (m_aContent.isEmpty ()) { aErrorHandler.error (this, "<emph> has no content"); return false; } return true; }
public void validateCompletely (@Nonnull final IPSErrorHandler aErrorHandler) { if (m_aContent.isEmpty ()) aErrorHandler.error (this, "<emph> has no content"); }
private void _checkMandatoryAttributes () { if (getSOAPVersion () == null) throw new IllegalStateException ("A SOAPVersion must be set."); if (m_aErrorMessages.isEmpty ()) throw new IllegalStateException ("No Errors specified!"); if (StringHelper.hasNoText (m_sRefToMessageId)) throw new IllegalStateException ("No reference to a message set."); }
private void _afterRemoveChildOfThis (@Nonnull final IMicroNode aChildNode) { if (m_aChildren.contains (aChildNode)) throw new IllegalStateException ("Child " + aChildNode + " is contained more than once in it's parents list"); if (m_aChildren.isEmpty ()) m_aChildren = null; ((AbstractMicroNode) aChildNode).internalResetParentNode (); onEvent (EMicroEvent.NODE_REMOVED, this, aChildNode); }
/** * @return A list of the IDs of the supported TLS versions in the correct order. * May be <code>null</code> if no TLS versions are defined. */ @Nullable default String [] getAllTLSVersionIDsAsArray () { final ICommonsList <String> aList = getAllTLSVersionIDs (); return aList.isEmpty () ? null : aList.toArray (new String [aList.size ()]); }
/** * @return All cipher suites in the correct order. May be <code>null</code> if * no cipher suite is defined. */ @Nullable default String [] getAllCipherSuitesAsArray () { final ICommonsList <String> aList = getAllCipherSuites (); return aList.isEmpty () ? null : aList.toArray (new String [aList.size ()]); } }
@Nullable @ReturnsMutableCopy public String [] getAllCipherSuitesAsArray () { if (m_aCipherSuites.isEmpty ()) return null; return m_aCipherSuites.toArray (new String [m_aCipherSuites.size ()]); }
/** * @return The validation schema to be used. May be <code>null</code> * indicating that no validation is required. */ @Nullable protected Schema createValidationSchema () { return m_aXSDs.isEmpty () ? null : XMLSchemaCache.getInstanceOfClassLoader (getClassLoader ()).getSchema (m_aXSDs); }
public void validateCompletely (@Nonnull final IPSErrorHandler aErrorHandler) { if (StringHelper.hasNoText (m_sClass)) aErrorHandler.error (this, "<span> has no 'class'"); if (m_aContent.isEmpty ()) aErrorHandler.error (this, "<span> has no content"); }
@Nullable public String getFirstExtensionXML () { if (m_aExtensions.isEmpty ()) return null; // Use only the XML element of the first extension final Element aAny = (Element) m_aExtensions.getFirst ().getAny (); return XMLWriter.getNodeAsString (aAny); }
@Nullable @ReturnsMutableCopy public String [] getAllTLSVersionIDsAsArray () { if (m_aTLSVersions.isEmpty ()) return null; return getAllTLSVersionIDs ().toArray (new String [m_aTLSVersions.size ()]); }
@Nullable @ReturnsMutableCopy public com.helger.peppol.smp.ExtensionType getAsPeppolExtension () { if (m_aExtensions.isEmpty ()) return null; // Use only the XML element of the first extension final com.helger.peppol.smp.ExtensionType ret = new com.helger.peppol.smp.ExtensionType (); ret.setAny ((Element) m_aExtensions.getFirst ().getAny ()); return ret; }