CloneSet570


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
106220.963compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110616
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/config/FolderItem.java
21616
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/config/SpellcheckItem.java
Next
Last
Clone Instance
1
Line Count
106
Source Line
16
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/config/FolderItem.java

//The contents of this file are subject to the Mozilla Public License Version 1.1
//(the "License"); you may not use this file except in compliance with the 
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
//
//Software distributed under the License is distributed on an "AS IS" basis,
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
//for the specific language governing rights and
//limitations under the License.
//
//The Original Code is "The Columba Project"
//
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003. 
//
//All Rights Reserved.
package org.columba.addressbook.config;

import org.columba.core.config.DefaultItem;
import org.columba.core.xml.XmlElement;

/**
 * Convinience wrapper for a contact folder configuration.
 * 
 * @author fdietz
 */
public class FolderItem extends DefaultItem {
    /*
AdapterNode name;
AdapterNode uid;
AdapterNode type;
AdapterNode rootNode;
*/
  public FolderItem(XmlElement root) {
    super(root);
        /*
this.rootNode = root;

parse();

createMissingElements();
*/
  //filterList = new Vector();
  }
    /*
protected void parse()
{
        for (int i = 0; i < getRootNode().getChildCount(); i++)
        {
                AdapterNode child = getRootNode().getChildAt(i);

                if (child.getName().equals("name"))
                {
                        name = child;
                }
                else if (child.getName().equals("uid"))
                {
                        uid = child;
                }
                else if (child.getName().equals("type"))
                {
                        type = child;
                }

        }
}

protected void createMissingElements()
{

}

public AdapterNode getRootNode()
{
        return rootNode;
}

public void setUid(int i)
{
        Integer h = new Integer(i);

        setTextValue(uid, h.toString());
}

public void setName(String str)
{
        setTextValue(name, str);
}

public int getUid()
{
        if ( uid != null )
        {
        Integer i = new Integer(getTextValue(uid));

        return i.intValue();
        }
        else
        {
                return -1;
        }
}

public String getName()
{
        if ( name != null )
                return getTextValue(name);
        else
                return "";
}

public String getType()
{
        return getTextValue(type);
}
*/
}




First
Previous
Clone Instance
2
Line Count
16
Source Line
16
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/config/SpellcheckItem.java

//The contents of this file are subject to the Mozilla Public License Version 1.1
//(the "License"); you may not use this file except in compliance with the 
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
//
//Software distributed under the License is distributed on an "AS IS" basis,
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
//for the specific language governing rights and
//limitations under the License.
//
//The Original Code is "The Columba Project"
//
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003. 
//
//All Rights Reserved.
package org.columba.mail.config;

import org.columba.core.config.DefaultItem;
import org.columba.core.xml.XmlElement;

/**
 * @version         1.0
 * @author
 */
public class SpellcheckItem extends DefaultItem {
  public SpellcheckItem(XmlElement root) {
    super(root);
  }
}




Clone AbstractionParameter Count: 2Parameter Bindings

//The contents of this file are subject to the Mozilla Public License Version 1.1
//(the "License"); you may not use this file except in compliance with the 
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
//
//Software distributed under the License is distributed on an "AS IS" basis,
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
//for the specific language governing rights and
//limitations under the License.
//
//The Original Code is "The Columba Project"
//
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003. 
//
//All Rights Reserved.
package org.columba. [[#variable1305de60]].config;

import org.columba.core.config.DefaultItem;
import org.columba.core.xml.XmlElement;

/**
 * Convinience wrapper for a contact folder configuration.
 * 
 * @author fdietz
 */
/**
 * @version         1.0
 * @author
 */
public class [[#variable1305de20]]extends DefaultItem {
  /*
  AdapterNode name;
  AdapterNode uid;
  AdapterNode type;
  AdapterNode rootNode;
  */
  public [[#variable1305de20]](XmlElement root) {
    super(root);
  /*
  this.rootNode = root;

  parse();

  createMissingElements();
  */
  //filterList = new Vector();
  }
/*
protected void parse()
{
        for (int i = 0; i < getRootNode().getChildCount(); i++)
        {
                AdapterNode child = getRootNode().getChildAt(i);

                if (child.getName().equals("name"))
                {
                        name = child;
                }
                else if (child.getName().equals("uid"))
                {
                        uid = child;
                }
                else if (child.getName().equals("type"))
                {
                        type = child;
                }

        }
}

protected void createMissingElements()
{

}

public AdapterNode getRootNode()
{
        return rootNode;
}

public void setUid(int i)
{
        Integer h = new Integer(i);

        setTextValue(uid, h.toString());
}

public void setName(String str)
{
        setTextValue(name, str);
}

public int getUid()
{
        if ( uid != null )
        {
        Integer i = new Integer(getTextValue(uid));

        return i.intValue();
        }
        else
        {
                return -1;
        }
}

public String getName()
{
        if ( name != null )
                return getTextValue(name);
        else
                return "";
}

public String getType()
{
        return getTextValue(type);
}
*/
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1305de60]]
addressbook 
12[[#1305de60]]
mail 
21[[#1305de20]]
FolderItem 
22[[#1305de20]]
SpellcheckItem