package eu.ydp.empiria.player.client.module.connection.structure;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;

import eu.ydp.empiria.player.client.module.components.multiplepair.structure.PairChoiceBean;

@XmlRootElement(name="simpleAssociableChoice")
@XmlAccessorType(XmlAccessType.FIELD)
public class SimpleAssociableChoiceBean implements PairChoiceBean {  

	@XmlAttribute
	private String identifier;
	
	@XmlAttribute
	private int matchMax;
	
	@XmlValue
	private String content;
	
	@XmlAttribute
	private boolean fixed;

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public int getMatchMax() {
		return matchMax;
	}

	public void setMatchMax(int matchMax) {
		this.matchMax = matchMax;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public boolean isFixed() {
		return fixed;
	}

	public void setFixed(boolean fixed) {
		this.fixed = fixed;
	}
}

@@ -300,24 +300,214 @@
 .XmlValue;%0D%0A
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;%0D%0A%0D%0Aimport com.peterfranza.gwt.jaxb.client.parser.utils.XMLContent;%0D%0A%0D%0Aimport eu.ydp.empiria.player.client.XMLContentTypeAdapter;
 %0D%0Aimport eu.
@@ -750,10 +750,8 @@
 an %7B
-  
 %0D%0A%0D%0A
@@ -795,17 +795,16 @@
 ifier;%0D%0A
-%09
 %0D%0A%09@XmlA
@@ -837,17 +837,16 @@
 chMax;%0D%0A
-%09
 %0D%0A%09@XmlV
@@ -856,34 +856,98 @@
 e%0D%0A%09
-private String c
+@XmlJavaTypeAdapter(value=XMLContentTypeAdapter.class)%0D%0A%09private XMLContent xmlC
 ontent
+ 
 ;%0D%0A
-%09
 %0D%0A%09@
@@ -1263,25 +1263,24 @@
 chMax;%0D%0A%09%7D%0D%0A
-%09
 %0D%0A%09public St
@@ -1277,26 +1277,33 @@
 %09public 
-String
+XMLContent
  get
+Xml
 Content(
@@ -1316,17 +1316,20 @@
 %09return 
-c
+xmlC
 ontent;%0D
@@ -1351,24 +1351,27 @@
 void set
+Xml
 Content(
 String c
@@ -1362,22 +1362,26 @@
 Content(
-String
+XMLContent
  content
@@ -1392,17 +1392,20 @@
 %0A%09%09this.
-c
+xmlC
 ontent =
@@ -1419,17 +1419,16 @@
 t;%0D%0A%09%7D%0D%0A
-%09
 %0D%0A%09publi

add simple access to module xml bug 72518