public class XSDAttributeDefinition
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | OPTIONALThe Constant OPTIONAL. | 
| static int | PROHIBITEDThe Constant PROHIBITED. | 
| static int | REQUIREDThe Constant REQUIRED. | 
| Constructor and Description | 
|---|
| XSDAttributeDefinition(DTSContainer dts,
                      net.sf.saxon.s9api.XdmNode node)Instantiates a new XSD attribute definition. | 
| XSDAttributeDefinition(java.lang.String name,
                      java.lang.String use,
                      javax.xml.namespace.QName type,
                      java.lang.String _default,
                      java.lang.String fixed,
                      java.lang.String form,
                      java.lang.String id,
                      javax.xml.namespace.QName ref)Creates a new XSDAttribute definition some of the attributes are optional
 and can be reported using null. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj)Equals. | 
| XMLFragment | generateElement(DTSContainer dts,
               net.sf.saxon.om.NamespaceBinding xsNs)Creates an element definition that represents this attribute
 definition in an XML Schema. | 
| java.lang.String | getDefault()Gets the default. | 
| java.lang.String | getFixed()Gets the fixed. | 
| java.lang.String | getForm()Gets the form. | 
| java.lang.String | getId()Gets the id. | 
| java.lang.String | getName()Gets the name. | 
| javax.xml.namespace.QName | getRef()Gets the ref. | 
| javax.xml.namespace.QName | getType()Gets the type. | 
| java.lang.String | getUse()Gets the use. | 
| static java.lang.String | getUse(java.lang.Integer use)Gets the use. | 
| static java.lang.Integer | getUse(java.lang.String strUse)Gets the use. | 
| int | hashCode()Hash code. | 
| void | setDefault(java.lang.String _default)Sets the default. | 
| void | setFixed(java.lang.String fixed)Sets the fixed. | 
| void | setForm(java.lang.String form)Sets the form. | 
| void | setId(java.lang.String id)Sets the id. | 
| void | setName(java.lang.String name)Sets the name. | 
| void | setRef(javax.xml.namespace.QName ref)Sets the ref. | 
| void | setType(javax.xml.namespace.QName type)Sets the type. | 
| void | setUse(java.lang.String use)Sets the use. | 
public static final int OPTIONAL
public static final int PROHIBITED
public static final int REQUIRED
public XSDAttributeDefinition(java.lang.String name,
                              java.lang.String use,
                              javax.xml.namespace.QName type,
                              java.lang.String _default,
                              java.lang.String fixed,
                              java.lang.String form,
                              java.lang.String id,
                              javax.xml.namespace.QName ref)
                       throws XBRLInconsistentDTSException
name - the nameuse - the usetype - the type_default - the _defaultfixed - the fixedform - the formid - the idref - the refXBRLInconsistentDTSException - raised if there are inconsistencies in the definition of the attributepublic XSDAttributeDefinition(DTSContainer dts, net.sf.saxon.s9api.XdmNode node) throws XBRLInconsistentDTSException
dts - the dtsnode - the nodeXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic static java.lang.Integer getUse(java.lang.String strUse)
                                throws java.lang.IllegalArgumentException
strUse - the str usejava.lang.IllegalArgumentException - the illegal argument exceptionpublic static java.lang.String getUse(java.lang.Integer use)
use - the usepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the objpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the name to setpublic java.lang.String getUse()
public void setUse(java.lang.String use)
use - the use to setpublic javax.xml.namespace.QName getType()
public void setType(javax.xml.namespace.QName type)
type - the type to setpublic java.lang.String getDefault()
public void setDefault(java.lang.String _default)
_default - the _default to setpublic java.lang.String getFixed()
public void setFixed(java.lang.String fixed)
fixed - the fixed to setpublic java.lang.String getForm()
public void setForm(java.lang.String form)
form - the form to setpublic java.lang.String getId()
public void setId(java.lang.String id)
id - the id to setpublic javax.xml.namespace.QName getRef()
public void setRef(javax.xml.namespace.QName ref)
ref - the ref to setpublic XMLFragment generateElement(DTSContainer dts, net.sf.saxon.om.NamespaceBinding xsNs) throws XBRLSerializationException
dts - the dtsxsNs - Namespace so no need to define it multiple timesXBRLSerializationException - the XBRL serialization exceptionCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa