コード例 #1
0
 public void valueFrom(DefaultJAXBAttribute jaxbAttribute) {
   super.valueFrom(jaxbAttribute);
   String value = (String) jaxbAttribute.getValue();
   if (null != value) {
     this.setBooleanValue(new Boolean(value));
   }
 }
コード例 #2
0
 @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;
 }
コード例 #3
0
 @Override
 public void valueFrom(DefaultJAXBAttribute jaxbAttribute) {
   this.setName(jaxbAttribute.getName());
 }