Package org.apache.commons.lang

Examples of org.apache.commons.lang.NullArgumentException


            });

    public CharsetHolder(final String charset, final float quality, final int order) {

        if (charset == null) {
            throw new NullArgumentException("charset");
        }

        this.charset = charset;
        this.quality = quality;
        this.order = order;
View Full Code Here


    }

    @Override
    public boolean synchronize(LoggingInfo info) throws Exception {
        if (info == null) {
            throw new NullArgumentException("Incoming object is null");
        }
        try {
            // LOCALIZE service
            final LoggingInfo localObject = geoServer.getLogging();
            // overwrite local object members with new incoming settings
View Full Code Here

    }

    @Override
    public boolean synchronize(JMSServiceModifyEvent ev) throws Exception {
        if (ev == null) {
            throw new NullArgumentException("Incoming event is null");
        }
        try {
            // localize service
            final ServiceInfo localObject = localizeService(geoServer, ev);
View Full Code Here

  }

  @Override
  public boolean synchronize(DocumentFile event) throws Exception {
    if (event == null) {
      throw new NullArgumentException("Incoming object is null");
    }
    if (config == null) {
      throw new IllegalStateException("Unable to load configuration");
    } else if (!ReadOnlyConfiguration.isReadOnly(config)) {
      try {
View Full Code Here

  }

  @Override
  public boolean synchronize(CatalogEvent event) throws Exception {
    if (event == null) {
      throw new NullArgumentException("Incoming object is null");
    }
    try {
      if (event instanceof CatalogRemoveEvent) {
        final CatalogRemoveEvent removeEv = ((CatalogRemoveEvent) event);
View Full Code Here

  }

  @Override
  public boolean synchronize(CatalogEvent event) throws Exception {
    if (event==null) {
      throw new NullArgumentException("Incoming object is null");
    }
    try {
     
      if (event instanceof CatalogPostModifyEvent){
        final CatalogPostModifyEvent postModEv=((CatalogPostModifyEvent)event);
View Full Code Here

   * @return the local workspace if found or the passed one (localized)
   */
  public static WorkspaceInfo localizeWorkspace(final WorkspaceInfo info,
      final Catalog catalog) {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final WorkspaceInfo localObject=catalog.getWorkspaceByName(info.getName());
    if (localObject !=null){
      return localObject;
    }
View Full Code Here

  }
 
  public static NamespaceInfo localizeNamespace(final NamespaceInfo info,
      final Catalog catalog) {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final NamespaceInfo localObject=catalog.getNamespaceByURI(info.getURI());
    if (localObject !=null){
      return localObject;
    }
View Full Code Here

   * @param catalog
   * @return the local style or the passed one (if not exists locally)
   */
  public static StyleInfo localizeStyle(final StyleInfo info, final Catalog catalog) {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final StyleInfo localObject = catalog.getStyleByName(info.getName());
    if (localObject != null) {
      return localObject;
    }
View Full Code Here

    }
  }
 
  public static Set<StyleInfo> localizeStyles(final Set<StyleInfo> stileSet, final Catalog catalog){
    if (stileSet==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
    final Set<StyleInfo> localStileSet = new HashSet<StyleInfo>();
    final Iterator<StyleInfo> deserStyleSetIterator = stileSet
        .iterator();
    while (deserStyleSetIterator.hasNext()) {
      final StyleInfo deserStyle = deserStyleSetIterator.next();
View Full Code Here

TOP

Related Classes of org.apache.commons.lang.NullArgumentException

Copyright © 2018 www.massapicom. 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.