001 /* 002 * XML Type: optionType 003 * Namespace: http://geronimo.apache.org/xml/ns/loginconfig-1.2 004 * Java type: org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.loginconfig.impl; 009 /** 010 * An XML optionType(@http://geronimo.apache.org/xml/ns/loginconfig-1.2). 011 * 012 * This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString. 013 */ 014 public class GerOptionTypeImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements org.apache.geronimo.xbeans.geronimo.loginconfig.GerOptionType 015 { 016 017 public GerOptionTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType, true); 020 } 021 022 protected GerOptionTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b) 023 { 024 super(sType, b); 025 } 026 027 private static final javax.xml.namespace.QName NAME$0 = 028 new javax.xml.namespace.QName("", "name"); 029 030 031 /** 032 * Gets the "name" attribute 033 */ 034 public java.lang.String getName() 035 { 036 synchronized (monitor()) 037 { 038 check_orphaned(); 039 org.apache.xmlbeans.SimpleValue target = null; 040 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0); 041 if (target == null) 042 { 043 return null; 044 } 045 return target.getStringValue(); 046 } 047 } 048 049 /** 050 * Gets (as xml) the "name" attribute 051 */ 052 public org.apache.xmlbeans.XmlString xgetName() 053 { 054 synchronized (monitor()) 055 { 056 check_orphaned(); 057 org.apache.xmlbeans.XmlString target = null; 058 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0); 059 return target; 060 } 061 } 062 063 /** 064 * Sets the "name" attribute 065 */ 066 public void setName(java.lang.String name) 067 { 068 synchronized (monitor()) 069 { 070 check_orphaned(); 071 org.apache.xmlbeans.SimpleValue target = null; 072 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0); 073 if (target == null) 074 { 075 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0); 076 } 077 target.setStringValue(name); 078 } 079 } 080 081 /** 082 * Sets (as xml) the "name" attribute 083 */ 084 public void xsetName(org.apache.xmlbeans.XmlString name) 085 { 086 synchronized (monitor()) 087 { 088 check_orphaned(); 089 org.apache.xmlbeans.XmlString target = null; 090 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0); 091 if (target == null) 092 { 093 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$0); 094 } 095 target.set(name); 096 } 097 } 098 }