@Nonnull public final DOMReaderSettings setPropertyValues (@Nullable final Map <EXMLParserProperty, ?> aProperties) { if (aProperties != null) m_aProperties.putAll (aProperties); return this; }
@Nonnull public final DOMReaderSettings setFeatureValues (@Nullable final Map <EXMLParserFeature, Boolean> aValues) { if (aValues != null) m_aFeatures.putAll (aValues); return this; }
@Nonnull public final SAXReaderSettings setFeatureValues (@Nullable final Map <EXMLParserFeature, Boolean> aValues) { if (aValues != null) m_aFeatures.putAll (aValues); return this; }
@Nonnull public final SAXReaderSettings setPropertyValues (@Nullable final Map <EXMLParserProperty, ?> aProperties) { if (aProperties != null) m_aProperties.putAll (aProperties); return this; }
/** * Deserialize the attributes of this session from a state object created by * {@link #serializeState()}. * * @param aState * a representation of this session's serialized state */ @SuppressWarnings ("unchecked") public void deserializeState (@Nonnull final Serializable aState) { if (!(aState instanceof Map)) throw new IllegalArgumentException ("Serialized state needs to be of type [java.util.Map]"); m_aAttributes.putAll ((Map <String, Object>) aState); }
public static void setFeatureValues (@Nullable final Map <EXMLParserFeature, Boolean> aValues) { if (aValues != null) { s_aRWLock.writeLocked ( () -> s_aDefaultFeatures.putAll (aValues)); } }
public static void setFeatureValues (@Nullable final Map <EXMLParserFeature, Boolean> aValues) { if (aValues != null && !aValues.isEmpty ()) { s_aRWLock.writeLocked ( () -> s_aDefaultFeatures.putAll (aValues)); } }
/** * Add entries to the cache. This might be helpful when there is a persistent * cache (outside this class) and the old cache entries should be re-added. * * @param aEntries * The entries to be added. May be <code>null</code>. */ public void addCacheEntries (@Nullable final Map <String, String> aEntries) { if (aEntries != null && !aEntries.isEmpty ()) m_aRWLock.writeLocked ( () -> m_aDNSCache.putAll (aEntries)); }
public CompositeParameters (final boolean bIgnoreMissingParsers, @Nonnull final Map <String, ? extends AbstractParameterParser> aParameterParsers) { this (bIgnoreMissingParsers); getParameterParsers ().putAll (aParameterParsers); }
public static void setPropertyValues (@Nullable final Map <EXMLParserProperty, ?> aProperties) { if (aProperties != null) { s_aRWLock.writeLocked ( () -> s_aDefaultProperties.putAll (aProperties)); } }
public static void setPropertyValues (@Nullable final Map <EXMLParserProperty, ?> aProperties) { if (aProperties != null && !aProperties.isEmpty ()) { s_aRWLock.writeLocked ( () -> s_aDefaultProperties.putAll (aProperties)); } }
/** * Copy constructor. * * @param aOther * Object to copy from. May be <code>null</code>. */ public MapBasedNamespaceContext (@Nullable final MapBasedNamespaceContext aOther) { if (aOther != null) { m_sDefaultNamespaceURI = aOther.m_sDefaultNamespaceURI; m_aPrefix2NS.putAll (aOther.m_aPrefix2NS); m_aNS2Prefix.putAll (aOther.m_aNS2Prefix); } }
/** * add an xdoclet. * * @param sName * xdoclet name * @param aAttributes * Attributes to add * @return XDoclect to be filled */ @Nonnull public ICommonsMap <String, String> addXdoclet (@Nonnull final String sName, @Nonnull final Map <String, String> aAttributes) { final ICommonsMap <String, String> p = addXdoclet (sName); p.putAll (aAttributes); return p; }