text:
<?php

namespace Surfnet\ServiceProviderDashboard\Tests\Integration\Application\CommandHandler\Entity;

use JiraRestApi\Issue\Issue;
use JiraRestApi\JiraException;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryTestCase;
use Mockery\Mock;
use Psr\Log\LoggerInterface;
use Surfnet\ServiceProviderDashboard\Application\Command\Entity\PublishEntityProductionCommand;
use Surfnet\ServiceProviderDashboard\Application\CommandHandler\Entity\PublishEntityProductionCommandHandler;
use Surfnet\ServiceProviderDashboard\Application\Service\EntityService;
use Surfnet\ServiceProviderDashboard\Application\Service\EntityServiceInterface;
use Surfnet\ServiceProviderDashboard\Application\Service\MailService;
use Surfnet\ServiceProviderDashboard\Application\Service\TicketService;
use Surfnet\ServiceProviderDashboard\Domain\Entity\Constants;
use Surfnet\ServiceProviderDashboard\Domain\Entity\Contact;
use Surfnet\ServiceProviderDashboard\Domain\Entity\ManageEntity;
use Surfnet\ServiceProviderDashboard\Domain\Mailer\Mailer;
use Surfnet\ServiceProviderDashboard\Domain\Mailer\Message;
use Surfnet\ServiceProviderDashboard\Domain\Repository\PublishEntityRepository;
use Surfnet\ServiceProviderDashboard\Infrastructure\DashboardBundle\Factory\MailMessageFactory;
use Surfnet\ServiceProviderDashboard\Infrastructure\DashboardSamlBundle\Security\Authentication\Token\SamlToken;
use Surfnet\ServiceProviderDashboard\Infrastructure\DashboardSamlBundle\Security\Identity;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;

class PublishEntityProductionCommandHandlerTest extends MockeryTestCase
{

    /**
     * @var PublishEntityProductionCommandHandler
     */
    private $commandHandler;

    /**
     * @var PublishEntityRepository|Mock
     */
    private $publishEntityClient;

    /**
     * @var FlashBagInterface|Mock
     */
    private $flashBag;

    /**
     * @var LoggerInterface|Mock
     */
    private $logger;

    /**
     * @var TicketService|Mock
     */
    private $ticketService;

    /**
     * @var MailService|Mock
     */
    private $mailService;

    /**
     * @var EntityServiceInterface|Mock
     */
    private $entityService;

    public function setUp()
    {
        $this->publishEntityClient = m::mock(PublishEntityRepository::class);
        $this->entityService = m::mock(EntityServiceInterface::class);
        $this->ticketService = m::mock(TicketService::class);
        $this->flashBag = m::mock(FlashBagInterface::class);
        $this->logger = m::mock(LoggerInterface::class);

        $this->mailService = m::mock(MailService::class);

        $this->commandHandler = new PublishEntityProductionCommandHandler(
            $this->publishEntityClient,
            $this->entityService,
            $this->ticketService,
            $this->flashBag,
            $this->mailService,
            $this->logger,
            'customIssueType'
        );

        parent::setUp();
    }

    public function test_it_can_publish()
    {
        $contact = new Contact('nameid', 'name@example.org', 'display name');
        $user = new Identity($contact);

        $token = new SamlToken([]);
        $token->setUser($user);

        $manageEntity = m::mock(ManageEntity::class);
        $manageEntity
            ->shouldReceive('getMetaData->getNameEn')
            ->andReturn('Test Entity Name');
        $manageEntity->shouldReceive('isManageEntity')->andReturnTrue();
        $manageEntity->shouldReceive('getEnvironment')->andReturn('production');

        $this->publishEntityClient
            ->shouldReceive('publish')
            ->once()
            ->with($manageEntity, $manageEntity)
            ->andReturn([
                'id' => '123',
            ]);

        $manageEntity
            ->shouldReceive('getMetaData->getEntityId')
            ->andReturn('https://app.example.com/');

        $manageEntity
            ->shouldReceive('getId')
            ->andReturn('123');

        $manageEntity
            ->shouldReceive('setStatus')
            ->with(Constants::STATE_PUBLISHED);
        $manageEntity
            ->shouldReceive('setId')
            ->with('123');

        $manageEntity
            ->shouldReceive('getService->getConnectionStatus');

        $issue = m::mock(Issue::class)->makePartial();
        $issue->shouldReceive('getKey')
            ->andReturn('CXT-999');

        $this->ticketService
            ->shouldReceive('createJiraTicket');

        $this->logger
            ->shouldReceive('info')
            ->times(2);
        $this->entityService->shouldReceive('getManageEntityById')->andReturn($manageEntity);

        $applicant = new Contact('john:doe', 'john@example.com', 'John Doe');
        $command = new PublishEntityProductionCommand($manageEntity, $applicant);
        $this->commandHandler->handle($command);
    }

    /**
     * Republishing an entity should not result in the creation of a new Jira ticket. The existing ticket should
     * be retrieved and used in the further logging.
     */
    public function test_it_can_republish()
    {
        $contact = new Contact('nameid', 'name@example.org', 'display name');
        $user = new Identity($contact);

        $token = new SamlToken([]);
        $token->setUser($user);

        $manageEntity = m::mock(ManageEntity::class);
        $manageEntity
            ->shouldReceive('getMetaData->getNameEn')
            ->andReturn('Test Entity Name');

        $this->publishEntityClient
            ->shouldReceive('publish')
            ->once()
            ->with($manageEntity, $manageEntity)
            ->andReturn([
                'id' => '123',
            ]);

        $manageEntity
            ->shouldReceive('getMetaData->getEntityId')
            ->andReturn('https://app.example.com/');

        $manageEntity
            ->shouldReceive('getId')
            ->andReturn('123');
        $manageEntity->shouldReceive('isManageEntity')->andReturnTrue();
        $manageEntity->shouldReceive('getEnvironment')->andReturn('production');

        $manageEntity
            ->shouldReceive('setStatus')
            ->with(Constants::STATE_PUBLISHED);
        $manageEntity
            ->shouldReceive('setId')
            ->with('123');

        $manageEntity
            ->shouldReceive('getService->getConnectionStatus');

        $issue = m::mock(Issue::class)->makePartial();
        $issue->shouldReceive('getKey')
            ->andReturn('CXT-999');

        $this->ticketService
            ->shouldReceive('createJiraTicket');

        $this->logger
            ->shouldReceive('info')
            ->times(2);
        $this->entityService->shouldReceive('getManageEntityById')->andReturn($manageEntity);

        $applicant = new Contact('john:doe', 'john@example.com', 'John Doe');
        $command = new PublishEntityProductionCommand($manageEntity, $applicant);
        $this->commandHandler->handle($command);
    }

    public function test_failing_jira_ticket_creation()
    {
        $contact = new Contact('nameid', 'name@example.org', 'display name');
        $user = new Identity($contact);

        $token = new SamlToken([]);
        $token->setUser($user);

        $manageEntity = m::mock(ManageEntity::class);
        $manageEntity
            ->shouldReceive('getMetaData->getNameEn')
            ->andReturn('Test Entity Name');

        $manageEntity
            ->shouldReceive('getMetaData->getEntityId')
            ->andReturn('https://app.example.com/');

        $manageEntity
            ->shouldReceive('getId')
            ->andReturn('123');
        $manageEntity->shouldReceive('isManageEntity')->andReturnTrue();
        $manageEntity->shouldReceive('getEnvironment')->andReturn('production');

        $manageEntity
            ->shouldReceive('setStatus')
            ->with(Constants::STATE_PUBLISHED);
        $manageEntity
            ->shouldReceive('setId')
            ->with('123');

        $manageEntity
            ->shouldReceive('getService->getConnectionStatus');

        $this->ticketService
            ->shouldReceive('createIssueFrom')
            ->andThrow(JiraException::class);

        $this->mailService
            ->shouldReceive('sendErrorReport');

        $this->logger
            ->shouldReceive('info')
            ->once();

        $this->logger
            ->shouldReceive('critical')
            ->once();

        $this->flashBag
            ->shouldReceive('add')
            ->with('error', 'entity.edit.error.publish');
        $this->entityService->shouldReceive('getManageEntityById')->andReturn($manageEntity);

        $applicant = new Contact('john:doe', 'john@example.com', 'John Doe');

        $command = new PublishEntityProductionCommand($manageEntity, $applicant);
        $this->commandHandler->handle($command);
    }
}


