Package java.util

Examples of java.util.Properties.containsKey()


          supportedLanguageIds.setProperty("DE","german");
          supportedLanguageIds.setProperty("HR","croatian");
          supportedLanguageIds.setProperty("RU","russian");
          String currentLanguageIdentifier = "EN";
          Locale locale = Locale.getDefault();
          if (supportedLanguageIds.containsKey(locale.getLanguage().toUpperCase()))
            currentLanguageIdentifier = locale.getLanguage().toUpperCase();

          LoginDialog loginDialog = new LoginDialog(
            null,
            false,
View Full Code Here


                properties.put("sequence-name", tablegenmd.getPKColumnValue());
            }
        }
        else if (strategy == IdentityStrategy.INCREMENT && tablegenmd == null)
        {
            if (!properties.containsKey("key-cache-size"))
            {
                // Use default allocation size
                int allocSize = getIntProperty("datanucleus.valuegeneration.increment.allocationSize");
                properties.put("key-cache-size", "" + allocSize);
            }
View Full Code Here

            if (onBehalfOfToken != null) {
                String id = getIdFromToken(onBehalfOfToken);
                SecurityToken cachedToken = tokenStore.getToken(id);
                if (cachedToken != null) {
                    Properties properties = cachedToken.getProperties();
                    if (properties != null && properties.containsKey(key)) {
                        String associatedToken = properties.getProperty(key);
                        SecurityToken issuedToken = tokenStore.getToken(associatedToken);
                        if (issuedToken != null) {
                            return issuedToken;
                        }
View Full Code Here

            if (actAsToken != null) {
                String id = getIdFromToken(actAsToken);
                SecurityToken cachedToken = tokenStore.getToken(id);
                if (cachedToken != null) {
                    Properties properties = cachedToken.getProperties();
                    if (properties != null && properties.containsKey(key)) {
                        String associatedToken = properties.getProperty(key);
                        SecurityToken issuedToken = tokenStore.getToken(associatedToken);
                        if (issuedToken != null) {
                            return issuedToken;
                        }
View Full Code Here

      while (keyIterator.hasNext()) {
        String key = (String) keyIterator.next();
        String value = (String) props.get(key);

        // log warning if system property already exist and does not have the same value
        if (systemProps.containsKey(key)) {
          String systemPropValue = (String) systemProps.get(key);
          if (!systemPropValue.equals(value)) {
            UIMAFramework.getLogger(this.getClass()).logrb(
                    Level.WARNING,
                    this.getClass().getName(),
View Full Code Here

            IPath srcPath = null;
            IPath srcRoot = null;

            // Retrieve the saved source attachment information
            if (props != null && props.containsKey(key + PROPERTY_SRC_PATH)) {
                srcPath = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_PATH));
                if (props.containsKey(key + PROPERTY_SRC_ROOT)) {
                    srcRoot = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_ROOT));
                }
            } else {
View Full Code Here

            IPath srcRoot = null;

            // Retrieve the saved source attachment information
            if (props != null && props.containsKey(key + PROPERTY_SRC_PATH)) {
                srcPath = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_PATH));
                if (props.containsKey(key + PROPERTY_SRC_ROOT)) {
                    srcRoot = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_ROOT));
                }
            } else {
                // If there is no saved source attachment, then try and find a source bundle
                Map<String,String> extraProps = new HashMap<String,String>();
View Full Code Here

            IPath srcPath = null;
            IPath srcRoot = null;

            // Retrieve the saved source attachment information
            if (props != null && props.containsKey(key + PROPERTY_SRC_PATH)) {
                srcPath = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_PATH));
                if (props.containsKey(key + PROPERTY_SRC_ROOT)) {
                    srcRoot = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_ROOT));
                }
            } else {
View Full Code Here

            IPath srcRoot = null;

            // Retrieve the saved source attachment information
            if (props != null && props.containsKey(key + PROPERTY_SRC_PATH)) {
                srcPath = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_PATH));
                if (props.containsKey(key + PROPERTY_SRC_ROOT)) {
                    srcRoot = Path.fromPortableString((String) props.get(key + PROPERTY_SRC_ROOT));
                }
            } else {
                // If there is no saved source attachment, then try and find a source bundle
                File sourceBundle = getSourceBundle(entry.getPath());
View Full Code Here

                }

                if (instancePropertyName != null) {
                    result.put(instancePropertyName, propertyValue);
                }
                else if (!result.containsKey(propertyName)) {
                    result.put(propertyName, propertyValue);
                }
            }
            else {
                result.put(propertyKey, propertyValue);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.