public void valueFrom(DefaultJAXBAttribute jaxbAttribute) { super.valueFrom(jaxbAttribute); String value = (String) jaxbAttribute.getValue(); if (null != value) { this.setBooleanValue(new Boolean(value)); } }
@Override public DefaultJAXBAttribute getJAXBAttribute(String langCode) { if (null == this.getValue()) { return null; } DefaultJAXBAttribute jaxbAttribute = this.getJAXBAttributeInstance(); jaxbAttribute.setDescription(this.getDescription()); jaxbAttribute.setName(this.getName()); jaxbAttribute.setType(this.getType()); jaxbAttribute.setValue(this.getJAXBValue(langCode)); if (null != this.getRoles() && this.getRoles().length > 0) { List<String> roles = Arrays.asList(this.getRoles()); jaxbAttribute.setRoles(roles); } return jaxbAttribute; }
@Override public void valueFrom(DefaultJAXBAttribute jaxbAttribute) { this.setName(jaxbAttribute.getName()); }