text:
package com.quollwriter.db;

import java.sql.*;

import java.util.*;

import com.quollwriter.*;

import com.quollwriter.data.*;

public class TagDataHandler implements DataHandler<Tag, NamedObject>
{

    private static final String STD_SELECT_PREFIX = "SELECT dbkey, name, description, markup, files, lastmodified, datecreated, properties, id, version FROM tag_v ";
    private ObjectManager objectManager = null;

    public TagDataHandler (ObjectManager om)
    {

        this.objectManager = om;

    }

    private Tag getTag (ResultSet rs,
                        boolean   loadChildObjects)
                 throws GeneralException
    {

        try
        {

            int ind = 1;

            long key = rs.getLong (ind++);

            Tag n = new Tag ();
            n.setKey (key);
            n.setName (rs.getString (ind++));
            n.setDescription (new StringWithMarkup (rs.getString (ind++),
                                                    rs.getString (ind++)));
            n.setFiles (Utils.getFilesFromXML (rs.getString (ind++)));
            n.setLastModified (rs.getTimestamp (ind++));
            n.setDateCreated (rs.getTimestamp (ind++));
            n.setPropertiesAsString (rs.getString (ind++));

            n.setId (rs.getString (ind++));
            n.setVersion (rs.getString (ind++));

            return n;

        } catch (Exception e)
        {

            throw new GeneralException ("Unable to load tag",
                                        e);

        }

    }

    public List<Tag> getObjects (NamedObject parent,
                                 Connection  conn,
                                 boolean     loadChildObjects)
                          throws GeneralException
    {

        try
        {

            List<Tag> ret = new ArrayList ();

            List params = new ArrayList ();

            ResultSet rs = this.objectManager.executeQuery (STD_SELECT_PREFIX,
                                                            params,
                                                            conn);

            while (rs.next ())
            {

                ret.add (this.getTag (rs,
                                      loadChildObjects));

            }

            try
            {

                rs.close ();

            } catch (Exception e)
            {
            }

            return ret;

        } catch (Exception e)
        {

            throw new GeneralException ("Unable to get tags for: " +
                                        parent,
                                        e);

        }

    }

    public Tag getObjectByKey (long        key,
                               NamedObject parent,
                               Connection conn,
                               boolean    loadChildObjects)
                        throws GeneralException
    {

        try
        {

            List params = new ArrayList ();
            params.add (key);

            ResultSet rs = this.objectManager.executeQuery (STD_SELECT_PREFIX + " WHERE dbkey = ?",
                                                            params,
                                                            conn);

            if (rs.next ())
            {

                return this.getTag (rs,
                                    loadChildObjects);

            }

            return null;

        } catch (Exception e) {

            throw new GeneralException ("Unable to get tag with key: " +
                                        key,
                                        e);

        }

    }

    public void createObject (Tag        n,
                              Connection conn)
                       throws GeneralException
    {

        List params = new ArrayList ();
        params.add (n.getKey ());

        this.objectManager.executeStatement ("INSERT INTO tag (dbkey) VALUES (?)",
                                             params,
                                             conn);

    }

    public void deleteObject (Tag        d,
                              boolean    deleteChildObjects,
                              Connection conn)
                       throws GeneralException
    {

        List params = new ArrayList ();
        params.add (d.getKey ());

        this.objectManager.executeStatement ("DELETE FROM tag WHERE dbkey = ?",
                                             params,
                                             conn);

    }

    public void updateObject (Tag        d,
                              Connection conn)
                       throws GeneralException
    {

        // Do nothing.

    }

}

redpajama_set_name: RedPajamaGithub


text:
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule  } from '@angular/forms';
import { DejaBackdropModule } from '../backdrop/index';
import { DejaDropDownModule } from '../dropdown/index';
import { DejaMenuComponent  } from './index';

@NgModule({
    declarations: [DejaMenuComponent],
    exports: [DejaMenuComponent],
    imports: [
        CommonModule,
        FormsModule,
        DejaDropDownModule,
        DejaBackdropModule,
    ],
})
export class DejaMenuModule { }


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2012, The National Archives <pronom@nationalarchives.gsi.gov.uk>
    All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following
    conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.

     * Neither the name of the The National Archives nor the
       names of its contributors may be used to endorse or promote products
       derived from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-->

