CloneSet27


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
74230.985class_body_declarations[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
174139
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/parser/XCSDocumentParser.java
26083
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/parser/XMLContactDocumentParser.java
Next
Last
Clone Instance
1
Line Count
74
Source Line
139
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/parser/XCSDocumentParser.java

/**
 * @see org.columba.calendar.model.api.IBasicModel#set(java.lang.String,
 *      java.lang.String)
 */
protected void set(String key, String value) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  child.setText(value);
}

/**
 * @see org.columba.calendar.model.api.IBasicModel#set(java.lang.String,
 *      java.lang.String, java.lang.String)
 */
protected void set(String key, String prefix, String value) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  Element prefixchild = child.getChild(prefix);
  if (prefixchild == null) {
    prefixchild = new Element(prefix);
    child.addContent(prefixchild);
  }
  prefixchild.setText(value);
}

/**
 * @see org.columba.calendar.model.api.IBasicModel#get(java.lang.String)
 */
protected String get(String key) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  return child.getTextNormalize();
}

/**
 * @see org.columba.calendar.model.api.IBasicModel#get(java.lang.String,
 *      java.lang.String)
 */
protected String get(String key, String prefix) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  Element prefixchild = child.getChild(prefix);
  if (prefixchild == null) {
    prefixchild = new Element(prefix);
    child.addContent(prefixchild);
  }
  return prefixchild.getTextNormalize();
}

/**
 * @see org.columba.calendar.model.api.IBasicModel#getDocument()
 */
public Document getDocument() {
  return doc;
}

/**
 * @return Returns the id.
 */
public String getId() {
  return get(ICALENDAR.UID);
}

public void setId(String id) {
  set(ICALENDAR.UID, id);
}


First
Previous
Clone Instance
2
Line Count
60
Source Line
83
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/parser/XMLContactDocumentParser.java

public void set(String key, String value) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  child.setText(value);
}

public void set(String key, String prefix, String value) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  Element prefixchild = child.getChild(prefix);
  if (prefixchild == null) {
    prefixchild = new Element(prefix);
    child.addContent(prefixchild);
  }
  prefixchild.setText(value);
}

public String get(String key) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  return child.getTextNormalize();
}

public String get(String key, String prefix) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  Element prefixchild = child.getChild(prefix);
  if (prefixchild == null) {
    prefixchild = new Element(prefix);
    child.addContent(prefixchild);
  }
  return prefixchild.getTextNormalize();
}

public Document getDocument() {
  return doc;
}

/**
 * @return Returns the id.
 */
public String getId() {
  return get(VCARD.ID);
}

public void setId(String id) {
  set(VCARD.ID, id);
}


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable113688e0]]void set(String key, String value) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  child.setText(value);
}

 [[#variable113688e0]]void set(String key, String prefix, String value) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  Element prefixchild = child.getChild(prefix);
  if (prefixchild == null) {
    prefixchild = new Element(prefix);
    child.addContent(prefixchild);
  }
  prefixchild.setText(value);
}

 [[#variable113688e0]]String get(String key) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  return child.getTextNormalize();
}

 [[#variable113688e0]]String get(String key, String prefix) {
  Element child = getParentElement().getChild(key);
  if (child == null) {
    child = new Element(key);
    getParentElement().addContent(child);
  }
  Element prefixchild = child.getChild(prefix);
  if (prefixchild == null) {
    prefixchild = new Element(prefix);
    child.addContent(prefixchild);
  }
  return prefixchild.getTextNormalize();
}

/**
         * @see org.columba.calendar.model.api.IBasicModel#getDocument()
         */
public Document getDocument() {
  return doc;
}

/**
         * @return Returns the id.
         */
public String getId() {
  return get( [[#variable11368860]]. [[#variable11368800]]);
}

public void setId(String id) {
  set( [[#variable11368860]]. [[#variable11368800]], id);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#113688e0]]
/**
 * @see org.columba.calendar.model.api.IBasicModel#set(java.lang.String,
 *      java.lang.String)
 */
protected 
12[[#113688e0]]
public 
21[[#11368860]]
ICALENDAR 
22[[#11368860]]
VCARD 
31[[#11368800]]
UID 
32[[#11368800]]
ID