List of usage examples for org.apache.commons.lang NullArgumentException NullArgumentException
public NullArgumentException(String argName)
Instantiates with the given argument name.
From source file:org.nuclos.server.ruleengine.valueobject.RuleObjectContainerCVOImpl.java
/** * @param mdvo//from www . ja v a 2 s. com * @param mpDependants * @param event * @precondition mdvo != null * @precondition mpDependants != null * @precondition event != null */ public RuleObjectContainerCVOImpl(Event event, MasterDataVO mdvo, DependantMasterDataMap mpDependants) { if (mdvo == null) { throw new NullPointerException("mdvo"); } if (mpDependants == null) { throw new NullArgumentException("mpDependants"); } if (event == null) { throw new NullArgumentException("event"); } this.govo = null; this.mdvo = mdvo; this.realMap = mpDependants; this.event = event; }
From source file:org.nuclos.server.statemodel.valueobject.StateModelUsages.java
/** * @param usagecriteria/*from ww w. java2 s.c o m*/ * @return * @precondition usagecriteria != null * @precondition usagecriteria.getModuleId() != null */ public Integer getInitialStateId(UsageCriteria usagecriteria) { if (usagecriteria == null) { throw new NullArgumentException("usagecriteria"); } if (usagecriteria.getModuleId() == null) { throw new NullArgumentException("usagecriteria.getModuleId()"); } final StateModelUsage stateModelUsage = this.getStateModelUsage(usagecriteria); if (stateModelUsage == null) { throw new NuclosFatalException(StringUtils.getParameterizedExceptionMessage( "statemodel.usages.error.null", Modules.getInstance().getEntityLabelByModuleId(usagecriteria.getModuleId()), usagecriteria)); //"F\u00fcr die Verwendung des Moduls " + Modules.getInstance().getEntityLabelByModuleId(usagecriteria.getModuleId()) + " " + usagecriteria + " existiert kein Statusmodell."); } return stateModelUsage.getInitialStateId(); }
From source file:org.nuclos.server.statemodel.valueobject.StateVO.java
/** * @param userrights/* ww w .j a v a 2s. co m*/ * @precondition userrights != null */ public void setUserRights(UserRights userrights) { if (userrights == null) { throw new NullArgumentException("userrights"); } this.userrights = userrights; }
From source file:org.nuclos.server.statemodel.valueobject.StateVO.java
/** * @param userfieldrights the userfieldrights to set *//*from w w w .j a v a2s . c om*/ public void setUserFieldRights(UserFieldRights userfieldrights) { if (userfieldrights == null) { throw new NullArgumentException("userfieldrights"); } this.userfieldrights = userfieldrights; }
From source file:org.nuclos.server.statemodel.valueobject.StateVO.java
/** * @param usersubformrights/* www.j a v a2 s. co m*/ * @precondition usersubformrights != null */ public void setUserSubformRights(UserSubformRights usersubformrights) { if (usersubformrights == null) { throw new NullArgumentException("usersubformrights"); } this.usersubformrights = usersubformrights; }
From source file:org.nuclos.server.statemodel.valueobject.StateVO.java
/** * @param mandatoryFields the mandatoryFields to set *///from ww w. j a va2 s . c o m public void setMandatoryFields(Set<MandatoryFieldVO> mandatoryFields) { if (mandatoryFields == null) { throw new NullArgumentException("mandatoryFields"); } this.mandatoryFields = mandatoryFields; }
From source file:org.nuclos.server.statemodel.valueobject.StateVO.java
/** * @param mandatoryColumns the mandatoryColumns to set *//*from w w w . j a v a 2 s . com*/ public void setMandatoryColumns(Set<MandatoryColumnVO> mandatoryColumns) { if (mandatoryColumns == null) { throw new NullArgumentException("mandatoryColumns"); } this.mandatoryColumns = mandatoryColumns; }
From source file:org.openanzo.servlet.WelcomeFilesFilter.java
/** * Creates a welcome files filter./* w ww . ja v a 2 s . co m*/ * * @param welcomeFiles * array of welcome files * @param redirect * true if the client should be rediected to welcome file or false if forwarded * * @throws NullArgumentException * if: welcome files array is null or empty entries in array are null or empty entries in array start or end with "/" */ WelcomeFilesFilter(Collection<String> paths, final String[] welcomeFiles, boolean redirect) { this.paths = paths; if (welcomeFiles.length == 0) { throw new NullArgumentException("Welcome files is be empty"); } for (String welcomeFile : welcomeFiles) { if (welcomeFile == null || welcomeFile.trim().length() == 0) { throw new NullArgumentException("Welcome files entry is null or empty"); } if (welcomeFile.startsWith("/")) { throw new NullArgumentException("Welcome files entry [" + welcomeFile + "] starts with '/'"); } if (welcomeFile.endsWith("/")) { throw new NullArgumentException("Welcome files entry [" + welcomeFile + "] ends with '/'"); } } m_welcomeFiles = welcomeFiles; m_redirect = redirect; }
From source file:org.openhab.binding.lutron.internal.grxprg.GrafikEyeHandler.java
/** * Returns the {@link PrgProtocolHandler} to use * * @return a non-null {@link PrgProtocolHandler} to use *///w w w .j a va 2 s . c o m private PrgProtocolHandler getProtocolHandler() { final Bridge bridge = getBridge(); if (bridge == null || !(bridge.getHandler() instanceof PrgBridgeHandler)) { throw new NullArgumentException("Cannot have a Grafix Eye thing outside of the PRG bridge"); } final PrgProtocolHandler handler = ((PrgBridgeHandler) bridge.getHandler()).getProtocolHandler(); if (handler == null) { throw new NullArgumentException("No protocol handler set in the PrgBridgeHandler!"); } return handler; }
From source file:org.openhab.binding.lutron.internal.grxprg.PrgProtocolHandler.java
/** * Sets the time on the PRG interface/*w w w. j ava 2 s .co m*/ * * @param calendar a non-null calendar to set the time to * @throws NullArgumentException if calendar is null */ void setTime(Calendar calendar) { if (calendar == null) { throw new NullArgumentException("calendar cannot be null"); } final String cmd = String.format("%1 %2$tk %2$tM %2$tm %2$te %2ty %3", CMD_SETTIME, calendar, calendar.get(Calendar.DAY_OF_WEEK)); sendCommand(cmd); }