com.ihr.xbrl.om.taxonomy
Class XBRLXSDTypeDefinition

java.lang.Object
  extended by com.ihr.xbrl.om.taxonomy.XBRLXSDTypeDefinition
All Implemented Interfaces:
java.io.Serializable

public class XBRLXSDTypeDefinition
extends java.lang.Object
implements java.io.Serializable

This is a wrapper class over XSDTypeDefinition objects that implements the equals method

Author:
Ignacio
See Also:
Serialized Form

Nested Class Summary
static class XBRLXSDTypeDefinition.ClsIgnoreAllReceiver
           
 
Field Summary
static javax.xml.namespace.QName Anonymous
          Name of an anonymous type
static javax.xml.namespace.QName anyURIItemType
           
static javax.xml.namespace.QName base64BinaryItemType
           
static javax.xml.namespace.QName booleanItemType
           
static javax.xml.namespace.QName byteItemType
           
static javax.xml.namespace.QName dateItemType
           
static javax.xml.namespace.QName dateTimeItemType
           
static javax.xml.namespace.QName decimalItemType
           
static javax.xml.namespace.QName doubleItemType
           
static javax.xml.namespace.QName durationItemType
           
static javax.xml.namespace.QName floatItemType
           
static javax.xml.namespace.QName gDayItemType
           
static javax.xml.namespace.QName gMonthDayItemType
           
static javax.xml.namespace.QName gMonthItemType
           
static javax.xml.namespace.QName gYearItemType
           
static javax.xml.namespace.QName gYearMonthItemType
           
static javax.xml.namespace.QName hexBinaryItemType
           
static javax.xml.namespace.QName integerItemType
           
static javax.xml.namespace.QName intItemType
           
static javax.xml.namespace.QName ITAescapedItemType
           
static javax.xml.namespace.QName languageItemType
           
static javax.xml.namespace.QName longItemType
           
static javax.xml.namespace.QName monetaryItemType
           
static javax.xml.namespace.QName NameItemType
           
static javax.xml.namespace.QName NCNameItemType
           
static javax.xml.namespace.QName negativeIntegerItemType
           
static javax.xml.namespace.QName nonNegativeIntegerItemType
           
static javax.xml.namespace.QName nonPositiveIntegerItemType
           
static javax.xml.namespace.QName normalizedStringItemType
           
static javax.xml.namespace.QName positiveIntegerItemType
           
static javax.xml.namespace.QName pureItemType
           
static javax.xml.namespace.QName QNameItemType
           
static javax.xml.namespace.QName sharesItemType
           
static javax.xml.namespace.QName shortItemType
           
static javax.xml.namespace.QName stringItemType
           
static javax.xml.namespace.QName timeItemType
           
static javax.xml.namespace.QName tokenItemType
           
static javax.xml.namespace.QName unsignedByteItemType
           
static javax.xml.namespace.QName unsignedIntItemType
           
static javax.xml.namespace.QName unsignedLongItemType
           
static javax.xml.namespace.QName unsignedShortItemType
           
 
Constructor Summary
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.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 XSDComposition getComposition()
          Returns a XSDComposition object that represents the content of this XSDType.
 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.
 net.sf.saxon.type.SchemaType getXSDType()
          Access to the surrounding schema type.
 boolean isDerivedFrom(javax.xml.namespace.QName name)
          Returns true if this type is derived from the type name received as a parameter
 java.lang.String toString()
           
 XBRLValidationReport validate(XBRLFactItem factItem)
          Validate the value of a fact item according to the data type defined in the schemas
 XBRLValidationReport validate(XBRLFactTuple factTuple)
          Validate the content of a tuple fact according to the content model defined by this object.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Anonymous

public static final javax.xml.namespace.QName Anonymous
Name of an anonymous type


monetaryItemType

public static final javax.xml.namespace.QName monetaryItemType

NCNameItemType

public static final javax.xml.namespace.QName NCNameItemType

NameItemType

public static final javax.xml.namespace.QName NameItemType

languageItemType

public static final javax.xml.namespace.QName languageItemType

tokenItemType

public static final javax.xml.namespace.QName tokenItemType

normalizedStringItemType

public static final javax.xml.namespace.QName normalizedStringItemType

gMonthItemType

public static final javax.xml.namespace.QName gMonthItemType

gDayItemType

public static final javax.xml.namespace.QName gDayItemType