<beans xmlns="http://www.springframework.org/schema/beans" default-autowire="no" default-lazy-init="true"

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd">

	<import resource="classpath*:/META-INF/cxf/cxf.xml" />
	<import resource="classpath*:/META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath*:/META-INF/cxf/cxf-servlet.xml" />

	<import resource="classpath*:/META-INF/spring-signature.xml"/>
    <import resource="classpath*:/META-INF/report-spring.xml"/>

    <bean id="properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <value>classpath*:archive-puids.properties</value>
        </property>
    </bean>

    <bean id="globalConfig" class="uk.gov.nationalarchives.droid.core.interfaces.config.DroidGlobalConfig" init-method="init"/>

    <bean id="exportManager" class="uk.gov.nationalarchives.droid.export.ExportManagerImpl" destroy-method="destroy">
        <property name="profileContextLocator" ref="profileContextLocator"/>
        <property name="itemWriter" ref="itemWriter"/>
    </bean>

    <bean id="signatureManager" class="uk.gov.nationalarchives.droid.signature.SignatureManagerImpl" init-method="init">
        <property name="signatureUpdateServices">
            <map>
                <entry key="BINARY" value-ref="binarySignatureUpdateService"/>
                <entry key="CONTAINER" value-ref="containerSignatureUpdateService"/>
                <!-- <entry key="TEXT" value-ref="textSignatureUpdateService"/> -->
            </map>
        </property>
        <property name="config" ref="globalConfig"/>
    </bean>

    <bean id="itemWriter" class="uk.gov.nationalarchives.droid.export.CsvItemWriter"/>

    <bean id="profileManager" class="uk.gov.nationalarchives.droid.profile.ProfileManagerImpl">
        <property name="profileContextLocator" ref="profileContextLocator"/>
        <property name="profileSpecDao" ref="profileSpecDao"/>
        <property name="profileDiskAction" ref="profileDiskAction"/>
        <property name="signatureManager" ref="signatureManager"/>
        <property name="config" ref="globalConfig"/>
    </bean>

    <bean id="profileSpecDao" class="uk.gov.nationalarchives.droid.profile.JaxbProfileSpecDao"/>

    <bean id="uuidGenerator" class="uk.gov.nationalarchives.droid.profile.ProfileUuidGeneratorImpl"/>

    <bean id="profileInstanceFactory" class="uk.gov.nationalarchives.droid.profile.SpringProfileInstanceFactory"/>

    <bean id="profileContextLocator" class="uk.gov.nationalarchives.droid.profile.ProfileContextLocator">
        <property name="profileInstanceLocator" ref="profileInstanceFactory"/>
        <property name="globalConfig" ref="globalConfig"/>
    </bean>

    <bean id="profileDiskAction" class="uk.gov.nationalarchives.droid.profile.ProfileDiskAction"/>

    <bean id="exportCommand" class="uk.gov.nationalarchives.droid.command.action.ExportCommand" scope="prototype">
        <property name="exportManager" ref="exportManager"/>
        <property name="profileManager" ref="profileManager"/>
        <property name="dqlFilterParser" ref="dqlFilterParser"/>
    </bean>

    <bean id="dqlFilterParser" class="uk.gov.nationalarchives.droid.command.filter.AntlrDqlParser"/>

    <bean id="reportCommand" class="uk.gov.nationalarchives.droid.command.action.ReportCommand" scope="prototype">
        <property name="reportManager" ref="reportManager"/>
        <property name="profileManager" ref="profileManager"/>
        <property name="reportXmlWriter" ref="reportXmlWriter"/>
        <property name="config" ref="globalConfig"/>
        <property name="dqlFilterParser" ref="dqlFilterParser"/>
    </bean>

    <bean id="profileRunCommand" class="uk.gov.nationalarchives.droid.command.action.ProfileRunCommand" scope="prototype">
        <property name="signatureManager" ref="signatureManager"/>
        <property name="profileManager" ref="profileManager"/>
	<property name="locationResolver">
    	    <bean class="uk.gov.nationalarchives.droid.command.action.LocationResolver"/>
	</property>
    </bean>

    <bean id="noProfileRunCommand" class="uk.gov.nationalarchives.droid.command.action.NoProfileRunCommand" scope="prototype">
        <!-- <property name="containerContentIdentifierFactory" ref="containerContentIdentifierFactory"/>
        <property name="archiveFormatResolver" ref="archivePuidResolver"/> -->
    </bean>

    <bean id="abstractSignatureCommand" abstract="true" scope="prototype" >
        <property name="signatureManager" ref="signatureManager"/>
    </bean>

    <bean id="checkSignatureUpdateCommand" class="uk.gov.nationalarchives.droid.command.action.CheckSignatureUpdateCommand"
        parent="abstractSignatureCommand"/>

    <bean id="downloadSignatureUpdateCommand" parent="abstractSignatureCommand"
        class="uk.gov.nationalarchives.droid.command.action.DownloadSignatureUpdateCommand"/>

    <bean id="displayDefaultSignatureVersion" parent="abstractSignatureCommand"
        class="uk.gov.nationalarchives.droid.command.action.DisplayDefaultSignatureFileVersionCommand"/>

    <bean id="configureDefaultSignatureVersion" parent="abstractSignatureCommand"
        class="uk.gov.nationalarchives.droid.command.action.ConfigureDefaultSignatureFileVersionCommand">
        <property name="globalConfig" ref="globalConfig"/>
	<property name="type">
    		<util:constant static-field="uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureType.BINARY"/>
      </property>
    </bean>

    <bean id="listAllSignatureFilesCommand" parent="abstractSignatureCommand"
        class="uk.gov.nationalarchives.droid.command.action.ListAllSignatureFilesCommand">
    </bean>

    <bean id="listReportsCommand" class="uk.gov.nationalarchives.droid.command.action.ListReportsCommand">
        <property name="reportManager" ref="reportManager"/>
    </bean>

    <!-- container identifiers for command line only! -->
    <!-- <bean id="containerContentIdentifierFactory" class="uk.gov.nationalarchives.droid.command.container.ContainerContentIdentifierFactory">
        <!- - define available identifiers - ->
        <property name="containerContentIdentifiers">
            <map>
                <entry key="OLE2" value-ref="ole2ContainerContentIdentifier"/>
                <entry key="ZIP" value-ref="zipContainerContentIdentifier"/>
            </map>
	</property>
    </bean> -->

    <!-- <bean id="ole2ContainerContentIdentifier" class="uk.gov.nationalarchives.droid.command.container.Ole2ContainerContentIdentifier">
        <property name="identifierEngine" ref="ole2IdentifierEngine"/>
    </bean> -->

    <!-- <bean id="zipContainerContentIdentifier" class="uk.gov.nationalarchives.droid.command.container.ZipContainerContentIdentifier">
        <property name="identifierEngine" ref="zipIdentifierEngine"/>
    </bean> -->

    <!-- <bean id="containerFileIdentificationRequestFactory" class="uk.gov.nationalarchives.droid.container.ContainerFileIdentificationRequestFactory">
        <!- - property name="tempDirLocation" value="${tempDirLocation}"/ - ->
    </bean> -->

    <bean id="zipIdentifierEngine" class="uk.gov.nationalarchives.droid.container.zip.ZipIdentifierEngine">
        <property name="requestFactory" ref="containerFileIdentificationRequestFactory"/>
    </bean>

    <bean id="ole2IdentifierEngine" class="uk.gov.nationalarchives.droid.container.ole2.Ole2IdentifierEngine">
        <property name="requestFactory" ref="containerFileIdentificationRequestFactory"/>
    </bean>

    <bean id="archivePuidResolver" class="uk.gov.nationalarchives.droid.core.interfaces.archive.ArchiveFormatResolverImpl">
        <property name="puids">
            <map>
                <entry key="ZIP" value="${archive.zip}"/>
                <entry key="TAR" value="${archive.tar}"/>
                <entry key="GZ" value="${archive.gz}"/>
                <entry key="ARC" value="${archive.arc}"/>
                <entry key="WARC" value="${archive.warc}"/>
            </map>
        </property>
    </bean>

    <bean id="archiveHandlerLocator" class="uk.gov.nationalarchives.droid.core.interfaces.archive.ArchiveHandlerFactoryImpl">
        <property name="handlers">
            <map>
                <entry key="ZIP" value-ref="zipHandler"/>
                <entry key="TAR" value-ref="tarHandler"/>
                <entry key="GZ" value-ref="gzHandler"/>
                <entry key="ARC" value-ref="arcHandler"/>
                <entry key="WARC" value-ref="warcHandler"/>
            </map>
        </property>
    </bean>
<!--
    <bean id="archiveRequestFactory" abstract="true">
        <property name="tempDirLocation" value="${tempDirLocation}"/>
    </bean>
-->
    <bean id="zipHandler" class="uk.gov.nationalarchives.droid.core.interfaces.archive.TrueZipArchiveHandler">
        <property name="factory">
            <!-- <bean class="uk.gov.nationalarchives.droid.core.interfaces.archive.ZipEntryRequestFactory" parent="archiveRequestFactory"> -->
            <bean class="uk.gov.nationalarchives.droid.core.interfaces.archive.ZipEntryRequestFactory">
            </bean>
        </property>
        <!-- <property name="droidCore" ref="submissionGateway"/>
        <property name="resultHandler" ref="databaseResultHandler"/> -->
    </bean>

    <bean id="tarHandler" class="uk.gov.nationalarchives.droid.core.interfaces.archive.TarArchiveHandler">
        <property name="factory">
            <!-- <bean class="uk.gov.nationalarchives.droid.core.interfaces.archive.TarEntryRequestFactory" parent="archiveRequestFactory"/> -->
            <bean class="uk.gov.nationalarchives.droid.core.interfaces.archive.TarEntryRequestFactory"/>
        </property>
        <!-- <property name="droidCore" ref="submissionGateway"/>
        <property name="resultHandler" ref="databaseResultHandler"/> -->
    </bean>

    <bean id="gzHandler" class="uk.gov.nationalarchives.droid.core.interfaces.archive.GZipArchiveHandler">
        <property name="factory">
            <!-- <bean class="uk.gov.nationalarchives.droid.core.interfaces.archive.GZipRequestFactory" parent="archiveRequestFactory"/> -->
            <bean class="uk.gov.nationalarchives.droid.core.interfaces.archive.GZipRequestFactory"/>
        </property>
        <!-- <property name="droidCore" ref="submissionGateway"/> -->
    </bean>
</beans>


text:
#include "StoryModeScoreView.h"
#include "AssetList.h"
#include "Sound.h"
#include "NewAssetList.h"
using namespace CR::Sound;

extern CR::Graphics::GraphicsEngine *graphics_engine;

StoryModeScoreView::StoryModeScoreView(StoryModeScoreData *scoreData) : m_spriteHelperMedals(CR::AssetList::Medal_Icons,true,400)
{
	m_spriteHelperMedals.SetDesignSize(29, 29);

	this->m_scoreData = scoreData;

	scoreBaseSprite = graphics_engine->CreateSprite1(false,500);
	scoreBaseSprite->SetImage(CR::AssetList::Score_Base_1);
	scoreBaseSprite->SetDesignSize(320, 480);
	scoreBaseSprite->SetPositionAbsolute(160, 240);

	medalIconsSprite = graphics_engine->CreateSprite1(false,400);
	medalIconsSprite->SetImage(CR::AssetList::Medal_Icons);
	medalIconsSprite->SetDesignSize(29, 29);

	okButton = new Input_Button();
	okButton->SetSpriteAndBounds(96, 400, CR::AssetList::Score_Ok_Button, 400);
	okButton->DesignSize(128, 75);
	okButton->OnClicked += Delegate(this, &StoryModeScoreView::OnOkButtonPressed);
	okButton->SetSound(CR::AssetList::sounds::shopopen::ID);
	input_objects.push_back(okButton);

	smallNumberFont = new NumberFont(CR::AssetList::Font_Score_1, 400);
	smallNumberFont->SetDesignSize(12, 16);
	smallNumberFont->SetAlignment(AlignFontRight);
	bigNumberFont = new NumberFont(CR::AssetList::Font_Score_2, 400);
	bigNumberFont->SetDesignSize(16, 20);
	bigNumberFont->SetAlignment(AlignFontRight);

	timeDisplay = new TimeDisplay();
	timeDisplay->SetSeconds(scoreData->levelTime);

	youGotSlider = new YouGotSlider();
	youGotSlider->SetPosition(-105, 30);
	youGotSlider->SetSlideToPoint(110, 30);
	youGotSlider->SetTagDisplay(scoreData->gotTrophy, scoreData->gotStar);
}

StoryModeScoreView::~StoryModeScoreView()
{
	scoreBaseSprite->Release();
	medalIconsSprite->Release();
	delete okButton;
	//delete resourceCounter;
	//delete bigCounter;
	delete smallNumberFont;
	delete bigNumberFont;
	delete timeDisplay;
	delete youGotSlider;
}

// IView
void StoryModeScoreView::Update()
{
	//resourceCounter->Update();
	youGotSlider->Update();
}

void StoryModeScoreView::Render()
{
	scoreBaseSprite->Render();
	okButton->Render();

	smallNumberFont->Begin();
	bigNumberFont->Begin();

	m_spriteHelperMedals.Start();
	smallNumberFont->SetPosition(80, 144);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(Brick));
	RenderMedal(m_scoreData->tileMedals[Brick], 130, 144);

	smallNumberFont->SetPosition(80, 174);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(Wood));
	RenderMedal(m_scoreData->tileMedals[Wood], 130, 174);

	smallNumberFont->SetPosition(80, 204);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(Leaf));
	RenderMedal(m_scoreData->tileMedals[Leaf], 130, 204);

	// TODO: ? Resource Type
	smallNumberFont->SetPosition(80, 234);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(QTile));
	RenderMedal(m_scoreData->tileMedals[QTile], 130, 234);

	smallNumberFont->SetPosition(217, 144);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(Gold));
	RenderMedal(m_scoreData->tileMedals[Gold], 267, 144);

	smallNumberFont->SetPosition(217, 174);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(Crystal));
	RenderMedal(m_scoreData->tileMedals[Crystal], 267, 174);

	smallNumberFont->SetPosition(217, 204);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(Diamond));
	RenderMedal(m_scoreData->tileMedals[Diamond], 267, 204);

	// TODO: M Resource Type
	smallNumberFont->SetPosition(217, 234);
	smallNumberFont->RenderNumber(m_scoreData->GetResourceCount(MTile));
	RenderMedal(m_scoreData->tileMedals[MTile], 267, 234);

	bigNumberFont->SetPosition(245, 283);
	bigNumberFont->RenderNumber(m_scoreData->largestChain);
	RenderMedal(m_scoreData->chainMedal, 290, 283);

	bigNumberFont->SetPosition(245, 318);
	bigNumberFont->RenderNumber(m_scoreData->powersUsed);
	RenderMedal(m_scoreData->powersUsedMedal, 290, 318);

	timeDisplay->SetPosition(215, 358);
	timeDisplay->Render();
	RenderMedal(m_scoreData->levelTimeMedal, 290, 358);

	youGotSlider->Render();

	smallNumberFont->End();
	bigNumberFont->End();
	m_spriteHelperMedals.End();
}

void StoryModeScoreView::RenderMedal(MedalType mType, int xLoc, int yLoc)
{
	/*medalIconsSprite->SetFrameSet((int)mType);
	medalIconsSprite->SetPositionAbsolute(xLoc, yLoc);
	medalIconsSprite->Render();*/

	m_spriteHelperMedals.NewSprite();
	m_spriteHelperMedals.SetPosition(xLoc, yLoc);
	m_spriteHelperMedals.SetFrame((int)mType);
}

void StoryModeScoreView::OnOkButtonPressed()
{
	// Reset the score for the next level
	m_scoreData->Reset();

	if(OnResumeGameClicked.Size() > 0)
		OnResumeGameClicked();
}


text:
module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    uglify: {
      options: {
        banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
      },
      build: {
        src: '<%= pkg.name %>.js',
        dest: '<%= pkg.name %>.min.js'
      }
    },
    jasmine_node: {
      options: {
        forceExit: true,
        match: '.',
        matchall: false,
        extensions: 'js',
        specNameMatcher: 'spec',
        jUnit: {
          report: true,
          savePath : "./build/reports/jasmine/",
          useDotNotation: true,
          consolidate: true
        }
      },
      all: ['spec/']
    }
  });

  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-jasmine-node');

  // Default task(s).
  grunt.registerTask('default', ['jasmine_node', 'uglify']);
};


text:
package routers

import (
	"web1/controllers"

	"github.com/astaxie/beego/context"

	"github.com/astaxie/beego"
)

func init() {

	var check = func(ctx *context.Context) {
		uid := ctx.GetCookie("userinfo")

		if uid != "goodluck" {
			ctx.Redirect(302, "/login")
		}

	}

	beego.Router("/", &controllers.MainController{})
	beego.Router("/404", &controllers.MainController{}, "get:NotFound")
	beego.Router("/500", &controllers.MainController{}, "get:BadServer")

	beego.Router("/toLogin", &controllers.MainController{}, "post:ToLogin")
	beego.Router("/login", &controllers.MainController{}, "get:Login")

	beego.InsertFilter("/admin/store/addAndEdit", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/store/list", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/product/list", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/product/add", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/product/edit", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/product/addAndEdit", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/product/stock", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/product/productForSelected", beego.BeforeRouter, check)

	beego.InsertFilter("/admin/warehouse/inputList", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/warehouse/outList", beego.BeforeRouter, check)
	beego.InsertFilter("/admin/warehouse/addInput", beego.BeforeRouter, check)
	beego.InsertFilter("/warehouse/reduceInput", beego.BeforeRouter, check)
	beego.InsertFilter("/warehouse/postAdd", beego.BeforeRouter, check)
	beego.InsertFilter("/warehouse/discard", beego.BeforeRouter, check)
	beego.InsertFilter("/warehouse/getIoWarehouse", beego.BeforeRouter, check)

	beego.Router("/admin/store/addAndEdit", &controllers.StoreController{}, "post:AddAndEdit")

	beego.Router("/admin/store/list", &controllers.StoreController{}, "get:List")

	// beego.Router("/admin/category/list", &controllers.CategoryController{}, "get:List")

	beego.Router("/admin/product/list", &controllers.ProductController{}, "get:List")
	beego.Router("/admin/product/add", &controllers.ProductController{}, "get:Add")
	beego.Router("/admin/product/edit", &controllers.ProductController{}, "get:Edit")
	beego.Router("/admin/product/addAndEdit", &controllers.ProductController{}, "post:AddAndEdit")
	beego.Router("/admin/product/stock", &controllers.ProductController{}, "get:Stock")
	beego.Router("/admin/product/productForSelected", &controllers.ProductController{}, "get:ProductForSelected")

	beego.Router("/admin/warehouse/inputList", &controllers.WarehouseController{}, "get:InputList")
	beego.Router("/admin/warehouse/outList", &controllers.WarehouseController{}, "get:OutList")

	///admin/warehouse/AddInput
	beego.Router("/admin/warehouse/addInput", &controllers.WarehouseController{}, "get:AddInput")
	beego.Router("/admin/warehouse/reduceInput", &controllers.WarehouseController{}, "get:ReduceInput")
	beego.Router("/admin/warehouse/postAdd", &controllers.WarehouseController{}, "post:PostAdd")
	beego.Router("/admin/warehouse/discard", &controllers.WarehouseController{}, "post:Discard")

	beego.Router("/admin/warehouse/getIoWarehouse", &controllers.WarehouseController{}, "get:GetIoWarehouse")

}


text:
package org.conqat.lib.commons.html;

import java.util.EnumSet;
import java.util.Set;

/**
 * Enumeration of all HTML elements.
 *

 * Part of this file was generated from the XHTML FrameSet
 * DTD using the "dtd2enum.pl" perl script in this directory.
 *
 * @author $Author: hummelb $
 * @version $Rev: 45653 $
 * @ConQAT.Rating GREEN Hash: EFEB92A209C0201795DBF43D145EDDDB
 */
public enum EHTMLElement {

	/** The <{@linkplain #HTML}> element. */
	HTML("html", EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ID, EHTMLAttribute.XMLNS),

	/** The <{@linkplain #HEAD}> element. */
	HEAD("head", EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ID, EHTMLAttribute.PROFILE),

	/** The <{@linkplain #TITLE}> element. */
	TITLE("title", EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ID),

	/** The <{@linkplain #BASE}> element. */
	BASE("base", EHTMLAttribute.ID, EHTMLAttribute.HREF, EHTMLAttribute.TARGET),

	/** The <{@linkplain #META}> element. */
	META("meta", EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ID, EHTMLAttribute.HTTP_EQUIV,
			EHTMLAttribute.NAME, EHTMLAttribute.CONTENT, EHTMLAttribute.SCHEME,
			EHTMLAttribute.CHARSET),

	/** The <{@linkplain #LINK}> element. */
	LINK("link", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.CHARSET,
			EHTMLAttribute.HREF, EHTMLAttribute.HREFLANG, EHTMLAttribute.TYPE,
			EHTMLAttribute.REL, EHTMLAttribute.REV, EHTMLAttribute.MEDIA,
			EHTMLAttribute.TARGET),

	/** The <{@linkplain #STYLE}> element. */
	STYLE("style", EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ID, EHTMLAttribute.TYPE,
			EHTMLAttribute.MEDIA, EHTMLAttribute.TITLE,
			EHTMLAttribute.XML_SPACE),

	/** The <{@linkplain #SCRIPT}> element. */
	SCRIPT("script", EHTMLAttribute.ID, EHTMLAttribute.CHARSET,
			EHTMLAttribute.TYPE, EHTMLAttribute.LANGUAGE, EHTMLAttribute.SRC,
			EHTMLAttribute.DEFER, EHTMLAttribute.XML_SPACE),

	/** The <{@linkplain #NOSCRIPT}> element. */
	NOSCRIPT("noscript", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #FRAMESET}> element. */
	FRAMESET("frameset", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.ROWS,
			EHTMLAttribute.COLS, EHTMLAttribute.ONLOAD, EHTMLAttribute.ONUNLOAD),

	/** The <{@linkplain #FRAME}> element. */
	FRAME("frame", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE,
			EHTMLAttribute.LONGDESC, EHTMLAttribute.NAME, EHTMLAttribute.SRC,
			EHTMLAttribute.FRAMEBORDER, EHTMLAttribute.MARGINWIDTH,
			EHTMLAttribute.MARGINHEIGHT, EHTMLAttribute.NORESIZE,
			EHTMLAttribute.SCROLLING),

	/** The <{@linkplain #IFRAME}> element. */
	IFRAME("iframe", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE,
			EHTMLAttribute.LONGDESC, EHTMLAttribute.NAME, EHTMLAttribute.SRC,
			EHTMLAttribute.FRAMEBORDER, EHTMLAttribute.MARGINWIDTH,
			EHTMLAttribute.MARGINHEIGHT, EHTMLAttribute.SCROLLING,
			EHTMLAttribute.ALIGN, EHTMLAttribute.HEIGHT, EHTMLAttribute.WIDTH),

	/** The <{@linkplain #NOFRAMES}> element. */
	NOFRAMES("noframes", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #BODY}> element. */
	BODY("body", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ONLOAD,
			EHTMLAttribute.ONUNLOAD, EHTMLAttribute.BACKGROUND,
			EHTMLAttribute.BGCOLOR, EHTMLAttribute.TEXT, EHTMLAttribute.LINK,
			EHTMLAttribute.VLINK, EHTMLAttribute.ALINK),

	/** The <{@linkplain #DIV}> element. */
	DIV("div", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #P}> element. */
	P("p", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #H1}> element. */
	H1("h1", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #H2}> element. */
	H2("h2", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #H3}> element. */
	H3("h3", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #H4}> element. */
	H4("h4", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #H5}> element. */
	H5("h5", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #H6}> element. */
	H6("h6", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #UL}> element. */
	UL("ul", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.TYPE, EHTMLAttribute.COMPACT),

	/** The <{@linkplain #OL}> element. */
	OL("ol", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.TYPE,
			EHTMLAttribute.COMPACT, EHTMLAttribute.START),

	/** The <{@linkplain #MENU}> element. */
	MENU("menu", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.COMPACT),

	/** The <{@linkplain #DIR}> element. */
	DIR("dir", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.COMPACT),

	/** The <{@linkplain #LI}> element. */
	LI("li", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.TYPE, EHTMLAttribute.VALUE),

	/** The <{@linkplain #DL}> element. */
	DL("dl", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.COMPACT),

	/** The <{@linkplain #DT}> element. */
	DT("dt", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #DD}> element. */
	DD("dd", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #ADDRESS}> element. */
	ADDRESS("address", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #HR}> element. */
	HR("hr", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN,
			EHTMLAttribute.NOSHADE, EHTMLAttribute.SIZE, EHTMLAttribute.WIDTH),

	/** The <{@linkplain #PRE}> element. */
	PRE("pre", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.WIDTH,
			EHTMLAttribute.XML_SPACE),

	/** The <{@linkplain #BLOCKQUOTE}> element. */
	BLOCKQUOTE("blockquote", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.CITE),

	/** The <{@linkplain #CENTER}> element. */
	CENTER("center", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #INS}> element. */
	INS("ins", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.CITE,
			EHTMLAttribute.DATETIME),

	/** The <{@linkplain #DEL}> element. */
	DEL("del", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.CITE,
			EHTMLAttribute.DATETIME),

	/** The <{@linkplain #A}> element. */
	A("a", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ACCESSKEY,
			EHTMLAttribute.TABINDEX, EHTMLAttribute.ONFOCUS,
			EHTMLAttribute.ONBLUR, EHTMLAttribute.CHARSET, EHTMLAttribute.TYPE,
			EHTMLAttribute.NAME, EHTMLAttribute.HREF, EHTMLAttribute.HREFLANG,
			EHTMLAttribute.REL, EHTMLAttribute.REV, EHTMLAttribute.SHAPE,
			EHTMLAttribute.COORDS, EHTMLAttribute.TARGET),

	/** The <{@linkplain #SPAN}> element. */
	SPAN("span", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #BDO}> element. */
	BDO("bdo", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR),

	/** The <{@linkplain #BR}> element. */
	BR("br", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.CLEAR),

	/** The <{@linkplain #EM}> element. */
	EM("em", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #STRONG}> element. */
	STRONG("strong", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #DFN}> element. */
	DFN("dfn", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #CODE}> element. */
	CODE("code", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #SAMP}> element. */
	SAMP("samp", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #KBD}> element. */
	KBD("kbd", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #VAR}> element. */
	VAR("var", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #CITE}> element. */
	CITE("cite", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #ABBR}> element. */
	ABBR("abbr", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #ACRONYM}> element. */
	ACRONYM("acronym", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #Q}> element. */
	Q("q", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.CITE),

	/** The <{@linkplain #SUB}> element. */
	SUB("sub", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #SUP}> element. */
	SUP("sup", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #TT}> element. */
	TT("tt", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #I}> element. */
	I("i", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #B}> element. */
	B("b", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #BIG}> element. */
	BIG("big", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #SMALL}> element. */
	SMALL("small", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #U}> element. */
	U("u", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #S}> element. */
	S("s", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #STRIKE}> element. */
	STRIKE("strike", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #BASEFONT}> element. */
	BASEFONT("basefont", EHTMLAttribute.ID, EHTMLAttribute.SIZE,
			EHTMLAttribute.COLOR, EHTMLAttribute.FACE),

	/** The <{@linkplain #FONT}> element. */
	FONT("font", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.SIZE, EHTMLAttribute.COLOR,
			EHTMLAttribute.FACE),

	/** The <{@linkplain #OBJECT}> element. */
	OBJECT("object", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.DECLARE, EHTMLAttribute.CLASSID,
			EHTMLAttribute.CODEBASE, EHTMLAttribute.DATA, EHTMLAttribute.TYPE,
			EHTMLAttribute.CODETYPE, EHTMLAttribute.ARCHIVE,
			EHTMLAttribute.STANDBY, EHTMLAttribute.HEIGHT,
			EHTMLAttribute.WIDTH, EHTMLAttribute.USEMAP, EHTMLAttribute.NAME,
			EHTMLAttribute.TABINDEX, EHTMLAttribute.ALIGN,
			EHTMLAttribute.BORDER, EHTMLAttribute.HSPACE, EHTMLAttribute.VSPACE),

	/** The <{@linkplain #PARAM}> element. */
	PARAM("param", EHTMLAttribute.ID, EHTMLAttribute.NAME,
			EHTMLAttribute.VALUE, EHTMLAttribute.VALUETYPE, EHTMLAttribute.TYPE),

	/** The <{@linkplain #APPLET}> element. */
	APPLET("applet", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE,
			EHTMLAttribute.CODEBASE, EHTMLAttribute.ARCHIVE,
			EHTMLAttribute.CODE, EHTMLAttribute.OBJECT, EHTMLAttribute.ALT,
			EHTMLAttribute.NAME, EHTMLAttribute.WIDTH, EHTMLAttribute.HEIGHT,
			EHTMLAttribute.ALIGN, EHTMLAttribute.HSPACE, EHTMLAttribute.VSPACE),

	/** The <{@linkplain #IMG}> element. */
	IMG("img", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.SRC, EHTMLAttribute.ALT,
			EHTMLAttribute.NAME, EHTMLAttribute.LONGDESC,
			EHTMLAttribute.HEIGHT, EHTMLAttribute.WIDTH, EHTMLAttribute.USEMAP,
			EHTMLAttribute.ISMAP, EHTMLAttribute.ALIGN, EHTMLAttribute.BORDER,
			EHTMLAttribute.HSPACE, EHTMLAttribute.VSPACE),

	/** The <{@linkplain #MAP}> element. */
	MAP("map", EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.NAME),

	/** The <{@linkplain #AREA}> element. */
	AREA("area", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ACCESSKEY,
			EHTMLAttribute.TABINDEX, EHTMLAttribute.ONFOCUS,
			EHTMLAttribute.ONBLUR, EHTMLAttribute.SHAPE, EHTMLAttribute.COORDS,
			EHTMLAttribute.HREF, EHTMLAttribute.NOHREF, EHTMLAttribute.ALT,
			EHTMLAttribute.TARGET),

	/** The <{@linkplain #FORM}> element. */
	FORM("form", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ACTION,
			EHTMLAttribute.METHOD, EHTMLAttribute.NAME, EHTMLAttribute.ENCTYPE,
			EHTMLAttribute.ONSUBMIT, EHTMLAttribute.ONRESET,
			EHTMLAttribute.ACCEPT, EHTMLAttribute.ACCEPT_CHARSET,
			EHTMLAttribute.TARGET),

	/** The <{@linkplain #LABEL}> element. */
	LABEL("label", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.FOR, EHTMLAttribute.ACCESSKEY,
			EHTMLAttribute.ONFOCUS, EHTMLAttribute.ONBLUR),

	/** The <{@linkplain #INPUT}> element. */
	INPUT("input", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ACCESSKEY, EHTMLAttribute.TABINDEX,
			EHTMLAttribute.ONFOCUS, EHTMLAttribute.ONBLUR, EHTMLAttribute.TYPE,
			EHTMLAttribute.NAME, EHTMLAttribute.VALUE, EHTMLAttribute.CHECKED,
			EHTMLAttribute.DISABLED, EHTMLAttribute.READONLY,
			EHTMLAttribute.SIZE, EHTMLAttribute.MAXLENGTH, EHTMLAttribute.SRC,
			EHTMLAttribute.ALT, EHTMLAttribute.USEMAP, EHTMLAttribute.ONSELECT,
			EHTMLAttribute.ONCHANGE, EHTMLAttribute.ACCEPT,
			EHTMLAttribute.ALIGN, EHTMLAttribute.PLACEHOLDER,
			EHTMLAttribute.AUTOFOCUS),

	/** The <{@linkplain #SELECT}> element. */
	SELECT("select", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.NAME, EHTMLAttribute.SIZE, EHTMLAttribute.MULTIPLE,
			EHTMLAttribute.DISABLED, EHTMLAttribute.TABINDEX,
			EHTMLAttribute.ONFOCUS, EHTMLAttribute.ONBLUR,
			EHTMLAttribute.ONCHANGE),

	/** The <{@linkplain #OPTGROUP}> element. */
	OPTGROUP("optgroup", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.DISABLED, EHTMLAttribute.LABEL),

	/** The <{@linkplain #OPTION}> element. */
	OPTION("option", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.SELECTED, EHTMLAttribute.DISABLED,
			EHTMLAttribute.LABEL, EHTMLAttribute.VALUE),

	/** The <{@linkplain #TEXTAREA}> element. */
	TEXTAREA("textarea", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ACCESSKEY, EHTMLAttribute.TABINDEX,
			EHTMLAttribute.ONFOCUS, EHTMLAttribute.ONBLUR, EHTMLAttribute.NAME,
			EHTMLAttribute.ROWS, EHTMLAttribute.COLS, EHTMLAttribute.DISABLED,
			EHTMLAttribute.READONLY, EHTMLAttribute.ONSELECT,
			EHTMLAttribute.ONCHANGE),

	/** The <{@linkplain #FIELDSET}> element. */
	FIELDSET("fieldset", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP),

	/** The <{@linkplain #LEGEND}> element. */
	LEGEND("legend", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ACCESSKEY, EHTMLAttribute.ALIGN),

	/** The <{@linkplain #BUTTON}> element. */
	BUTTON("button", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ACCESSKEY, EHTMLAttribute.TABINDEX,
			EHTMLAttribute.ONFOCUS, EHTMLAttribute.ONBLUR, EHTMLAttribute.NAME,
			EHTMLAttribute.VALUE, EHTMLAttribute.TYPE, EHTMLAttribute.DISABLED),

	/** The <{@linkplain #ISINDEX}> element. */
	ISINDEX("isindex", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR, EHTMLAttribute.PROMPT),

	/** The <{@linkplain #TABLE}> element. */
	TABLE("table", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.SUMMARY, EHTMLAttribute.WIDTH,
			EHTMLAttribute.BORDER, EHTMLAttribute.FRAME, EHTMLAttribute.RULES,
			EHTMLAttribute.CELLSPACING, EHTMLAttribute.CELLPADDING,
			EHTMLAttribute.ALIGN, EHTMLAttribute.BGCOLOR),

	/** The <{@linkplain #CAPTION}> element. */
	CAPTION("caption", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ALIGN),

	/** The <{@linkplain #COLGROUP}> element. */
	COLGROUP("colgroup", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.SPAN, EHTMLAttribute.WIDTH, EHTMLAttribute.ALIGN,
			EHTMLAttribute.CHAR, EHTMLAttribute.CHAROFF, EHTMLAttribute.VALIGN),

	/** The <{@linkplain #COL}> element. */
	COL("col", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.SPAN, EHTMLAttribute.WIDTH,
			EHTMLAttribute.ALIGN, EHTMLAttribute.CHAR, EHTMLAttribute.CHAROFF,
			EHTMLAttribute.VALIGN),

	/** The <{@linkplain #THEAD}> element. */
	THEAD("thead", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ALIGN, EHTMLAttribute.CHAR, EHTMLAttribute.CHAROFF,
			EHTMLAttribute.VALIGN),

	/** The <{@linkplain #TFOOT}> element. */
	TFOOT("tfoot", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ALIGN, EHTMLAttribute.CHAR, EHTMLAttribute.CHAROFF,
			EHTMLAttribute.VALIGN),

	/** The <{@linkplain #TBODY}> element. */
	TBODY("tbody", EHTMLAttribute.ID, EHTMLAttribute.CLASS,
			EHTMLAttribute.STYLE, EHTMLAttribute.TITLE, EHTMLAttribute.LANG,
			EHTMLAttribute.XML_LANG, EHTMLAttribute.DIR,
			EHTMLAttribute.ONCLICK, EHTMLAttribute.ONDBLCLICK,
			EHTMLAttribute.ONMOUSEDOWN, EHTMLAttribute.ONMOUSEUP,
			EHTMLAttribute.ONMOUSEOVER, EHTMLAttribute.ONMOUSEMOVE,
			EHTMLAttribute.ONMOUSEOUT, EHTMLAttribute.ONKEYPRESS,
			EHTMLAttribute.ONKEYDOWN, EHTMLAttribute.ONKEYUP,
			EHTMLAttribute.ALIGN, EHTMLAttribute.CHAR, EHTMLAttribute.CHAROFF,
			EHTMLAttribute.VALIGN),

	/** The <{@linkplain #TR}> element. */
	TR("tr", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ALIGN, EHTMLAttribute.CHAR,
			EHTMLAttribute.CHAROFF, EHTMLAttribute.VALIGN,
			EHTMLAttribute.BGCOLOR),

	/** The <{@linkplain #TH}> element. */
	TH("th", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ABBR, EHTMLAttribute.AXIS,
			EHTMLAttribute.HEADERS, EHTMLAttribute.SCOPE,
			EHTMLAttribute.ROWSPAN, EHTMLAttribute.COLSPAN,
			EHTMLAttribute.ALIGN, EHTMLAttribute.CHAR, EHTMLAttribute.CHAROFF,
			EHTMLAttribute.VALIGN, EHTMLAttribute.NOWRAP,
			EHTMLAttribute.BGCOLOR, EHTMLAttribute.WIDTH, EHTMLAttribute.HEIGHT),

	/** The <{@linkplain #TD}> element. */
	TD("td", EHTMLAttribute.ID, EHTMLAttribute.CLASS, EHTMLAttribute.STYLE,
			EHTMLAttribute.TITLE, EHTMLAttribute.LANG, EHTMLAttribute.XML_LANG,
			EHTMLAttribute.DIR, EHTMLAttribute.ONCLICK,
			EHTMLAttribute.ONDBLCLICK, EHTMLAttribute.ONMOUSEDOWN,
			EHTMLAttribute.ONMOUSEUP, EHTMLAttribute.ONMOUSEOVER,
			EHTMLAttribute.ONMOUSEMOVE, EHTMLAttribute.ONMOUSEOUT,
			EHTMLAttribute.ONKEYPRESS, EHTMLAttribute.ONKEYDOWN,
			EHTMLAttribute.ONKEYUP, EHTMLAttribute.ABBR, EHTMLAttribute.AXIS,
			EHTMLAttribute.HEADERS, EHTMLAttribute.SCOPE,
			EHTMLAttribute.ROWSPAN, EHTMLAttribute.COLSPAN,
			EHTMLAttribute.ALIGN, EHTMLAttribute.CHAR, EHTMLAttribute.CHAROFF,
			EHTMLAttribute.VALIGN, EHTMLAttribute.NOWRAP,
			EHTMLAttribute.BGCOLOR, EHTMLAttribute.WIDTH, EHTMLAttribute.HEIGHT);

	/** The "real" name of the element. */
	private final String name;

	/** The attributes acutally allowed for this element. */
	private final Set<EHTMLAttribute> allowedAttributes;

	/** Constructor. */
	private EHTMLElement(String name, EHTMLAttribute... attributes) {
		this.name = name;
		if (attributes.length > 0) {
			allowedAttributes = EnumSet.of(attributes[0], attributes);
		} else {
			allowedAttributes = EnumSet.noneOf(EHTMLAttribute.class);
		}
	}

	/** Returns whether the given attribute is allowed for the element. */
	public boolean allowsAttribute(EHTMLAttribute attribute) {
		return allowedAttributes.contains(attribute);
	}

	/** Returns the name as used in the HTML output. */
	public String getName() {
		return name;
	}

	/** {@inheritDoc} */
	@Override
	public String toString() {
		return name;
	}
}


text:
TITLE="Config mongodb's information !!!"

#SET DEFAULT DIRECTORY
self="$0"
dir=`dirname "$self"`
path=`pwd $0`
if [ "$dir" == "." ]
then
    export dirname=`pwd $0`
else
    export dirname=$path"/"$dir
fi
    export currentdir=`pwd`/

# MOVE TO THE WIPERDOG HOME/BIN
PREFIX=`cd "$dir/.." && pwd`
cd "$PREFIX/bin"

# MAIN FUNCTION
function main() {
    chooseOption
    getDataInput
    setDefaultValue
    confirm=""
    while [[ $confirm != "N" ]] && [[ $confirm != "Y" ]]
    do
        # CONFIRM INPUT DATA
        echo ========== INFORMATION ENTERED ==========
        echo "Host: $host, Port: $port, Database name: $dbName, Username: $user, Password: $pass"
        echo -n "INFORMATION IS CORRECT ? [Y | y | N | n]?: "
        read confirm
        if [ "$confirm" == "n" ]
        then
            confirm="N"
        fi
        if [ "$confirm" == "y" ]
        then
            confirm="Y"
        fi
    done

    if [ "$confirm" == "N" ]
    then
        main
    elif [ "$confirm" == "Y" ]
    then
        sendToGroovy
    fi
}

# DISPLAY OPTIONS
function chooseOption() {
    clear
    echo ========== CONFIG CONNECT INFORMATION OF MONGODB ==========
    echo '1. CONFIG MONGODB FOR COMMON CONNECT (For Servlets, Policy evaluate, Send Policy mail, ...)'
    echo '2. CONFIG MONGODB FOR MANUAL CONNECT (For send monitoring data to MongoDB directly)'
    echo '3. EXIT'

    echo -n "YOUR CHOICE: "
    read option
    setDataStatus option
}

# SET DATA FOR STATUS PARAMETER
function setDataStatus() {
    if [ $option == 1 ]
    then
        export status="commonConfig"
    elif [ $option == 2 ]
    then
        export status="manualConfig"
    elif [ $option == 3 ]
    then
        exit
    else
        export option=""
        chooseOption
    fi
}

# GET DATA INPUT FROM CONSOLE
function getDataInput() {
    # host
    echo -n "Host name (Default 127.0.0.1): "
    read host
    # port
    echo -n "Port (Default 27017): "
    read port
    checkPort $port
    while [ $isNumber -eq 0 ]
    do
        echo "Port is not a valid number. Please reconfig !!!"
        echo -n "Port (Default 27017): "
        read port
        checkPort $port
    done
    # db name
    echo -n "Database name (Default wiperdog): "
    read dbName
    # user
    echo -n "Username (Default empty): "
    read user
    # pass
    echo -n "Password (Default empty): "
    read pass
}

# SET DEFAULT VALUE WHEN NO CONFIG AND VALIDATE
function setDefaultValue() {
    # host
    if [ "$host" == "" ]
    then
        host="127.0.0.1"
    fi
    # port: set default value
    if [ "$port" == "" ]
    then
        port="27017"
    fi
    # db name
    if [ "$dbName" == "" ]
    then
        dbName="wiperdog"
    fi
}

# CHECK PORT MUST BE NUMBER
function checkPort() {
    export isNumber=1
    if ! [[ $1 =~ ^[0-9]+$ ]]
    then
        if [ "$1" == "" ]
        then
            isNumber=1
        else
	    isNumber=0
        fi
    fi
}

# SEND DATA INPUT TO GROOVY FILE
function sendToGroovy() {
    "./groovy" "./gendbmongoinfo.groovy" "$status" "$host" "$port" "$dbName" "$user" "$pass"
}

# CALL MAIN FUNCTION
main


text:
package com.intellij.openapi.wm.impl;

import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.extensions.Extensions;
import com.intellij.openapi.wm.*;
import com.intellij.testFramework.MapDataContext;

import java.util.*;

public class HideAllToolWindowsTest extends ToolWindowManagerTestCase {
  public void testDontHideFloatingAndWindowedToolWindows() {
    ToolWindowEP[] extensions = Extensions.getExtensions(ToolWindowEP.EP_NAME);

    Map<String, ToolWindowType> types = new HashMap<>();
    List<ToolWindowType> cycle = new ArrayList<>(Arrays.asList(ToolWindowType.values()));
    for (int i = 0; i < extensions.length; i++) {
      ToolWindowEP extension = extensions[i];
      myManager.initToolWindow(extension);
      myManager.showToolWindow(extension.id);

      ToolWindowType type = cycle.get(i % cycle.size());
      types.put(extension.id, type);
      myManager.setToolWindowType(extension.id, type);
    }
    MapDataContext context = new MapDataContext();
    context.put(CommonDataKeys.PROJECT, getProject());
    Set<String> visibleIds = new HashSet<>();
    for (String id : types.keySet()) {
      if (myManager.getToolWindow(id).isVisible()) {
        visibleIds.add(id);
      }
    }
    ActionManager.getInstance().getAction("HideAllWindows").actionPerformed(AnActionEvent.createFromDataContext("", null, context));

    for (String id : visibleIds) {
      ToolWindow window = myManager.getToolWindow(id);
      assertEquals(id + ":" + window.getType(),
                   types.get(id) == ToolWindowType.FLOATING || types.get(id) == ToolWindowType.WINDOWED,
                   window.isVisible());
    }
  }
}


text:
import * as React from "react";
const logo = require("../../../resources/images/logo.png");

import {
  BbPage,
} from "../../building-blocks/bb-page-elements";

export class Loading extends React.Component<any, any> {
  render() {
    return (
      <BbPage classes="tip-loading"
        documentTitle={this.props.documentTitle}
        meta={
          {
            description: "Loading...",
            url: `/`
          }
        }>

      </BbPage>
    );
  }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory android:title="Networking">

        <!-- where %s in android:summary, will resolve to the selected String (human-readable) entry -->
        <ListPreference
            android:key="config_drawer_network_env"
            android:title="Network Environment"
            android:summary="%s"
            android:defaultValue="test"
            android:entries="@array/listArrayNetworkEnv"
            android:entryValues="@array/listValuesNetworkEnv" />

        <com.jgrife.configdrawer.views.EditTextPreference
            android:key="config_drawer_network_timeout"
            android:title="Network Timeout (millisec)"
            android:summary="%s milliseconds"
            android:numeric="integer"
            android:defaultValue="2500" />

    </PreferenceCategory>

    <PreferenceCategory android:title="Authorization">

        <Preference
            android:key="config_drawer_logout"
            android:title="Logout"
            android:summary="Clicking will perform a logout." />

    </PreferenceCategory>

    <PreferenceCategory android:title="Settings">

        <SwitchPreference
            android:key="config_drawer_enable_crashlytics"
            android:title="Enable Crashlytics"
            android:defaultValue="true" />

    </PreferenceCategory>

    <PreferenceCategory android:title="About App">

        <Preference
            android:key="config_drawer_app_build"
            android:title="Build Type & Version" />

    </PreferenceCategory>

</PreferenceScreen>


text:
define(['underscore'], function(){
	/**
	 * Abstract-layer for all content-controller.
	 * @param args : urlState (query-params from current-url)
	 */
	function BaseContentController(args){}

	// this way of implementation ensures that it works together with es6 inheritance
	BaseContentController.prototype = {
		view: undefined,

		/**
		 * Override in order to init controller.
		 * Note, before the callback the view must be initialized.
		 * @param callback : function(err), must be called to signal ready with init.
		 */
		init : function(callback){
			callback();
		},

		/**
		 * Triggers the view to add initialized content ($el) to given $content.
		 * @param $content, the content in which the view to render
		 */
		show : function($content){
			if(!this.view){
				throw new Error('The controller '+this.constructor+' must initialize the view!');
			}
			this.view.show($content);
		},

		/**
		 * Called when user navigate away from this content.
		 * The call takes place before the new-content request is performed.
		 * This enables to show loading notification.
		 */
		beforeNavigate : function(){},

		/**
		 * Initializes given View-constructor with given args, this controller instance
		 * is added by default to the args.
		 * @param View - view-constructor
		 * @param args - args to apply
		 */
		initPageViewTask : function(View, args){
			var scope = this;
			args = _.extend({controller: this}, args);
			return function(callback){
				scope.view = new View(args);
				callback();
			};
		}
	}
	BaseContentController.prototype.constructor = BaseContentController;

	return BaseContentController;
});


text:
package org.pentaho.di.trans.steps.csvinput;

import static org.junit.Assert.assertEquals;

import java.util.HashMap;
import java.util.Map;

import org.junit.Before;
import org.junit.Test;

public class NamedFieldsMappingTest {

  private NamedFieldsMapping fieldsMapping;

  @Before
  public void before() {
    Map<Integer, Integer> actualToMetaFieldsMap = new HashMap<>();
    actualToMetaFieldsMap.put( 0, 3 );
    actualToMetaFieldsMap.put( 1, 4 );
    fieldsMapping = new NamedFieldsMapping( actualToMetaFieldsMap );
  }

  @Test
  public void fieldMetaIndex() {
    assertEquals( 3, fieldsMapping.fieldMetaIndex( 0 ) );
  }

  @Test
  public void fieldMetaIndexWithUnexistingField() {
    assertEquals( FieldsMapping.FIELD_DOES_NOT_EXIST, fieldsMapping.fieldMetaIndex( 4 ) );
  }

  @Test
  public void size() {
    assertEquals( 2, fieldsMapping.size() );
  }

  @Test
  public void mapping() {
    NamedFieldsMapping mapping =
        NamedFieldsMapping.mapping( new String[] { "FIRST", "SECOND", "THIRD" }, new String[] { "SECOND", "THIRD" } );
    assertEquals( 0, mapping.fieldMetaIndex( 1 ) );
  }

  @Test
  public void mappingWithNonUniqueColumnNames() {
    NamedFieldsMapping mapping =
        NamedFieldsMapping.mapping( new String[] { "Object", "Test", "Object" }, new String[] { "Object", "Test",
          "Object" } );
    assertEquals( 0, mapping.fieldMetaIndex( 0 ) );
    assertEquals( 2, mapping.fieldMetaIndex( 2 ) );
  }

  @Test
  public void fieldMetaIndexWithUnexistingField_nonUniqueColumnNames() {
    NamedFieldsMapping mapping =
        NamedFieldsMapping.mapping( new String[] { "Object", "Test", "Object" }, new String[] { "Object", "Test" } );
    assertEquals( FieldsMapping.FIELD_DOES_NOT_EXIST, mapping.fieldMetaIndex( 2 ) );
  }

}


text:
package org.osgi.service.monitor;

/**
 * A Monitoring Job is a request for scheduled or event based notifications on
 * update of a set of StatusVariables. The job is a data structure
 * that holds a non-empty list of StatusVariable names, an
 * identification of the initiator of the job, and the sampling parameters.
 * There are two kinds of monitoring jobs: time based and change based. Time
 * based jobs take samples of all StatusVariables with a specified
 * frequency. The number of samples to be taken before the job finishes may be
 * specified. Change based jobs are only interested in the changes of the
 * monitored StatusVariables. In this case, the number of changes
 * that must take place between two notifications can be specified.
 *

 * The job can be started on the MonitorAdmin interface. Running
 * the job (querying the StatusVariables, listening to changes, and
 * sending out notifications on updates) is the task of the
 * MonitorAdmin implementation.
 *

 * Whether a monitoring job keeps track dynamically of the
 * StatusVariables it monitors is not specified. This means that if
 * we monitor a StatusVariable of a Monitorable
 * service which disappears and later reappears then it is implementation
 * specific whether we still receive updates of the StatusVariable
 * changes or not.
 *
 * @version $Revision: 7940 $
 */
public interface MonitoringJob {
    /**
     * Stops a Monitoring Job. Note that a time based job can also stop
     * automatically if the specified number of samples have been taken.
     */
    public void stop();

    /**
     * Returns the identifier of the principal who initiated the job. This is
     * set at the time when
     * {@link MonitorAdmin#startJob MonitorAdmin.startJob()} method is called.
     * This string holds the ServerID if the operation was initiated from a
     * remote manager, or an arbitrary ID of the initiator entity in the local
     * case (used for addressing notification events).
     *
     * @return the ID of the initiator, cannot be null
     */
    public String getInitiator();

    /**
     * Returns the list of StatusVariable names that are the
     * targets of this measurement job. For time based jobs, the
     * MonitorAdmin will iterate through this list and query all
     * StatusVariables when its timer set by the job's frequency
     * rate expires.
     *
     * @return the target list of the measurement job in
     *         [Monitorable_ID]/[StatusVariable_ID] format, cannot be
     *         null
     */
    public String[] getStatusVariableNames();

    /**
     * Returns the delay (in seconds) between two samples. If this call returns
     * N (greater than 0) then the MonitorAdmin queries each
     * StatusVariable that belongs to this job every N seconds.
     * The value 0 means that the job is not scheduled but event based: in this
     * case instant notification on changes is requested (at every n-th change of
     * the value, as specified by the report count parameter).
     *
     * @return the delay (in seconds) between samples, or 0 for change based
     *         jobs
     */
    public int getSchedule();

    /**
     * Returns the number of times MonitorAdmin will query the
     * StatusVariables (for time based jobs), or the number of
     * changes of a StatusVariable between notifications (for
     * change based jobs). Time based jobs with non-zero report count will take
     * getReportCount()*getSchedule() time to
     * finish. Time based jobs with 0 report count and change based jobs do not
     * stop automatically, but all jobs can be stopped with the {@link #stop}
     * method.
     *
     * @return the number of measurements to be taken, or the number of changes
     *         between notifications
     */
    public int getReportCount();

    /**
     * Returns whether the job was started locally or remotely.  Jobs started by
     * the clients of this API are always local, remote jobs can only be started
     * using the Device Management Tree.
     *
     * @return true if the job was started from the local device,
     *         false if the job was initiated from a management
     *         server through the device management tree
     */
    public boolean isLocal();

    /**
     * Returns whether the job is running.   A job is running until it is
     * explicitly stopped, or, in case of time based jobs with a finite report
     * count, until the given number of measurements have been made.
     *
     * @return true if the job is still running, false
     *         if it has finished
     */
    public boolean isRunning();
}