package com.sap.core.odata.api.edm;

public class FullQualifiedName {

  private String name;
  private String namespace;

  public FullQualifiedName(String name, String namespace) {
    this.name = name;
    this.namespace = namespace;
  }

  public String getName() {
    return name;
  }

  public String getNamespace() {
    return namespace;
  }

  @Override
  public int hashCode() {
    return toString().hashCode();
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null || !(obj instanceof FullQualifiedName))
      return false;
    final FullQualifiedName other = (FullQualifiedName) obj;
    return namespace.equals(other.getNamespace()) && name.equals(other.getName());
  }

  @Override
  public String toString() {
    return namespace + "." + name;
  }
}
@@ -81,24 +81,29 @@
  String name
+space
 ;%0A  private 
@@ -113,21 +113,16 @@
 ing name
-space
 ;%0A%0A  pub
@@ -154,16 +154,21 @@
 ing name
+space
 , String
@@ -172,21 +172,16 @@
 ing name
-space
 ) %7B%0A    
@@ -189,23 +189,33 @@
 his.name
+space
  = name
+space
 ;%0A    th
@@ -225,70 +225,10 @@
 name
-space = namespace;%0A  %7D%0A%0A  public String getName() %7B%0A    return
+ =
  nam
@@ -291,24 +291,74 @@
 space;%0A  %7D%0A%0A
+  public String getName() %7B%0A    return name;%0A  %7D%0A%0A
   @Override%0A

Refactor FullQualifiedName