1 7 8 package org.apache.jetspeed.xml.api.jcm; 9 10 14 import java.io.Reader ; 15 import java.io.Serializable ; 16 import java.io.Writer ; 17 import org.exolab.castor.xml.*; 18 import org.exolab.castor.xml.MarshalException; 19 import org.exolab.castor.xml.ValidationException; 20 import org.xml.sax.DocumentHandler ; 21 22 26 public class Textinput implements java.io.Serializable { 27 28 29 33 private java.lang.String _title; 34 35 private java.lang.String _link; 36 37 private java.lang.String _description; 38 39 private java.lang.String _name; 40 41 42 46 public Textinput() { 47 super(); 48 } 50 51 55 57 public java.lang.String getDescription() 58 { 59 return this._description; 60 } 62 64 public java.lang.String getLink() 65 { 66 return this._link; 67 } 69 71 public java.lang.String getName() 72 { 73 return this._name; 74 } 76 78 public java.lang.String getTitle() 79 { 80 return this._title; 81 } 83 85 public boolean isValid() 86 { 87 try { 88 validate(); 89 } 90 catch (org.exolab.castor.xml.ValidationException vex) { 91 return false; 92 } 93 return true; 94 } 96 100 public void marshal(java.io.Writer out) 101 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 102 { 103 104 Marshaller.marshal(this, out); 105 } 107 111 public void marshal(org.xml.sax.DocumentHandler handler) 112 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 113 { 114 115 Marshaller.marshal(this, handler); 116 } 118 122 public void setDescription(java.lang.String description) 123 { 124 this._description = description; 125 } 127 131 public void setLink(java.lang.String link) 132 { 133 this._link = link; 134 } 136 140 public void setName(java.lang.String name) 141 { 142 this._name = name; 143 } 145 149 public void setTitle(java.lang.String title) 150 { 151 this._title = title; 152 } 154 158 public static org.apache.jetspeed.xml.api.jcm.Textinput unmarshal(java.io.Reader reader) 159 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 160 { 161 return (org.apache.jetspeed.xml.api.jcm.Textinput) Unmarshaller.unmarshal(org.apache.jetspeed.xml.api.jcm.Textinput.class, reader); 162 } 164 166 public void validate() 167 throws org.exolab.castor.xml.ValidationException 168 { 169 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 170 validator.validate(this); 171 } 173 } 174 | Popular Tags |