public class XBRLXSDTypeDefinition
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
XBRLXSDTypeDefinition.ClsIgnoreAllReceiver
The Class ClsIgnoreAllReceiver.
|
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
Anonymous
Name of an anonymous type.
|
static javax.xml.namespace.QName |
anyURIItemType
The Constant anyURIItemType.
|
static javax.xml.namespace.QName |
base64BinaryItemType
The Constant base64BinaryItemType.
|
static javax.xml.namespace.QName |
booleanItemType
The Constant booleanItemType.
|
static javax.xml.namespace.QName |
byteItemType
The Constant byteItemType.
|
static javax.xml.namespace.QName |
dateItemType
The Constant dateItemType.
|
static javax.xml.namespace.QName |
dateTimeItemType
The Constant dateTimeItemType.
|
static javax.xml.namespace.QName |
decimalItemType
The Constant decimalItemType.
|
static javax.xml.namespace.QName |
doubleItemType
The Constant doubleItemType.
|
static javax.xml.namespace.QName |
durationItemType
The Constant durationItemType.
|
static javax.xml.namespace.QName |
floatItemType
The Constant floatItemType.
|
static javax.xml.namespace.QName |
fractionItemType
The Constant fractionItemType.
|
static javax.xml.namespace.QName |
gDayItemType
The Constant gDayItemType.
|
static javax.xml.namespace.QName |
gMonthDayItemType
The Constant gMonthDayItemType.
|
static javax.xml.namespace.QName |
gMonthItemType
The Constant gMonthItemType.
|
static javax.xml.namespace.QName |
gYearItemType
The Constant gYearItemType.
|
static javax.xml.namespace.QName |
gYearMonthItemType
The Constant gYearMonthItemType.
|
static javax.xml.namespace.QName |
hexBinaryItemType
The Constant hexBinaryItemType.
|
static javax.xml.namespace.QName |
integerItemType
The Constant integerItemType.
|
static javax.xml.namespace.QName |
intItemType
The Constant intItemType.
|
static javax.xml.namespace.QName |
ITAescapedItemType
The Constant ITAescapedItemType.
|
static javax.xml.namespace.QName |
languageItemType
The Constant languageItemType.
|
static javax.xml.namespace.QName |
longItemType
The Constant longItemType.
|
static javax.xml.namespace.QName |
monetaryItemType
The Constant monetaryItemType.
|
static javax.xml.namespace.QName |
NameItemType
The Constant NameItemType.
|
static javax.xml.namespace.QName |
NCNameItemType
The Constant NCNameItemType.
|
static javax.xml.namespace.QName |
negativeIntegerItemType
The Constant negativeIntegerItemType.
|
static javax.xml.namespace.QName |
nonmumTextBlockItemType
The Constant nonmumTextBlockItemType.
|
static javax.xml.namespace.QName |
nonNegativeIntegerItemType
The Constant nonNegativeIntegerItemType.
|
static javax.xml.namespace.QName |
nonPositiveIntegerItemType
The Constant nonPositiveIntegerItemType.
|
static javax.xml.namespace.QName |
normalizedStringItemType
The Constant normalizedStringItemType.
|
static javax.xml.namespace.QName |
positiveIntegerItemType
The Constant positiveIntegerItemType.
|
static javax.xml.namespace.QName |
pureItemType
The Constant pureItemType.
|
static javax.xml.namespace.QName |
QNameItemType
The Constant QNameItemType.
|
static javax.xml.namespace.QName |
sharesItemType
The Constant sharesItemType.
|
static javax.xml.namespace.QName |
shortItemType
The Constant shortItemType.
|
static javax.xml.namespace.QName |
stringItemType
The Constant stringItemType.
|
static javax.xml.namespace.QName |
timeItemType
The Constant timeItemType.
|
static javax.xml.namespace.QName |
tokenItemType
The Constant tokenItemType.
|
static javax.xml.namespace.QName |
unsignedByteItemType
The Constant unsignedByteItemType.
|
static javax.xml.namespace.QName |
unsignedIntItemType
The Constant unsignedIntItemType.
|
static javax.xml.namespace.QName |
unsignedLongItemType
The Constant unsignedLongItemType.
|
static javax.xml.namespace.QName |
unsignedShortItemType
The Constant unsignedShortItemType.
|
Constructor and Description |
---|
XBRLXSDTypeDefinition(DTSContainer dts,
javax.xml.namespace.QName name)
Creates a new type wrapper for a given type name.
|
XBRLXSDTypeDefinition(DTSContainer dts,
net.sf.saxon.type.SchemaType type)
Creates a new type definition from a existing schema type. the type name will be
obtained from the schema type.
|
XBRLXSDTypeDefinition(DTSContainer dts,
net.sf.saxon.type.SchemaType type,
javax.xml.namespace.QName name)
Creates a new type definition from an existing schema type and assigns the name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Equals.
|
java.util.Iterator<java.lang.String> |
filterList(java.util.regex.Pattern filterExpressionToTest)
If this type is list type (isList() returns true) this method returns
the list values as defined in the schema optionally filtering them
using a Pattern filter so only values mathing the pattern will be
returned.
|
XSDComposition |
getComposition()
Returns a XSDComposition object that represents the content of this XSDType.
|
DTSContainer |
getContainer()
Access to the container where this type has been defined.
|
javax.xml.namespace.QName |
getName()
Returns a string representation of the type
for the XBRL defined types this is the QName of the xbrli Type is returned
for other types.
|
static int |
getTypeAnnotation(net.sf.saxon.Configuration conf,
int nameCode)
Gets the type annotation.
|
static int |
getTypeAnnotation(net.sf.saxon.Configuration conf,
javax.xml.namespace.QName nodeName)
Gets the type annotation.
|
static int |
getTypeAnnotationFromTypeName(net.sf.saxon.Configuration conf,
javax.xml.namespace.QName typeName)
Gets the type annotation from type name.
|
java.lang.String |
getTypeName()
Returns a human readable name for the type name.
|
static java.lang.String |
getTypeName(javax.xml.namespace.QName qVal)
Gets the type name.
|
static java.lang.String |
getTypeName(XBRLXSDTypeDefinition type)
Returns a human readable name for the type name.
|
javax.xml.namespace.QName |
getXSDBaseSimpleType()
Search the type hierarchy to identify the schema type on top that belongs to the
XML Schema namespace and is a simple type and returns its name.
|
net.sf.saxon.type.SchemaType |
getXSDType()
Access to the surrounding schema type.
|
int |
hashCode()
Hash code.
|
boolean |
isDerivedFrom(javax.xml.namespace.QName name)
Returns true if this type is derived from the type name received as a parameter.
|
boolean |
isEnumerable()
Returns true if this data type is enumerable according with the extensible enumerations
specification.
|
boolean |
isEnumerable2()
Returns true if this data type is enumerable according with the extensible enumerations
specification.
|
boolean |
isFraction()
Helper method to check if a type definition is fraction.
|
boolean |
isList()
Returns true if the XML Type is simpleContent and the facet is
an enumeration of values.
|
boolean |
isNumeric()
Helper method to check if a type definition is numeric.
|
boolean |
isPure()
Returns true if the type is derived from pureItemType.
|
boolean |
isShares()
Returns true if the type is derived from sharesItemType.
|
java.lang.String |
toString()
To string.
|
XBRLValidationReport |
validate(XBRLFact fact,
com.saxonica.ee.validate.ContentValidator scv)
Validates a fact (item or tuple) according with the content model defined in the schema.
|
XBRLValidationReport |
validate(XBRLFactItem factItem,
com.saxonica.ee.validate.ContentValidator scv)
Validate the value of a fact item according to the data type defined in the
schemas.
|
XBRLValidationReport |
validate(XBRLFactTuple factTuple,
com.saxonica.ee.validate.ContentValidator scv)
Validate the content of a tuple fact according to the content
model defined by this object.
|
public static final javax.xml.namespace.QName Anonymous
public static final javax.xml.namespace.QName monetaryItemType
public static final javax.xml.namespace.QName NCNameItemType
public static final javax.xml.namespace.QName NameItemType
public static final javax.xml.namespace.QName languageItemType
public static final javax.xml.namespace.QName tokenItemType
public static final javax.xml.namespace.QName normalizedStringItemType
public static final javax.xml.namespace.QName gMonthItemType
public static final javax.xml.namespace.QName gDayItemType
public static final javax.xml.namespace.QName gMonthDayItemType
public static final javax.xml.namespace.QName gYearItemType
public static final javax.xml.namespace.QName gYearMonthItemType
public static final javax.xml.namespace.QName dateItemType
public static final javax.xml.namespace.QName timeItemType
public static final javax.xml.namespace.QName dateTimeItemType
public static final javax.xml.namespace.QName durationItemType
public static final javax.xml.namespace.QName QNameItemType
public static final javax.xml.namespace.QName anyURIItemType
public static final javax.xml.namespace.QName base64BinaryItemType
public static final javax.xml.namespace.QName hexBinaryItemType
public static final javax.xml.namespace.QName booleanItemType
public static final javax.xml.namespace.QName stringItemType
public static final javax.xml.namespace.QName positiveIntegerItemType
public static final javax.xml.namespace.QName unsignedByteItemType
public static final javax.xml.namespace.QName unsignedShortItemType
public static final javax.xml.namespace.QName unsignedIntItemType
public static final javax.xml.namespace.QName unsignedLongItemType
public static final javax.xml.namespace.QName nonNegativeIntegerItemType
public static final javax.xml.namespace.QName byteItemType
public static final javax.xml.namespace.QName shortItemType
public static final javax.xml.namespace.QName intItemType
public static final javax.xml.namespace.QName longItemType
public static final javax.xml.namespace.QName negativeIntegerItemType
public static final javax.xml.namespace.QName nonPositiveIntegerItemType
public static final javax.xml.namespace.QName integerItemType
public static final javax.xml.namespace.QName pureItemType
public static final javax.xml.namespace.QName sharesItemType
public static final javax.xml.namespace.QName doubleItemType
public static final javax.xml.namespace.QName floatItemType
public static final javax.xml.namespace.QName decimalItemType
public static final javax.xml.namespace.QName fractionItemType
public static final javax.xml.namespace.QName ITAescapedItemType
public static final javax.xml.namespace.QName nonmumTextBlockItemType
public XBRLXSDTypeDefinition(DTSContainer dts, net.sf.saxon.type.SchemaType type)
dts
- the dtstype
- the typepublic XBRLXSDTypeDefinition(DTSContainer dts, net.sf.saxon.type.SchemaType type, javax.xml.namespace.QName name)
dts
- the dtstype
- the typename
- the namepublic XBRLXSDTypeDefinition(DTSContainer dts, javax.xml.namespace.QName name)
dts
- the dtsname
- the namepublic DTSContainer getContainer()
public net.sf.saxon.type.SchemaType getXSDType()
public javax.xml.namespace.QName getName()
public javax.xml.namespace.QName getXSDBaseSimpleType()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the otherpublic int hashCode()
hashCode
in class java.lang.Object
public XSDComposition getComposition()
Type MUST be complex type only. If it is not complex type it returns null.
XSDComposition may not be equal to the nodes representing the ALL, CHOICE or SEQUENCE in the XML Schema.
XBRLValidationException
public XBRLValidationReport validate(XBRLFactItem factItem, com.saxonica.ee.validate.ContentValidator scv)
factItem
- the fact itemscv
- the scvpublic XBRLValidationReport validate(XBRLFact fact, com.saxonica.ee.validate.ContentValidator scv)
fact
- the factscv
- the scvpublic XBRLValidationReport validate(XBRLFactTuple factTuple, com.saxonica.ee.validate.ContentValidator scv)
factTuple
- the fact tuplescv
- the scvpublic boolean isDerivedFrom(javax.xml.namespace.QName name)
name
- a type namepublic boolean isList()
public boolean isNumeric()
public boolean isFraction()
public boolean isPure()
public boolean isShares()
public boolean isEnumerable()
public boolean isEnumerable2()
public static java.lang.String getTypeName(XBRLXSDTypeDefinition type)
type
- the typepublic static java.lang.String getTypeName(javax.xml.namespace.QName qVal)
qVal
- the q valpublic java.lang.String getTypeName()
public java.util.Iterator<java.lang.String> filterList(java.util.regex.Pattern filterExpressionToTest)
filterExpressionToTest
- pattern to match values with, if null
all list values are returnedpublic static int getTypeAnnotation(net.sf.saxon.Configuration conf, javax.xml.namespace.QName nodeName)
conf
- the confnodeName
- the node namepublic static int getTypeAnnotationFromTypeName(net.sf.saxon.Configuration conf, javax.xml.namespace.QName typeName)
conf
- the conftypeName
- the type namepublic static int getTypeAnnotation(net.sf.saxon.Configuration conf, int nameCode)
conf
- the confnameCode
- the name codeCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa