Returns the ChainMode object matching the String.

@param chainMode chain mode

@return ChainMode object corresponding to chain mode. Null if does not correspond to any mode.
168479
public static ChainingMode getChainMode(String chainMode) {
	if (chainMode==null) {
		return null;
	}
	switch (chainMode) {
		case "cbc": return ChainingMode.cbc;
		case "cfb": return ChainingMode.cfb;
		case "ecb": return ChainingMode.ecb;
		default:
			LOG.error("Uknown chainmode: \""+chainMode+"\"");
			break;

	}
	return null;
}
36580
public java.util.List<String> getSupportedEngineModes() {
        if (supportedEngineModes == null) {
            supportedEngineModes = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return supportedEngineModes;
    }
1040303
private static Map<String, String> getModeItems() {

        Map<String, String> modes = new LinkedHashMap<String, String>();
        modes.put("dynamic", Messages.get().key(Messages.GUI_LOCATION_DYNAMIC_0));
        modes.put("static", Messages.get().key(Messages.GUI_LOCATION_STATIC_0));
        return modes;
    }
575567
public void setPaginationMode(final PaginationMode paginationMode) {
		getOrCreateComponentModel().paginationMode = paginationMode == null ? PaginationMode.NONE : paginationMode;
	}
234821
@Override
    public SharedCacheMode getSharedCacheMode()
    {
        // Convert this SharedCacheMode from the class defined
        // in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitCachingType)
        // to JPA  (javax.persistence.SharedCacheMode).

        // Per the spec, must return UNSPECIFIED if not in xml
        SharedCacheMode rtnMode = SharedCacheMode.UNSPECIFIED;
        PersistenceUnitCachingType jaxbMode = null;

        jaxbMode = ivPUnit.getSharedCacheMode();
        if (jaxbMode == PersistenceUnitCachingType.ALL)
        {
            rtnMode = SharedCacheMode.ALL;
        }
        else if (jaxbMode == PersistenceUnitCachingType.NONE)
        {
            rtnMode = SharedCacheMode.NONE;
        }
        else if (jaxbMode == PersistenceUnitCachingType.ENABLE_SELECTIVE)
        {
            rtnMode = SharedCacheMode.ENABLE_SELECTIVE;
        }
        else if (jaxbMode == PersistenceUnitCachingType.DISABLE_SELECTIVE)
        {
            rtnMode = SharedCacheMode.DISABLE_SELECTIVE;
        }

        return rtnMode;
    }
1293109
public String getString(String key) {
        Object tmp = objectMap.get(key);
        return tmp == null ? null : tmp.toString();
    }
782340
protected int getMode(int mode) {
    int type = FILE_FLAG;
    if (isLink()) {
      type = LINK_FLAG;
    }
    else if (isDirectory()) {
      type = DIR_FLAG;
    }
    return type | (mode & PERM_MASK);
  }
1309485
public String getString(String key) {
	    Object obj = get(key);
	    if (obj != null && obj instanceof String) {
		    return (String) obj;
	        
		}
	    return null;
	    
	}
1137985
private static Component getCurrentModal_(RootPaneContainer rootPane) {
	synchronized (modals) {
	  Modal modal = modals.get(rootPane);
	  if (modal != null) {
		if (modal.getSize() > 0) {
		  return modal.components.get(modal.components.size() - 1);
		}
	  }
	  return null;
	}
  }
124947
private static NlsMessage getMessage(IoMode mode) {

    NlsBundleUtilIoRoot bundle = createBundle(NlsBundleUtilIoRoot.class);
    switch (mode) {
      case READ:
        return bundle.errorIoRead();
      case WRITE:
        return bundle.errorIoWrite();
      case CLOSE:
        return bundle.errorIoClose();
      case FLUSH:
        return bundle.errorIoFlush();
      case COPY:
        return bundle.errorIoCopy();
      default:
        assert (false) : "IoMode is null!";
        return bundle.errorIo();
    }
  }
1096243
public DrawerItem setTextMode(int textMode) {
        if (textMode != SINGLE_LINE && textMode != TWO_LINE && textMode != THREE_LINE) {
            throw new IllegalArgumentException("Image mode must be either SINGLE_LINE, TWO_LINE or THREE_LINE.");
        }
        mTextMode = textMode;
        notifyDataChanged();
        return this;
    }
1141504
private UDPAddressingMode getAddressingMode() {
		String mode = getGangliaConfig(args.getMode(), ganglia, "mode",
				DEFAULT_MODE);
		if (mode.toLowerCase().equals("unicast")) {
			return UDPAddressingMode.UNICAST;
		} else {
			return UDPAddressingMode.MULTICAST;
		}
	}
904565
public BaseListener getNextValidListener(int iMoveMode)
    {
        if (m_nextListener != null)
        {
            if ((m_nextListener.isEnabled()) & (((FieldListener)m_nextListener).respondsToMode(iMoveMode)))
                return m_nextListener;
            else
                return ((FieldListener)m_nextListener).getNextValidListener(iMoveMode);
        }
        else
            return null;
    }
1185531
public function getLockMode()
    {
        $lockMode = $this->getHint(self::HINT_LOCK_MODE);

        if ($lockMode === false) {
            return null;
        }

        return $lockMode;
    }
79646
@Override
    public ValidationMode getValidationMode() {
        PersistenceUnitValidationModeType validationMode = persistenceUnitXml.getValidationMode();
        if (validationMode == null) {
            return null;
        }

        return ValidationMode.valueOf(validationMode.name());
    }
931909
private static String chainToBeanString(ChainedProperty property) {
        int count = property.getChainCount();
        if (count <= 0) {
            return property.getPrimeProperty().getBeanName();
        }

        StringBuilder b = new StringBuilder();
        b.append(property.getPrimeProperty().getBeanName());
        for (int i=0; i<count; i++) {
            b.append('.');
            b.append(property.getChainedProperty(i).getBeanName());
        }

        return b.toString();
    }
1156672
public String getStringTag(String key) {
		Object value = tags.get(key);
		if (value instanceof String) {
			return (String) value;
		}
		return null;
	}