Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * $Id: AbstractIkasan.java 130 2009-06-05 17:01:24Z karianna $
   * $URL: https://ikasaneip.svn.sourceforge.net/svnroot/ikasaneip/tags/ikasan-0.7.3/common/src/main/java/org/ikasan/common/configuration/AbstractIkasan.java $
   * 
   * ====================================================================
   * Ikasan Enterprise Integration Platform
   * Copyright (c) 2003-2008 Mizuho International plc. and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the 
  * Free Software Foundation Europe e.V. Talstrasse 110, 40217 Dusseldorf, Germany 
  * or see the FSF site: http://www.fsfeurope.org/.
  * ====================================================================
  */
 package org.ikasan.common.configuration;
 
 import java.util.List;
 
Java representation of the IkasanSecurity XML configuration file.

Author(s):
Ikasan Development Team
 
 public abstract class AbstractIkasan
 {
    
Logger
 
     private static Logger logger = Logger.getLogger(AbstractIkasan.class);
    
XML version and encoding
 
     protected static final String XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
    
URI for the XML schema instance
 
The schema location for the no namespace case
 
     protected String noNamespaceSchemaLocation;
    
The schema version
 
     protected String version;
    
Ikasan configuration entries
 
     protected List<Entryentries = new ArrayList<Entry>();

    
Default constructor
 
     public AbstractIkasan()
     {
         // Do Nothing
     }

    
Constructor: creates new AbstractIkasan instance

Parameters:
noNamespaceSchemaLocation
 
     public AbstractIkasan(String noNamespaceSchemaLocation)
     {
         this. = noNamespaceSchemaLocation;
     }

    

Parameters:
schemaInstanceNSURI
 
     public void setSchemaInstanceNSURI(String schemaInstanceNSURI)
     {
         this. = schemaInstanceNSURI;
     }

    

Returns:
schemaInstanceNSURI
 
     public String getSchemaInstanceNSURI()
     {
         return this.;
     }

    

Parameters:
noNamespaceSchemaLocation
 
     public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation)
     {
         this. = noNamespaceSchemaLocation;
     }

    

Returns:
noNamespaceSchemaLocation
 
    {
        return this.;
    }

    

Parameters:
version
    public void setVersion(String version)
    {
        this. = version;
    }

    

Returns:
version
    public String getVersion()
    {
        return this.;
    }

    
Sets the entries.

Parameters:
entries
    public void setEntries(final List<Entryentries)
    {
        this. = entries;
        .debug("Setting entries [" + this. + "].");
    }

    
Gets the entries.

Returns:
entries
    public List<EntrygetEntries()
    {
        .debug("Getting entries [" + this. + "].");
        return this.;
    }

    
Adds a new entry to the current entries list

Parameters:
entry
    public void addEntry(final Entry entry)
    {
        this..add(entry);
    }

    
Returns a string representation of this object.
    @Override
    public String toString()
    {
        StringBuilder sb = new StringBuilder();
        sb.append('[');
        // String values of each entry
        StringBuilder sbEntries = new StringBuilder();
        for(Entry entry : this.getEntries())
            sbEntries.append(entry.toString());
        sb.append(sbEntries);
        sb.append("].");
        return sb.toString();
    }
New to GrepCode? Check out our FAQ X