Skip to content

Commit

Permalink
- correct typo in @description
Browse files Browse the repository at this point in the history
- add @source (for consistency, though not necessary server-side)
  • Loading branch information
plutext committed Aug 21, 2013
1 parent a371f73 commit 6560a61
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
45 changes: 36 additions & 9 deletions src/main/java/org/opendope/conditions/Condition.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
* </choice>
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="descrption" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="comments" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="source" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
Expand Down Expand Up @@ -77,10 +78,12 @@ public class Condition implements Evaluable {
protected String id;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "descrption")
protected String descrption;
@XmlAttribute(name = "description")
protected String description;
@XmlAttribute(name = "comments")
protected String comments;
@XmlAttribute(name = "source")
protected String source;

/**
* Gets the value of the particle property.
Expand Down Expand Up @@ -212,27 +215,27 @@ public void setName(String value) {
}

/**
* Gets the value of the descrption property.
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescrption() {
return descrption;
public String getDescription() {
return description;
}

/**
* Sets the value of the descrption property.
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescrption(String value) {
this.descrption = value;
public void setDescription(String value) {
this.description = value;
}

/**
Expand All @@ -259,4 +262,28 @@ public void setComments(String value) {
this.comments = value;
}

/**
* Gets the value of the source property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSource() {
return source;
}

/**
* Sets the value of the source property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSource(String value) {
this.source = value;
}

}
4 changes: 3 additions & 1 deletion xsd/OpenDoPE/conditions.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ JAXB INSTRUCTIONS
</xs:choice>
<xs:attribute name="id" type="xs:ID" use="required" />
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="descrption" type="xs:string" />
<xs:attribute name="description" type="xs:string" />
<xs:attribute name="comments" type="xs:string" />
<xs:attribute name="source" type="xs:string" use="optional" />
<!-- if this question is in the library, the store item id of the original question part -->
</xs:complexType>
</xs:element>

Expand Down

0 comments on commit 6560a61

Please sign in to comment.