public boolean containsField (@Nullable final String sName) { return m_aFields.containsKey (sName); }
public boolean containsChild (@Nullable final String sName) { return m_aChildren.containsKey (sName); }
public boolean isPrefixMapped (@Nullable final String sPrefix) { return m_aPrefix2NS.containsKey (sPrefix); }
public boolean hasAttribute (@Nullable final IMicroQName aAttrName) { return m_aAttrs != null && aAttrName != null && m_aAttrs.containsKey (aAttrName); }
public boolean containsAttachment (@Nullable final String sFilename) { return m_aMap.containsKey (sFilename); }
public boolean containsKey (@Nullable final String sKey) { return m_aMap.containsKey (sKey); }
public boolean containsHeaderElementProcessor (@Nullable final QName aQName) { return aQName != null && m_aRWLock.readLocked ( () -> m_aMap.containsKey (aQName)); }
public void registerHeaderElementProcessor (@Nonnull final QName aQName, @Nonnull final ISOAPHeaderElementProcessor aProcessor) { ValueEnforcer.notNull (aQName, "QName"); ValueEnforcer.notNull (aProcessor, "Processor"); m_aRWLock.writeLocked ( () -> { if (m_aMap.containsKey (aQName)) throw new IllegalArgumentException ("A processor for QName " + aQName.toString () + " is already registered!"); m_aMap.put (aQName, aProcessor); }); LOGGER.info ("Successfully registered SOAP header element processor for " + aQName.toString ()); }
public final void addAttachment (@Nonnull final IEmailAttachment aAttachment) { ValueEnforcer.notNull (aAttachment, "Attachment"); final String sKey = aAttachment.getFilename (); if (m_aMap.containsKey (sKey)) if (LOGGER.isWarnEnabled ()) LOGGER.warn ("Overwriting email attachment with filename '" + sKey + "'"); m_aMap.put (sKey, aAttachment); }
@Nonnull public DataTables addPlugin (@Nonnull final IDataTablesPlugin aPlugin) { ValueEnforcer.notNull (aPlugin, "Plugin"); final String sName = aPlugin.getName (); if (m_aPlugins.containsKey (sName)) throw new IllegalArgumentException ("A plugin with the name '" + sName + "' is already contained!"); m_aPlugins.put (sName, aPlugin); return this; }
public void registerConfigurationFile (@Nonnull final ConfigurationFile aConfigurationFile) { ValueEnforcer.notNull (aConfigurationFile, "ConfigurationFile"); final String sID = aConfigurationFile.getID (); if (m_aMap.containsKey (sID)) throw new IllegalArgumentException ("A configuration file " + sID + " is already registered!"); m_aMap.put (sID, aConfigurationFile); }
public void addEndpoint (@Nonnull final SMPEndpoint aEndpoint) { ValueEnforcer.notNull (aEndpoint, "Endpoint"); final String sTransportProfile = aEndpoint.getTransportProfile (); if (m_aEndpoints.containsKey (sTransportProfile)) throw new IllegalStateException ("Another endpoint with transport profile '" + sTransportProfile + "' is already present"); m_aEndpoints.put (sTransportProfile, aEndpoint); }
public final void addPayloadProfile (@Nonnull final PModePayloadProfile aPayloadProfile) { ValueEnforcer.notNull (aPayloadProfile, "PayloadProfile"); final String sKey = aPayloadProfile.getName (); if (m_aPayloadProfiles.containsKey (sKey)) throw new IllegalArgumentException ("A payload profile with the name '" + sKey + "' is already registered!"); m_aPayloadProfiles.put (sKey, aPayloadProfile); }
public final void addProperty (@Nonnull final PModeProperty aProperty) { ValueEnforcer.notNull (aProperty, "Property"); final String sKey = aProperty.getName (); if (m_aProperties.containsKey (sKey)) throw new IllegalArgumentException ("A property with the name '" + sKey + "' is already registered!"); m_aProperties.put (sKey, aProperty); }
public void addEndpoint (@Nonnull final SMPEndpoint aEndpoint) { ValueEnforcer.notNull (aEndpoint, "Endpoint"); final String sTransportProfile = aEndpoint.getTransportProfile (); if (m_aEndpoints.containsKey (sTransportProfile)) throw new IllegalStateException ("Another endpoint with transport profile '" + sTransportProfile + "' is already present"); m_aEndpoints.put (sTransportProfile, aEndpoint); }
public void addProcess (@Nonnull final SMPProcess aProcess) { ValueEnforcer.notNull (aProcess, "Process"); final String sProcessID = _getKey (aProcess.getProcessIdentifier ()); if (m_aProcesses.containsKey (sProcessID)) throw new IllegalStateException ("A process with ID '" + sProcessID + "' is already contained!"); m_aProcesses.put (sProcessID, aProcess); }
public void addProcess (@Nonnull final SMPProcess aProcess) { ValueEnforcer.notNull (aProcess, "Process"); final String sProcessID = _getKey (aProcess.getProcessIdentifier ()); if (m_aProcesses.containsKey (sProcessID)) throw new IllegalStateException ("A process with ID '" + sProcessID + "' is already contained!"); m_aProcesses.put (sProcessID, aProcess); }
public void addPartner (@Nonnull final Partner aNewPartner) throws OpenAS2Exception { ValueEnforcer.notNull (aNewPartner, "NewPartner"); final String sName = aNewPartner.getName (); if (m_aMap.containsKey (sName)) throw new OpenAS2Exception ("Partner is defined more than once: '" + sName + "'"); m_aMap.put (sName, aNewPartner); }
@Nonnull private MapBasedNamespaceContext _addMapping (@Nonnull final String sPrefix, @Nonnull final String sNamespaceURI, final boolean bAllowOverwrite) { ValueEnforcer.notNull (sPrefix, "Prefix"); ValueEnforcer.notNull (sNamespaceURI, "NamespaceURI"); if (!bAllowOverwrite && m_aPrefix2NS.containsKey (sPrefix)) throw new IllegalArgumentException ("The prefix '" + sPrefix + "' is already registered to '" + m_aPrefix2NS.get (sPrefix) + "'!"); if (sPrefix.equals (XMLConstants.DEFAULT_NS_PREFIX)) m_sDefaultNamespaceURI = sNamespaceURI; m_aPrefix2NS.put (sPrefix, sNamespaceURI); m_aNS2Prefix.computeIfAbsent (sNamespaceURI, x -> new CommonsHashSet <> ()).add (sPrefix); return this; }
public boolean contains (@Nonnull @Nonempty final String... aPath) { final ICommonsOrderedMap <String, RequestParamMapItem> aMap = _getChildMapExceptLast (aPath); if (aMap == null) return false; final String sLastPathPart = ArrayHelper.getLast (aPath); if (aMap.containsKey (sLastPathPart)) return true; for (final RequestParamMapItem aItem : aMap.values ()) if (aItem.containsChild (sLastPathPart)) return true; return false; }