Re: [Simple-support] Attribute field for "default" field
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-09-22 10:29:49
|
Here are some ways @Attributeprivate String x = "default value" or @Attribute(empty="default value")private String x; // x = "default value" if it is null when writing Niall --- On Wed, 21/9/11, A K <ak....@gm...> wrote: From: A K <ak....@gm...> Subject: [Simple-support] Attribute field for "default" field To: sim...@li... Received: Wednesday, 21 September, 2011, 11:04 PM Hi, I have the below declaration for the attrubute. <xs:attribute type="xs:int" use="optional" default="50000" name="tagname1"/> <xs:attribute type="xs:int" use="optional" default="1" name="tagname2"/> xs:attribute type="xs:boolean" use="optional" default="true" name="tagname3" The way we provide annotations is as below: @Attribute(required=false) private Integer tagname1; @Attribute(required=false) private Integer tagname2; @Attribute(required=false) private Boolean tagname3; Does default="50000" has any significance? is there any field in attribute to provide "default" data, like we give "required=false" for "use=optional"? -----Inline Attachment Follows----- ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |