test_class.file: org.eclipse.winery.common/src/test/java/org/eclipse/winery/common/ids/definitions/DefinitionsChildIdTest.java
test_class.identifier: DefinitionsChildIdTest
test_case.body: @Test
      public void testCompareToDifferentSubClass() {
          DefinitionsChildId serviceTemplate = new ServiceTemplateId("http://example.org/tosca/serviceTemplates", "myDefinition", false);
          DefinitionsChildId nodeType = new NodeTypeId("http://example.org/tosca/nodeTypes", "myDefinition", false);
  
          assertEquals("ServiceTemplate".compareTo("NodeType"), serviceTemplate.compareTo(nodeType));
      }
test_case.class_method_signature: DefinitionsChildIdTest.testCompareToDifferentSubClass()
test_case.full_signature: @Test public void testCompareToDifferentSubClass()
test_case.identifier: testCompareToDifferentSubClass
test_case.invocations: assertEquals compareTo compareTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompareToDifferentSubClass()
focal_class.declarator: ALL_TOSCA_COMPONENT_ID_CLASSES = Arrays.asList(
          ArtifactTemplateId.class,
          ArtifactTypeId.class,
          CapabilityTypeId.class,
          NodeTypeId.class,
          NodeTypeImplementationId.class,
          PolicyTemplateId.class,
          PolicyTypeId.class,
          RelationshipTypeId.class,
          RelationshipTypeImplementationId.class,
          RequirementTypeId.class,
          ServiceTemplateId.class,
          ComplianceRuleId.class,
          PatternRefinementModelId.class,
          TopologyFragmentRefinementModelId.class,
          TestRefinementModelId.class
      )
focal_class.modifier: public static final
focal_class.original_string: public static final List<Class<? extends DefinitionsChildId>> ALL_TOSCA_COMPONENT_ID_CLASSES = Arrays.asList(
          ArtifactTemplateId.class,
          ArtifactTypeId.class,
          CapabilityTypeId.class,
          NodeTypeId.class,
          NodeTypeImplementationId.class,
          PolicyTemplateId.class,
          PolicyTypeId.class,
          RelationshipTypeId.class,
          RelationshipTypeImplementationId.class,
          RequirementTypeId.class,
          ServiceTemplateId.class,
          ComplianceRuleId.class,
          PatternRefinementModelId.class,
          TopologyFragmentRefinementModelId.class,
          TestRefinementModelId.class
      );
focal_class.type: List<Class<? extends DefinitionsChildId>>
focal_class.var_name: ALL_TOSCA_COMPONENT_ID_CLASSES
focal_class.declarator: namespace
focal_class.modifier: private final
focal_class.original_string: private final Namespace namespace;
focal_class.type: Namespace
focal_class.var_name: namespace
focal_class.file: org.eclipse.winery.common/src/main/java/org/eclipse/winery/common/ids/definitions/DefinitionsChildId.java
focal_class.identifier: DefinitionsChildId
focal_class.class_method_signature: DefinitionsChildId.DefinitionsChildId(Namespace namespace, XmlId xmlId)
focal_class.full_signature: public  DefinitionsChildId(Namespace namespace, XmlId xmlId)
focal_class.identifier: DefinitionsChildId
focal_class.modifiers: public
focal_class.parameters: (Namespace namespace, XmlId xmlId)
focal_class.signature:  DefinitionsChildId(Namespace namespace, XmlId xmlId)
focal_class.class_method_signature: DefinitionsChildId.DefinitionsChildId(String ns, String id, boolean URLencoded)
focal_class.full_signature: public  DefinitionsChildId(String ns, String id, boolean URLencoded)
focal_class.identifier: DefinitionsChildId
focal_class.modifiers: public
focal_class.parameters: (String ns, String id, boolean URLencoded)
focal_class.signature:  DefinitionsChildId(String ns, String id, boolean URLencoded)
focal_class.class_method_signature: DefinitionsChildId.DefinitionsChildId(QName qname)
focal_class.full_signature: public  DefinitionsChildId(QName qname)
focal_class.identifier: DefinitionsChildId
focal_class.modifiers: public
focal_class.parameters: (QName qname)
focal_class.signature:  DefinitionsChildId(QName qname)
focal_class.class_method_signature: DefinitionsChildId.getQName()
focal_class.full_signature: public QName getQName()
focal_class.identifier: getQName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: QName
focal_class.signature: QName getQName()
focal_class.class_method_signature: DefinitionsChildId.getNamespace()
focal_class.full_signature: public Namespace getNamespace()
focal_class.identifier: getNamespace
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Namespace
focal_class.signature: Namespace getNamespace()
focal_class.class_method_signature: DefinitionsChildId.getGroup()
focal_class.full_signature: public abstract String getGroup()
focal_class.identifier: getGroup
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGroup()
focal_class.class_method_signature: DefinitionsChildId.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: DefinitionsChildId.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DefinitionsChildId.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: DefinitionsChildId.toReadableString()
focal_class.full_signature: public String toReadableString()
focal_class.identifier: toReadableString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toReadableString()
focal_class.class_method_signature: DefinitionsChildId.getParent()
focal_class.full_signature: @Override public GenericId getParent()
focal_class.identifier: getParent
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: GenericId
focal_class.signature: GenericId getParent()
focal_class.class_method_signature: DefinitionsChildId.compareTo(GenericId o1)
focal_class.full_signature: @Override public int compareTo(GenericId o1)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (GenericId o1)
focal_class.return: int
focal_class.signature: int compareTo(GenericId o1)
focal_class.superclass: extends GenericId
focal_method.body: @Override
      public int compareTo(GenericId o1) {
          if (o1 instanceof DefinitionsChildId) {
              int res = this.getClass().getName().compareTo(o1.getClass().getName());
              if (res == 0) {
                  DefinitionsChildId o = (DefinitionsChildId) o1;
                  res = VersionUtils.getNameWithoutVersion(this).compareTo(VersionUtils.getNameWithoutVersion(o));
                  if (res == 0) {
                      res = VersionUtils.getVersion(this).compareTo(VersionUtils.getVersion(o));
                  }
                  if (res == 0) {
                      res = this.getNamespace().compareTo(o.getNamespace());
                  }
              }
              return res;
          } else {
              // comparing TOSCAcomponentIDs with non-TOSCAcomponentIDs is not
              // possible
              throw new IllegalStateException();
          }
      }
focal_method.class_method_signature: DefinitionsChildId.compareTo(GenericId o1)
focal_method.full_signature: @Override public int compareTo(GenericId o1)
focal_method.identifier: compareTo
focal_method.invocations: compareTo getName getClass getName getClass compareTo getNameWithoutVersion getNameWithoutVersion compareTo getVersion getVersion compareTo getNamespace getNamespace
focal_method.modifiers: @Override public
focal_method.parameters: (GenericId o1)
focal_method.return: int
focal_method.signature: int compareTo(GenericId o1)