com.sun.xml.internal.txw2.annotation.XmlAttribute Java Examples
The following examples show how to use
com.sun.xml.internal.txw2.annotation.XmlAttribute.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContainerElement.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Writes an attribute. */ private void addAttribute(XmlAttribute xa, Method method, Object[] args) { assert xa!=null; checkStartTag(); String localName = xa.value(); if(xa.value().length()==0) localName = method.getName(); _attribute(xa.ns(),localName,args); }
Example #2
Source File: ContainerElement.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if(method.getDeclaringClass()==TypedXmlWriter.class || method.getDeclaringClass()==Object.class) { // forward to myself try { return method.invoke(this,args); } catch (InvocationTargetException e) { throw e.getTargetException(); } } XmlAttribute xa = method.getAnnotation(XmlAttribute.class); XmlValue xv = method.getAnnotation(XmlValue.class); XmlElement xe = method.getAnnotation(XmlElement.class); if(xa!=null) { if(xv!=null || xe!=null) throw new IllegalAnnotationException(method.toString()); addAttribute(xa,method,args); return proxy; // allow method chaining } if(xv!=null) { if(xe!=null) throw new IllegalAnnotationException(method.toString()); _pcdata(args); return proxy; // allow method chaining } return addElement(xe,method,args); }
Example #3
Source File: Import.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Import namespace(String value);
Example #4
Source File: Occurs.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Occurs minOccurs(int value);
Example #5
Source File: ComplexType.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute("abstract") public ComplexType _abstract(boolean value);
Example #6
Source File: Documentation.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute(ns = "http://www.w3.org/XML/1998/namespace") public Documentation lang(String value);
Example #7
Source File: TopLevelAttribute.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public TopLevelAttribute name(String value);
Example #8
Source File: Documentation.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Documentation source(String value);
Example #9
Source File: SimpleType.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public SimpleType name(String value);
Example #10
Source File: SimpleType.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute("final") public SimpleType _final(String[] value);
Example #11
Source File: SimpleType.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute("final") public SimpleType _final(String value);
Example #12
Source File: Schema.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Schema blockDefault(String value);
Example #13
Source File: Annotation.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Annotation id(String value);
Example #14
Source File: ComplexContent.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public ComplexContent mixed(boolean value);
Example #15
Source File: ExtensionType.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public ExtensionType base(QName value);
Example #16
Source File: Element.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Element type(QName value);
Example #17
Source File: Schema.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Schema version(String value);
Example #18
Source File: ComplexTypeModel.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public ComplexTypeModel mixed(boolean value);
Example #19
Source File: FixedOrDefault.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public FixedOrDefault fixed(String value);
Example #20
Source File: Schema.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Schema blockDefault(String[] value);
Example #21
Source File: WsgenTool.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute void location(String filePath);
Example #22
Source File: Union.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Union memberTypes(QName[] value);
Example #23
Source File: Schema.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute(ns = "http://www.w3.org/XML/1998/namespace") public Schema lang(String value);
Example #24
Source File: BodyType.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public com.sun.xml.internal.ws.wsdl.writer.document.soap.BodyType use(String value);
Example #25
Source File: Wildcard.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Wildcard namespace(String value);
Example #26
Source File: LocalAttribute.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public LocalAttribute ref(QName value);
Example #27
Source File: SOAPFault.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public SOAPFault name(String value);
Example #28
Source File: LocalElement.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public LocalElement name(String value);
Example #29
Source File: Occurs.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public Occurs maxOccurs(String value);
Example #30
Source File: SOAPOperation.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@XmlAttribute public com.sun.xml.internal.ws.wsdl.writer.document.soap.SOAPOperation style(String value);