Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial hierarchy/overloading support for XSD
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1965 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
6 changed files
with
119 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
impl/src/main/java/org/jboss/webbeans/xsd/model/FieldModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.jboss.webbeans.xsd.model; | ||
|
||
public class FieldModel extends NamedModel | ||
{ | ||
protected String type; | ||
|
||
public FieldModel(String name, String type) | ||
{ | ||
super(name); | ||
this.type = type; | ||
} | ||
|
||
public String getType() | ||
{ | ||
return type; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object other) | ||
{ | ||
FieldModel otherModel = (FieldModel) other; | ||
return name.equals(otherModel.getName()) && type.equals(otherModel.getType()); | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return name.hashCode() + type.hashCode(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
impl/src/main/java/org/jboss/webbeans/xsd/model/ParameterFieldModel.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
impl/src/main/java/org/jboss/webbeans/xsd/model/ParameterModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.jboss.webbeans.xsd.model; | ||
|
||
public class ParameterModel extends FieldModel | ||
{ | ||
|
||
public ParameterModel(String name, String type) | ||
{ | ||
super(name, type); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object other) | ||
{ | ||
ParameterModel otherModel = (ParameterModel) other; | ||
return type.equals(otherModel.getType()); | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return type.hashCode(); | ||
} | ||
|
||
} |