/** * Clear all of this request's attributes. * * @return this */ @Nonnull public MockHttpServletRequest clearAttributes () { m_aAttributes.clear (); return this; }
@Nonnull public final EChange removeAllPropertyValues () { if (m_aProperties.isEmpty ()) return EChange.UNCHANGED; m_aProperties.clear (); return EChange.CHANGED; }
@Nonnull public final EChange removeAllFeatures () { if (m_aFeatures.isEmpty ()) return EChange.UNCHANGED; m_aFeatures.clear (); return EChange.CHANGED; }
@Nonnull public static EChange removeAllFeatures () { return s_aRWLock.writeLocked ( () -> { if (s_aDefaultFeatures.isEmpty ()) return EChange.UNCHANGED; s_aDefaultFeatures.clear (); return EChange.CHANGED; }); }
@Nonnull public EChange clear () { if (m_aPrefix2NS.isEmpty ()) return EChange.UNCHANGED; m_aPrefix2NS.clear (); m_aNS2Prefix.clear (); m_sDefaultNamespaceURI = null; return EChange.CHANGED; }
/** * Remove all contents of the block. Sets the position to 0. * * @return this */ @Nonnull public IMPLTYPE clear () { m_aObjs.clear (); m_aDecls.clear (); m_nPos = 0; return thisAsT (); }
@Nonnull public static EChange removeAllPropertyValues () { return s_aRWLock.writeLocked ( () -> { if (s_aDefaultProperties.isEmpty ()) return EChange.UNCHANGED; s_aDefaultProperties.clear (); return EChange.CHANGED; }); }
@Nonnull public static EChange removeAllFeatures () { return s_aRWLock.writeLocked ( () -> { if (s_aDefaultFeatures.isEmpty ()) return EChange.UNCHANGED; s_aDefaultFeatures.clear (); return EChange.CHANGED; }); }
@Override protected void onDestroy (@Nonnull final IScope aScopeInDestruction) { // Delete all unconfirmed files for (final TemporaryUserDataObject aUDO : m_aMap.values ()) _deleteUDO (aUDO); m_aMap.clear (); }
public void reload () throws DAOException { m_aRWLock.writeLockedThrowing ( () -> { m_aMap.clear (); initialRead (); }); }
public static void clear () { final PhotonGlobalState aGlobalState = getInstance (); aGlobalState.m_aStateMap.clear (); aGlobalState.setDefaultApplicationID (null); }
public void reInit () { m_nGenSymbolIndex = 0; m_indentamt = 0; m_bJJ2LA = false; m_phase2list.clear (); m_phase3list.clear (); m_phase3table.clear (); m_firstSet = null; m_xsp_declared = false; m_jj3_expansion = null; }
private void _checkIfAnySessionsExist () { if (containsAnySession ()) { m_aRWLock.writeLocked ( () -> { LOGGER.error ("The following " + m_aSessionScopes.size () + " session scopes are left over: " + m_aSessionScopes.toString ()); m_aSessionScopes.clear (); }); } }
public void reload () throws DAOException { m_aRWLock.writeLockedThrowing ( () -> { m_aMap.clear (); initialRead (); }); LOGGER.info ("Reloaded " + m_aMap.size () + " go-mappings!"); }
public void reinitialize () { m_aRWLock.writeLocked ( () -> { m_aMap.clear (); // Register all custom micro type converter // Must be in writeLock to ensure no reads happen during initialization for (final IMicroTypeConverterRegistrarSPI aSPI : ServiceLoaderHelper.getAllSPIImplementations (IMicroTypeConverterRegistrarSPI.class)) { if (LOGGER.isDebugEnabled ()) LOGGER.debug ("Calling registerMicroTypeConverter on " + aSPI.getClass ().getName ()); aSPI.registerMicroTypeConverter (this); } }); if (LOGGER.isDebugEnabled ()) LOGGER.debug (getRegisteredMicroTypeConverterCount () + " micro type converters registered"); } }
/** * Clear all of this session's attributes. */ public void clearAttributes () { for (final Map.Entry <String, Object> entry : m_aAttributes.entrySet ()) { final String sName = entry.getKey (); final Object aValue = entry.getValue (); if (aValue instanceof HttpSessionBindingListener) ((HttpSessionBindingListener) aValue).valueUnbound (new HttpSessionBindingEvent (this, sName, aValue)); } m_aAttributes.clear (); }
/** * Remove all registered backends and re-read the information from the SPI * providers. */ public void reinitialize () { m_aRWLock.writeLocked ( () -> { m_aMap.clear (); // register all SPI implementations for (final ISMPBackendRegistrarSPI aSPI : ServiceLoaderHelper.getAllSPIImplementations (ISMPBackendRegistrarSPI.class)) { if (LOGGER.isDebugEnabled ()) LOGGER.debug ("Calling registerSMPBackend on " + aSPI.getClass ().getName ()); aSPI.registerSMPBackend (this); } if (LOGGER.isDebugEnabled ()) LOGGER.debug (m_aMap.size () + " SMP backends registered"); }); }
private void _registerAll () { m_aRWLock.writeLocked ( () -> m_aMap.clear ()); for (final IAS4ProfileRegistrarSPI aSPI : ServiceLoaderHelper.getAllSPIImplementations (IAS4ProfileRegistrarSPI.class)) aSPI.registerAS4Profile (this); final int nCount = getProfileCount (); LOGGER.info ((nCount == 1 ? "1 AS4 profile is registered " : nCount + " AS4 profiles are registered")); }
@Nullable public EMomentsDateTimePickerFormatToken getNextToken () { m_aAllMatching.clear (); for (final EMomentsDateTimePickerFormatToken eToken : EMomentsDateTimePickerFormatToken.values ()) { final String sJavaToken = eToken.getJavaToken (); if (m_sRest.startsWith (sJavaToken)) m_aAllMatching.put (sJavaToken, eToken); } if (m_aAllMatching.isEmpty ()) return null; Map.Entry <String, EMomentsDateTimePickerFormatToken> aEntry; if (m_aAllMatching.size () == 1) aEntry = m_aAllMatching.getFirstEntry (); else aEntry = m_aAllMatching.getSortedByKey (m_aComp).getFirstEntry (); m_sRest = m_sRest.substring (aEntry.getKey ().length ()); return aEntry.getValue (); }
@Nonnull public final EChange removeAllChildren () { if (m_aChildMap == null || m_aChildMap.isEmpty ()) return EChange.UNCHANGED; // Remember all children final ICommonsList <ITEMTYPE> aAllChildren = m_aChildren.getClone (); // Remove all children m_aChildMap.clear (); m_aChildren.clear (); // Notify factory after removal for (final ITEMTYPE aChild : aAllChildren) _recursiveRemoveFromFactory (aChild); return EChange.CHANGED; }