05c7ce1a30b141fe8a5eaac2f7791912db475783
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.repository / src / main / java / org / eclipse / winery / repository / export / DummyParentForGeneratedXSDRef.java
1 /*******************************************************************************
2  * Copyright (c) 2012-2013 University of Stuttgart.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     Oliver Kopp - initial API and implementation
11  *******************************************************************************/
12 package org.eclipse.winery.repository.export;
13
14 import org.eclipse.winery.common.ids.GenericId;
15 import org.eclipse.winery.common.ids.XMLId;
16
17 public class DummyParentForGeneratedXSDRef extends GenericId {
18         
19         protected DummyParentForGeneratedXSDRef() {
20                 super(new XMLId("dummy", false));
21         }
22         
23         @Override
24         public int compareTo(GenericId o) {
25                 throw new IllegalStateException("Should never be called.");
26         }
27         
28         @Override
29         public GenericId getParent() {
30                 throw new IllegalStateException("Should never be called.");
31         }
32         
33         @Override
34         public boolean equals(Object obj) {
35                 return (obj instanceof DummyParentForGeneratedXSDRef);
36         }
37         
38         @Override
39         public int hashCode() {
40                 return 0;
41         }
42         
43 }