/*
         * Get Xerces "schema type" short code, given a type definition instance object. PsychoPath engine uses few custom
         * type 'short codes', to support XML Schema 1.1.
         */
        public static short getXSDTypeShortCode(TypeDefinition typeDef)
        {
            // dummy type "short code" initializer
            short typeCode = -100;

            if ("dayTimeDuration".Equals(typeDef.Name))
            {
                typeCode = DAYTIMEDURATION_DT;
            }
            else if ("yearMonthDuration".Equals(typeDef.Name))
            {
                typeCode = YEARMONTHDURATION_DT;
            }

            return((typeCode != -100) ? typeCode : ((SimpleTypeDefinition)typeDef).BuiltInKind);
        }         // getXSDTypeShortCode
 public SimpleAtomicItemTypeImpl(TypeDefinition typeDefinition, short occurrence) : base()
 {
     this.typeDefinition = typeDefinition;
     this.occurrence     = occurrence;
 }
 public SimpleAtomicItemTypeImpl(TypeDefinition typeDefinition) : base()
 {
     this.typeDefinition = typeDefinition;
     this.occurrence     = org.eclipse.wst.xml.xpath2.api.typesystem.ItemType_Fields.OCCURRENCE_ONE;
 }