001 /* 002 * XML Type: pathType 003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/application-2.0 004 * Java type: org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.j2ee.impl; 009 /** 010 * An XML pathType(@http://geronimo.apache.org/xml/ns/j2ee/application-2.0). 011 * 012 * This is an atomic type that is a restriction of org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType. 013 */ 014 public class GerPathTypeImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType 015 { 016 017 public GerPathTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType, true); 020 } 021 022 protected GerPathTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b) 023 { 024 super(sType, b); 025 } 026 027 private static final javax.xml.namespace.QName ID$0 = 028 new javax.xml.namespace.QName("", "id"); 029 030 031 /** 032 * Gets the "id" attribute 033 */ 034 public java.lang.String getId() 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(ID$0); 041 if (target == null) 042 { 043 return null; 044 } 045 return target.getStringValue(); 046 } 047 } 048 049 /** 050 * Gets (as xml) the "id" attribute 051 */ 052 public org.apache.xmlbeans.XmlID xgetId() 053 { 054 synchronized (monitor()) 055 { 056 check_orphaned(); 057 org.apache.xmlbeans.XmlID target = null; 058 target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$0); 059 return target; 060 } 061 } 062 063 /** 064 * True if has "id" attribute 065 */ 066 public boolean isSetId() 067 { 068 synchronized (monitor()) 069 { 070 check_orphaned(); 071 return get_store().find_attribute_user(ID$0) != null; 072 } 073 } 074 075 /** 076 * Sets the "id" attribute 077 */ 078 public void setId(java.lang.String id) 079 { 080 synchronized (monitor()) 081 { 082 check_orphaned(); 083 org.apache.xmlbeans.SimpleValue target = null; 084 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0); 085 if (target == null) 086 { 087 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$0); 088 } 089 target.setStringValue(id); 090 } 091 } 092 093 /** 094 * Sets (as xml) the "id" attribute 095 */ 096 public void xsetId(org.apache.xmlbeans.XmlID id) 097 { 098 synchronized (monitor()) 099 { 100 check_orphaned(); 101 org.apache.xmlbeans.XmlID target = null; 102 target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$0); 103 if (target == null) 104 { 105 target = (org.apache.xmlbeans.XmlID)get_store().add_attribute_user(ID$0); 106 } 107 target.set(id); 108 } 109 } 110 111 /** 112 * Unsets the "id" attribute 113 */ 114 public void unsetId() 115 { 116 synchronized (monitor()) 117 { 118 check_orphaned(); 119 get_store().remove_attribute(ID$0); 120 } 121 } 122 }