gMonthDayItemType

public static final javax.xml.namespace.QName gMonthDayItemType

gYearItemType

public static final javax.xml.namespace.QName gYearItemType

gYearMonthItemType

public static final javax.xml.namespace.QName gYearMonthItemType

dateItemType

public static final javax.xml.namespace.QName dateItemType

timeItemType

public static final javax.xml.namespace.QName timeItemType

dateTimeItemType

public static final javax.xml.namespace.QName dateTimeItemType

durationItemType

public static final javax.xml.namespace.QName durationItemType

QNameItemType

public static final javax.xml.namespace.QName QNameItemType

anyURIItemType

public static final javax.xml.namespace.QName anyURIItemType

base64BinaryItemType

public static final javax.xml.namespace.QName base64BinaryItemType

hexBinaryItemType

public static final javax.xml.namespace.QName hexBinaryItemType

booleanItemType

public static final javax.xml.namespace.QName booleanItemType

stringItemType

public static final javax.xml.namespace.QName stringItemType

positiveIntegerItemType

public static final javax.xml.namespace.QName positiveIntegerItemType

unsignedByteItemType

public static final javax.xml.namespace.QName unsignedByteItemType

unsignedShortItemType

public static final javax.xml.namespace.QName unsignedShortItemType

unsignedIntItemType

public static final javax.xml.namespace.QName unsignedIntItemType

unsignedLongItemType

public static final javax.xml.namespace.QName unsignedLongItemType

nonNegativeIntegerItemType

public static final javax.xml.namespace.QName nonNegativeIntegerItemType

byteItemType

public static final javax.xml.namespace.QName byteItemType

shortItemType

public static final javax.xml.namespace.QName shortItemType

intItemType

public static final javax.xml.namespace.QName intItemType

longItemType

public static final javax.xml.namespace.QName longItemType

negativeIntegerItemType

public static final javax.xml.namespace.QName negativeIntegerItemType

nonPositiveIntegerItemType

public static final javax.xml.namespace.QName nonPositiveIntegerItemType

integerItemType

public static final javax.xml.namespace.QName integerItemType

pureItemType

public static final javax.xml.namespace.QName pureItemType

sharesItemType

public static final javax.xml.namespace.QName sharesItemType

doubleItemType

public static final javax.xml.namespace.QName doubleItemType

floatItemType

public static final javax.xml.namespace.QName floatItemType

decimalItemType

public static final javax.xml.namespace.QName decimalItemType

ITAescapedItemType

public static final javax.xml.namespace.QName ITAescapedItemType
Constructor Detail

XBRLXSDTypeDefinition

public 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. If the type is global then the name will be a global name. if the type is local then the Anonymous name will be returned.

Parameters:
dts -
type -

XBRLXSDTypeDefinition

public 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. Make sure the name corresponds to the global type name before using this constructor.

Parameters:
dts -
type -
name -

XBRLXSDTypeDefinition

public XBRLXSDTypeDefinition(DTSContainer dts,
                             javax.xml.namespace.QName name)
Creates a new type wrapper for a given type name. This constructor can be used when the schema type is new or is being created.

Parameters:
dts -
name -
Method Detail

getXSDType

public net.sf.saxon.type.SchemaType getXSDType()
Access to the surrounding schema type. If this type definition has not been created using a SchemaType as a parameter then this method throws an UnsupportedOperationException because the schema type can only be obtained from XML source. The Type name can be obtained as a QName instead.

Returns:
SchemaType

getName

public 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. If the type has a QName, then the QName is used If the type is anonymous then the QName "Anonymous" in the "" namespace is returned

Returns:
QName

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

getComposition

public XSDComposition getComposition()
Returns a XSDComposition object that represents the content of this XSDType.

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.

Returns:
XSDComposition
Throws:
XBRLValidationException

validate

public XBRLValidationReport validate(XBRLFactItem factItem)
Validate the value of a fact item according to the data type defined in the schemas

Parameters:
factItem -

validate

public XBRLValidationReport validate(XBRLFactTuple factTuple)
Validate the content of a tuple fact according to the content model defined by this object.

Parameters:
factTuple -
Throws:
XBRLValidationException

isDerivedFrom

public boolean isDerivedFrom(javax.xml.namespace.QName name)
Returns true if this type is derived from the type name received as a parameter

Parameters:
name - a type name


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa