1 7 8 package org.openejb.alt.config.ejb11; 9 10 14 import java.io.IOException ; 15 import java.io.Reader ; 16 import java.io.Serializable ; 17 import java.io.Writer ; 18 import org.exolab.castor.xml.MarshalException; 19 import org.exolab.castor.xml.Marshaller; 20 import org.exolab.castor.xml.Unmarshaller; 21 import org.exolab.castor.xml.ValidationException; 22 import org.xml.sax.ContentHandler ; 23 24 29 public class SecurityRoleRef implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _id; 40 41 44 private java.lang.String _description; 45 46 49 private java.lang.String _roleName; 50 51 54 private java.lang.String _roleLink; 55 56 57 61 public SecurityRoleRef() { 62 super(); 63 } 65 66 70 75 public java.lang.String getDescription() 76 { 77 return this._description; 78 } 80 85 public java.lang.String getId() 86 { 87 return this._id; 88 } 90 95 public java.lang.String getRoleLink() 96 { 97 return this._roleLink; 98 } 100 105 public java.lang.String getRoleName() 106 { 107 return this._roleName; 108 } 110 113 public boolean isValid() 114 { 115 try { 116 validate(); 117 } 118 catch (org.exolab.castor.xml.ValidationException vex) { 119 return false; 120 } 121 return true; 122 } 124 129 public void marshal(java.io.Writer out) 130 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 131 { 132 133 Marshaller.marshal(this, out); 134 } 136 141 public void marshal(org.xml.sax.ContentHandler handler) 142 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 143 { 144 145 Marshaller.marshal(this, handler); 146 } 148 153 public void setDescription(java.lang.String description) 154 { 155 this._description = description; 156 } 158 163 public void setId(java.lang.String id) 164 { 165 this._id = id; 166 } 168 173 public void setRoleLink(java.lang.String roleLink) 174 { 175 this._roleLink = roleLink; 176 } 178 183 public void setRoleName(java.lang.String roleName) 184 { 185 this._roleName = roleName; 186 } 188 193 public static java.lang.Object unmarshal(java.io.Reader reader) 194 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 195 { 196 return (org.openejb.alt.config.ejb11.SecurityRoleRef) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.SecurityRoleRef.class, reader); 197 } 199 202 public void validate() 203 throws org.exolab.castor.xml.ValidationException 204 { 205 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 206 validator.validate(this); 207 } 209 } 210 | Popular Tags |