text:
<?php namespace Stevenyangecho\UEditor;

use Laravel\Lumen\Routing\Controller as BaseController;
use Illuminate\Http\Response;
use Illuminate\Http\Request;
use Stevenyangecho\UEditor\Uploader\UploadScrawl;
use Stevenyangecho\UEditor\Uploader\UploadFile;
use Stevenyangecho\UEditor\Uploader\UploadCatch;

class LumenController extends BaseController
{

    public function __construct()
    {

    }

    public function server(Request $request)
    {
        $config = config('UEditorUpload.upload');

        $action = $request->get('action');

        switch ($action) {

            case 'config':
                $result = $config;
                break;
            case 'uploadimage':
                $upConfig = array(
                    "pathFormat" => $config['imagePathFormat'],
                    "maxSize" => $config['imageMaxSize'],
                    "allowFiles" => $config['imageAllowFiles'],
                    'fieldName' => $config['imageFieldName'],
                );
                $result = with(new UploadFile($upConfig, $request))->upload();
                break;
            case 'uploadscrawl':
                $upConfig = array(
                    "pathFormat" => $config['scrawlPathFormat'],
                    "maxSize" => $config['scrawlMaxSize'],
                    //   "allowFiles" => $config['scrawlAllowFiles'],
                    "oriName" => "scrawl.png",
                    'fieldName' => $config['scrawlFieldName'],
                );
                $result = with(new UploadScrawl($upConfig, $request))->upload();

                break;
            case 'uploadvideo':
                $upConfig = array(
                    "pathFormat" => $config['videoPathFormat'],
                    "maxSize" => $config['videoMaxSize'],
                    "allowFiles" => $config['videoAllowFiles'],
                    'fieldName' => $config['videoFieldName'],
                );
                $result = with(new UploadFile($upConfig, $request))->upload();

                break;
            case 'uploadfile':
            default:
                $upConfig = array(
                    "pathFormat" => $config['filePathFormat'],
                    "maxSize" => $config['fileMaxSize'],
                    "allowFiles" => $config['fileAllowFiles'],
                    'fieldName' => $config['fileFieldName'],
                );
                $result = with(new UploadFile($upConfig, $request))->upload();

                break;

            /* 列出图片 */
            case 'listimage':

                if (config('UEditorUpload.core.mode') == 'local') {
                    $result = with(new Lists(
                        $config['imageManagerAllowFiles'],
                        $config['imageManagerListSize'],
                        $config['imageManagerListPath'],
                        $request))->getList();
                } else if (config('UEditorUpload.core.mode') == 'qiniu') {
                    $result = with(new ListsQiniu(
                        $config['imageManagerAllowFiles'],
                        $config['imageManagerListSize'],
                        $config['imageManagerListPath'],
                        $request))->getList();
                }else {
                    $result = with(new Lists(
                        $config['imageManagerAllowFiles'],
                        $config['imageManagerListSize'],
                        $config['imageManagerListPath'],
                        $request))->getList();
                }

                break;
            /* 列出文件 */
            case 'listfile':
                if (config('UEditorUpload.core.mode') == 'local') {
                    $result = with(new Lists(
                        $config['fileManagerAllowFiles'],
                        $config['fileManagerListSize'],
                        $config['fileManagerListPath'],
                        $request))->getList();
                }else if (config('UEditorUpload.core.mode') == 'qiniu') {
                    $result = with(new ListsQiniu(
                        $config['fileManagerAllowFiles'],
                        $config['fileManagerListSize'],
                        $config['fileManagerListPath'],
                        $request))->getList();
                }else {
                    $result = with(new Lists(
                        $config['imageManagerAllowFiles'],
                        $config['imageManagerListSize'],
                        $config['imageManagerListPath'],
                        $request))->getList();
                }

                break;

            /* 抓取远程文件 */
            case 'catchimage':

                $upConfig = array(
                    "pathFormat" => $config['catcherPathFormat'],
                    "maxSize" => $config['catcherMaxSize'],
                    "allowFiles" => $config['catcherAllowFiles'],
                    "oriName" => "remote.png",
                    'fieldName' => $config['catcherFieldName'],
                );

                $sources = $request->get($upConfig['fieldName']);
                $list = [];
                foreach ($sources as $imgUrl) {
                    $upConfig['imgUrl'] = $imgUrl;
                    $info = with(new UploadCatch($upConfig, $request))->upload();

                    array_push($list, array(
                        "state" => $info["state"],
                        "url" => $info["url"],
                        "size" => $info["size"],
                        "title" => htmlspecialchars($info["title"]),
                        "original" => htmlspecialchars($info["original"]),
                        "source" => htmlspecialchars($imgUrl)
                    ));
                }
                $result = [
                    'state' => count($list) ? 'SUCCESS' : 'ERROR',
                    'list' => $list
                ];

                break;
        }

        if (strpos($_SERVER['HTTP_USER_AGENT'],"Triden")) {
            //如果是IE 特殊处理header
            return response($result,200)->header('Content-Type', 'text/html;charset=utf-8');
        } else{
            return response()->json($result, 200, [], JSON_UNESCAPED_UNICODE);
        }

    }

}


text:
package at.fhj.itm.pswe.selenium;

import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

import junit.framework.Assert;

public class TestAddNewPage {
	private FirefoxDriver selenium;
	private String url;

	@Before
	public void setUp() throws Exception {
		selenium = new FirefoxDriver();
		selenium.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	}

	public void addSite() {
		url = "http://rehcu.at";
		selenium.get("http://itm13jenkins.redirectme.net:8080/TermStatistics/");
		selenium.findElementByLinkText("New").click();
		selenium.findElement(By.id("DTE_Field_address")).sendKeys(url);
		selenium.findElement(By.id("DTE_Field_description")).sendKeys("Testseite");
		selenium.findElement(By.id("DTE_Field_depth")).sendKeys("1");
		WebElement web = selenium.findElementByCssSelector("div.DTE_Form_Buttons > button.btn");
		web.click();
	}

	@Test
	public void testAddSite() throws Exception {
		addSite();
		Thread.sleep(1000);
		String output = selenium.findElement(By.id("site-list-table")).getText();
		System.out.println(output);
		if (output.contains(url)) {
			Assert.assertTrue(true);
		} else {
			Assert.assertFalse("Site was not added", true);
		}
	}

	@Test
	public void testAddSameSite() throws Exception {
		addSite();
		addSite();
		WebElement element = (new WebDriverWait(selenium, 10))
				.until(ExpectedConditions.elementToBeClickable(By.cssSelector("div.DTE_Form_Error")));
		WebElement error = selenium.findElementByCssSelector("div.DTE_Form_Error");
		Assert.assertEquals(error.getText(), "Website already in the Database!");
	}

	@After
	public void tearDown() throws Exception {
		selenium.get("http://itm13jenkins.redirectme.net:8080/TermStatistics/rest/website/rehcu.at/delete");
		selenium.quit();
	}
}

redpajama_set_name: RedPajamaGithub


text:
.class public final Lcom/android/server/NotificationManagerService$NotificationRecord;
.super Ljava/lang/Object;
.source "NotificationManagerService.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/server/NotificationManagerService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "NotificationRecord"
.end annotation

# instance fields
.field final sbn:Landroid/service/notification/StatusBarNotification;

.field statusBarKey:Landroid/os/IBinder;

# direct methods
.method constructor <init>(Landroid/service/notification/StatusBarNotification;)V
    .locals 0
    .parameter "sbn"

    .prologue
    .line 917
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 918
    iput-object p1, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    .line 919
    return-void
.end method

# virtual methods
.method dump(Ljava/io/PrintWriter;Ljava/lang/String;Landroid/content/Context;)V
    .locals 12
    .parameter "pw"
    .parameter "prefix"
    .parameter "baseContext"

    .prologue
    .line 926
    iget-object v7, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v7}, Landroid/service/notification/StatusBarNotification;->getNotification()Landroid/app/Notification;

    move-result-object v5

    .line 927
    .local v5, notification:Landroid/app/Notification;
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 928
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  uid="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v8}, Landroid/service/notification/StatusBarNotification;->getUid()I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " userId="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v8}, Landroid/service/notification/StatusBarNotification;->getUserId()I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 929
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  icon=0x"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget v8, v5, Landroid/app/Notification;->icon:I

    invoke-static {v8}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " / "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v8}, Landroid/service/notification/StatusBarNotification;->getPackageName()Ljava/lang/String;

    move-result-object v8

    iget v9, v5, Landroid/app/Notification;->icon:I

    #calls: Lcom/android/server/NotificationManagerService;->idDebugString(Landroid/content/Context;Ljava/lang/String;I)Ljava/lang/String;
    invoke-static {p3, v8, v9}, Lcom/android/server/NotificationManagerService;->access$400(Landroid/content/Context;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 931
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  pri="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget v8, v5, Landroid/app/Notification;->priority:I

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " score="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v8}, Landroid/service/notification/StatusBarNotification;->getScore()I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 932
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  contentIntent="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, v5, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 933
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  deleteIntent="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, v5, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 934
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  tickerText="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, v5, Landroid/app/Notification;->tickerText:Ljava/lang/CharSequence;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 935
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  contentView="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, v5, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 936
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  defaults=0x%08x flags=0x%08x"

    const/4 v9, 0x2

    new-array v9, v9, [Ljava/lang/Object;

    const/4 v10, 0x0

    iget v11, v5, Landroid/app/Notification;->defaults:I

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    aput-object v11, v9, v10

    const/4 v10, 0x1

    iget v11, v5, Landroid/app/Notification;->flags:I

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    aput-object v11, v9, v10

    invoke-static {v8, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 938
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  sound="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, v5, Landroid/app/Notification;->sound:Landroid/net/Uri;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 939
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  vibrate="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, v5, Landroid/app/Notification;->vibrate:[J

    invoke-static {v8}, Ljava/util/Arrays;->toString([J)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 940
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  led=0x%08x onMs=%d offMs=%d"

    const/4 v9, 0x3

    new-array v9, v9, [Ljava/lang/Object;

    const/4 v10, 0x0

    iget v11, v5, Landroid/app/Notification;->ledARGB:I

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    aput-object v11, v9, v10

    const/4 v10, 0x1

    iget v11, v5, Landroid/app/Notification;->ledOnMS:I

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    aput-object v11, v9, v10

    const/4 v10, 0x2

    iget v11, v5, Landroid/app/Notification;->ledOffMS:I

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    aput-object v11, v9, v10

    invoke-static {v8, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 942
    iget-object v7, v5, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;

    if-eqz v7, :cond_1

    iget-object v7, v5, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;

    array-length v7, v7

    if-lez v7, :cond_1

    .line 943
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  actions={"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 944
    iget-object v7, v5, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;

    array-length v0, v7

    .line 945
    .local v0, N:I
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    if-ge v2, v0, :cond_0

    .line 946
    iget-object v7, v5, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;

    aget-object v1, v7, v2

    .line 947
    .local v1, action:Landroid/app/Notification$Action;
    const-string v7, "%s    [%d] \"%s\" -> %s"

    const/4 v8, 0x4

    new-array v8, v8, [Ljava/lang/Object;

    const/4 v9, 0x0

    aput-object p2, v8, v9

    const/4 v9, 0x1

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v8, v9

    const/4 v9, 0x2

    iget-object v10, v1, Landroid/app/Notification$Action;->title:Ljava/lang/CharSequence;

    aput-object v10, v8, v9

    const/4 v9, 0x3

    iget-object v10, v1, Landroid/app/Notification$Action;->actionIntent:Landroid/app/PendingIntent;

    invoke-virtual {v10}, Landroid/app/PendingIntent;->toString()Ljava/lang/String;

    move-result-object v10

    aput-object v10, v8, v9

    invoke-static {v7, v8}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 945
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 954
    .end local v1           #action:Landroid/app/Notification$Action;
    :cond_0
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  }"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 956
    .end local v0           #N:I
    .end local v2           #i:I
    :cond_1
    iget-object v7, v5, Landroid/app/Notification;->extras:Landroid/os/Bundle;

    if-eqz v7, :cond_8

    iget-object v7, v5, Landroid/app/Notification;->extras:Landroid/os/Bundle;

    invoke-virtual {v7}, Landroid/os/Bundle;->size()I

    move-result v7

    if-lez v7, :cond_8

    .line 957
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  extras={"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 958
    iget-object v7, v5, Landroid/app/Notification;->extras:Landroid/os/Bundle;

    invoke-virtual {v7}, Landroid/os/Bundle;->keySet()Ljava/util/Set;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    .local v3, i$:Ljava/util/Iterator;
    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_7

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 959
    .local v4, key:Ljava/lang/String;
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "    "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    .line 960
    iget-object v7, v5, Landroid/app/Notification;->extras:Landroid/os/Bundle;

    invoke-virtual {v7, v4}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    .line 961
    .local v6, val:Ljava/lang/Object;
    if-nez v6, :cond_2

    .line 962
    const-string v7, "null"

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    goto :goto_1

    .line 964
    :cond_2
    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    .line 965
    instance-of v7, v6, Landroid/graphics/Bitmap;

    if-eqz v7, :cond_4

    .line 966
    const-string v8, " (%dx%d)"

    const/4 v7, 0x2

    new-array v9, v7, [Ljava/lang/Object;

    const/4 v10, 0x0

    move-object v7, v6

    check-cast v7, Landroid/graphics/Bitmap;

    invoke-virtual {v7}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v7

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v9, v10

    const/4 v7, 0x1

    check-cast v6, Landroid/graphics/Bitmap;

    .end local v6           #val:Ljava/lang/Object;
    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v10

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v9, v7

    invoke-static {v8, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    .line 978
    :cond_3
    :goto_2
    invoke-virtual {p1}, Ljava/io/PrintWriter;->println()V

    goto :goto_1

    .line 969
    .restart local v6       #val:Ljava/lang/Object;
    :cond_4
    invoke-virtual {v6}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Class;->isArray()Z

    move-result v7

    if-eqz v7, :cond_3

    .line 970
    const-string v7, " {"

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 971
    invoke-static {v6}, Ljava/lang/reflect/Array;->getLength(Ljava/lang/Object;)I

    move-result v0

    .line 972
    .restart local v0       #N:I
    const/4 v2, 0x0

    .restart local v2       #i:I
    :goto_3
    if-ge v2, v0, :cond_6

    .line 973
    if-lez v2, :cond_5

    const-string v7, ","

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 974
    :cond_5
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "      "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-static {v6, v2}, Ljava/lang/reflect/Array;->get(Ljava/lang/Object;I)Ljava/lang/Object;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    .line 972
    add-int/lit8 v2, v2, 0x1

    goto :goto_3

    .line 976
    :cond_6
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "\n"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "    }"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    goto :goto_2

    .line 981
    .end local v0           #N:I
    .end local v2           #i:I
    .end local v4           #key:Ljava/lang/String;
    .end local v6           #val:Ljava/lang/Object;
    :cond_7
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "  }"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p1, v7}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V

    .line 983
    .end local v3           #i$:Ljava/util/Iterator;
    :cond_8
    return-void
.end method

.method public getFlags()I
    .locals 1

    .prologue
    .line 922
    iget-object v0, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v0}, Landroid/service/notification/StatusBarNotification;->getNotification()Landroid/app/Notification;

    move-result-object v0

    iget v0, v0, Landroid/app/Notification;->flags:I

    return v0
.end method

.method public getNotification()Landroid/app/Notification;
    .locals 1

    .prologue
    .line 921
    iget-object v0, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v0}, Landroid/service/notification/StatusBarNotification;->getNotification()Landroid/app/Notification;

    move-result-object v0

    return-object v0
.end method

.method public getUserId()I
    .locals 1

    .prologue
    .line 923
    iget-object v0, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v0}, Landroid/service/notification/StatusBarNotification;->getUserId()I

    move-result v0

    return v0
.end method

.method public final toString()Ljava/lang/String;
    .locals 4

    .prologue
    .line 987
    const-string v0, "NotificationRecord(0x%08x: pkg=%s user=%s id=%d tag=%s score=%d: %s)"

    const/4 v1, 0x7

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    iget-object v3, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v3}, Landroid/service/notification/StatusBarNotification;->getPackageName()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x2

    iget-object v3, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v3}, Landroid/service/notification/StatusBarNotification;->getUser()Landroid/os/UserHandle;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x3

    iget-object v3, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v3}, Landroid/service/notification/StatusBarNotification;->getId()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x4

    iget-object v3, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v3}, Landroid/service/notification/StatusBarNotification;->getTag()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x5

    iget-object v3, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v3}, Landroid/service/notification/StatusBarNotification;->getScore()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x6

    iget-object v3, p0, Lcom/android/server/NotificationManagerService$NotificationRecord;->sbn:Landroid/service/notification/StatusBarNotification;

    invoke-virtual {v3}, Landroid/service/notification/StatusBarNotification;->getNotification()Landroid/app/Notification;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method


text:
from token_signing import (
    sign_token, wrap_token, sign_token_records
)

from token_verifying import (
    verify_token, verify_token_record, get_profile_from_tokens
)

from zone_file_format import (
    make_zone_file_for_hosted_data,
    get_token_file_url_from_zone_file,
    zone_file_has_a_valid_uri_record,
    resolve_zone_file_to_profile
)

from legacy_format import (
    get_person_from_legacy_format,
    is_profile_in_legacy_format,
    convert_profile_to_legacy_format
)

from person import Person


text:
import { GQLBase, Schema, Properties, resolver } from 'graphql-lattice'

/**
 *
 *
 * @export
 * @class
 */
@Schema(/* GraphQL */`
  type @@CLASS_NAME@@ {

  }

  type Query {

  }
`)
@Properties()
export class @@CLASS_NAME@@ extends GQLBase {

  /** @inheritdoc */
  static apiDocs(): Object {
    const { joinLines } = this;

    return {
      [this.DOC_CLASS]: joinLines`
        TODO Describe @@CLASS_NAME@@ here.
      `,

      [this.DOC_FIELDS]: {
        // fieldName: joinLines`
        //   fieldDescription
        // `,
      },

      [this.DOC_QUERIES]: {
        // queryName: `queryDescription`,
      },

      [this.DOC_MUTATORS]: {
        // mutatorName: `mutatorDescription`
      }
    }
  }
}

export default @@CLASS_NAME@@


text:
<?php

/**
 * Create the general colore config array.
 */
$config['colore'] = array();

/**
 * Create the defaults array.
 */
$config['colore']['defaults'] = array();

/**
 * Specify default contexts.
 */
$config['colore']['defaults']['contexts'] = array(
	'default' => 'default',
	'error' => 'error',
);

/**
 * Set default render properties.
 */
$config['colore']['defaults']['render'] = array();
$config['colore']['defaults']['render']['properties'] = array();

/**
 * Set helpers.
 */
$config['colore']['helpers'] = array(
	'context' => 'ColorePHPContextHelper',
// 	'context' => 'ColoreJSONContextHelper',
	'request' => 'ColoreApachePHPRequestHelper',
);

?>


text:
<?php

class Ajde_Shop_Cart_Item_Collection extends Ajde_Collection
{
    protected $_autoloadParents = false;

    public function __construct(Ajde_Shop_Cart $cart = null)
    {
        parent::__construct();
        if (isset($cart)) {
            $this->setCart($cart);
            $this->addFilter(new Ajde_Filter_Where('cart', Ajde_Filter::FILTER_EQUALS, $cart->getPK()));
        }
    }

    protected function _format($value)
    {
        if (function_exists('money_format')) {
            return money_format('%!i', $value);
        } else {
            return $value;
        }
    }

    public function getTotal()
    {
        $total = 0;
        foreach ($this as $item) {
            /* @var $item Ajde_Shop_Cart_Item */
            $total = $total + $item->getTotal();
        }

        return $total;
    }

    public function getFormattedTotal()
    {
        return config('shop.currency.symbol').' '.$this->_format($this->getTotal());
    }

    public function getVATAmount()
    {
        $vat = 0;
        foreach ($this as $item) {
            /* @var $item Ajde_Shop_Cart_Item */
            $vat = $vat + $item->getVATAmount();
        }

        return $vat;
    }

    public function getFormattedVATAmount()
    {
        return config('shop.currency.symbol').' '.$this->_format($this->getVATAmount());
    }

    public function countQty()
    {
        $qty = 0;
        foreach ($this as $item) {
            /* @var $item Ajde_Shop_Cart_Item */
            $qty = $qty + $item->getQty();
        }

        return $qty;
    }
}


text:
{ \scriptsize \tt
\begin{lstlisting}
input x

// Writes a 1 on the input tape.

[x] E (1)
return
\end{lstlisting}
}


text:
package org.apache.ignite.internal.processors.query.h2.sql;

import java.util.Collections;
import org.apache.ignite.internal.processors.query.h2.opt.GridH2Table;
import org.h2.command.Parser;
import org.h2.table.Table;
import org.jetbrains.annotations.Nullable;

/**
 * Table with optional schema.
 */
public class GridSqlTable extends GridSqlElement {
    /** */
    private final String schema;

    /** */
    private final String tblName;

    /** */
    private final GridH2Table tbl;

    /**
     * @param schema Schema.
     * @param tblName Table name.
     */
    public GridSqlTable(@Nullable String schema, String tblName) {
        this(schema, tblName, null);
    }

    /**
     * @param tbl Table.
     */
    public GridSqlTable(Table tbl) {
        this(tbl.getSchema().getName(), tbl.getName(), tbl);
    }

    /**
     * @param schema Schema.
     * @param tblName Table name.
     * @param tbl H2 Table.
     */
    private GridSqlTable(@Nullable String schema, String tblName, @Nullable Table tbl) {
        super(Collections.<GridSqlAst>emptyList());

        assert schema != null : "schema";
        assert tblName != null : "tblName";

        this.schema = schema;
        this.tblName = tblName;

        this.tbl = tbl instanceof GridH2Table ? (GridH2Table)tbl : null;
    }

    /** {@inheritDoc} */
    @Override public String getSQL() {
        if (schema == null)
            return Parser.quoteIdentifier(tblName);

        return Parser.quoteIdentifier(schema) + '.' + Parser.quoteIdentifier(tblName);
    }

    /**
     * @return Schema.
     */
    public String schema() {
        return schema;
    }

    /**
     * @return Table name.
     */
    public String tableName() {
        return tblName;
    }

    /**
     * @return Referenced data table.
     */
    public GridH2Table dataTable() {
        return tbl;
    }

    /** {@inheritDoc} */
    @Override public boolean equals(Object o) {
        if (!super.equals(o))
            return false;

        GridSqlTable that = (GridSqlTable)o;

        return schema.equals(that.schema) && tblName.equals(that.tblName);
    }

    /** {@inheritDoc} */
    @Override public int hashCode() {
        int result = 1;

        result = 31 * result + schema.hashCode();
        result = 31 * result + tblName.hashCode();

        return result;
    }
}


text:
package org.apereo.cas.support.saml.services.idp.metadata.cache.resolver;

import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.cas.support.saml.OpenSamlConfigBean;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import org.apereo.cas.util.CollectionUtils;
import org.apereo.cas.util.ResourceUtils;

import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.opensaml.saml.metadata.resolver.MetadataResolver;
import org.opensaml.saml.metadata.resolver.impl.DOMMetadataResolver;
import org.springframework.core.io.ClassPathResource;

import java.util.ArrayList;
import java.util.Collection;

/**
 * This is {@link ClasspathResourceMetadataResolver}.
 *
 * @author Misagh Moayyed
 * @since 5.2.0
 */
@Slf4j
public class ClasspathResourceMetadataResolver extends BaseSamlRegisteredServiceMetadataResolver {
    public ClasspathResourceMetadataResolver(final SamlIdPProperties samlIdPProperties,
                                             final OpenSamlConfigBean configBean) {
        super(samlIdPProperties, configBean);
    }

    @Override
    public Collection<MetadataResolver> resolve(final SamlRegisteredService service) {
        val metadataLocation = service.getMetadataLocation();
        LOGGER.info("Loading SAML metadata from [{}]", metadataLocation);
        try (val in = ResourceUtils.getResourceFrom(metadataLocation).getInputStream()) {
            LOGGER.debug("Parsing metadata from [{}]", metadataLocation);
            val document = this.configBean.getParserPool().parse(in);

            val metadataRoot = document.getDocumentElement();
            val metadataProvider = new DOMMetadataResolver(metadataRoot);
            configureAndInitializeSingleMetadataResolver(metadataProvider, service);
            return CollectionUtils.wrap(metadataProvider);
        } catch (final Exception e) {
            LOGGER.error(e.getMessage(), e);
        }
        return new ArrayList<>(0);
    }

    @Override
    public boolean supports(final SamlRegisteredService service) {
        try {
            val metadataLocation = service.getMetadataLocation();
            val metadataResource = ResourceUtils.getResourceFrom(metadataLocation);
            return metadataResource instanceof ClassPathResource;
        } catch (final Exception e) {
            LOGGER.error(e.getMessage(), e);
        }
        return false;
    }

    @Override
    public boolean isAvailable(final SamlRegisteredService service) {
        return supports(service);
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Uses of Class com.tailf.conf.ConfValue (CONF API Version 6.6)</title>
<meta name="date" content="2018-03-02">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Uses of Class
com.tailf.conf.ConfValue

Packages that use ConfValue

Package
Description

com.tailf.cdb

Package with methods for connecting to the configuration database.

com.tailf.conf

Data types and utilities for communication with the server.

com.tailf.dp

Data provider API package, for implementation of callbacks for validations, actions, transformation etc.

com.tailf.dp.annotations

Annotations and proxy helper classes for callbacks.

com.tailf.ha

Package for setup and control of High Availability cluster nodes.

com.tailf.maapi

MAAPI is an API which provides full access to the systems internal
 transaction engine.

com.tailf.navu

NAVU (Navigation Utilities) is an API which provides increased
 accessibility to the ConfD/NCS populated data model tree:
 NAVU-Tree.

com.tailf.notif

Package for subscription of asynchronous events.

Uses of ConfValue in com.tailf.cdb

Methods in com.tailf.cdb that return ConfValue

Modifier and Type
Method and Description

ConfValue
CdbSession.getElem(ConfPath path)

This reads a a value from the path.

ConfValue
CdbSession.getElem(String fmt,
       Object... arguments)

similar to CdbSession.getElem(ConfPath) but specifies element using path
 string

Methods in com.tailf.cdb with parameters of type ConfValue

Modifier and Type
Method and Description

void
CdbSession.setElem(ConfValue value,
       ConfPath path)

 Sets an element in operational data.

void
CdbSession.setElem(ConfValue value,
       String fmt,
       Object... arguments)

similar to CdbSession.setElem(ConfValue, ConfPath) but specifies element
 using path string

void
CdbSession.setObject(ConfValue[] values,
         ConfPath path)

Set all elements corresponding to the complete contents of a container
 element, except for list entry sub-elements.

void
CdbSession.setObject(ConfValue[] values,
         String fmt,
         Object... arguments)

similar to CdbSession.setObject(ConfValue[], ConfPath) but specifies
 element using path string

Uses of ConfValue in com.tailf.conf

Subclasses of ConfValue in com.tailf.conf

Modifier and Type
Class and Description

class
ConfAttributeValue

Class that represent attribute value for an elements in a model.

class
ConfBinary

DATA_CONTAINER - Corresponds to the YANG tailf:hex-list and tailf:octet-list.

class
ConfBit32

DATA_CONTAINER - Corresponds to the YANG bit32 type.

class
ConfBit64

DATA_CONTAINER - Corresponds to the YANG bit64 type.

class
ConfBitBig

DATA_CONTAINER - Corresponds to the YANG bits type, where bit position
 exceed 63.

class
ConfBits

DATA_CONTAINER - This is the superclass for all bits types i.e.

class
ConfBool

DATA_CONTAINER - Corresponds to the YANG boolean type.

class
ConfBuf

DATA_CONTAINER - Corresponds to the YANG string type.

class
ConfDate

DATA_CONTAINER - Corresponds to the confspec xs:date type.

class
ConfDatetime

DATA_CONTAINER - Corresponds to the YANG date-and-time type.

class
ConfDecimal64

DATA_CONTAINER - Corresponds to the YANG decimal64 type.

class
ConfDefault

Class representing value of type J_DEFAULT.

class
ConfDottedQuad

DATA_CONTAINER - Corresponds to the YANG dotted-quad type.

class
ConfDouble

DATA_CONTAINER - Corresponds to the confspec xs:double type.

class
ConfDuration

DATA_CONTAINER - Corresponds to the confspec xs:duration type.

class
ConfEnumeration

DATA_CONTAINER - Corresponds to the YANG Enumeration type.

class
ConfFloat

DATA_CONTAINER - Corresponds to the confspec xs:float type.

class
ConfHexList

DATA_CONTAINER - Corresponds to the YANG tailf:hex-list type.

class
ConfHexString

DATA_CONTAINER - Corresponds to the YANG hex-string type.

class
ConfIdentityRef

DATA_CONTAINER - Corresponds to the YANG identityRef type.

class
ConfInt16

DATA_CONTAINER - Corresponds to the YANG int16 type.

class
ConfInt32

DATA_CONTAINER - Corresponds to the YANG int32 type.

class
ConfInt64

DATA_CONTAINER - Corresponds to the YANG int64 type.

class
ConfInt8

DATA_CONTAINER - Corresponds to the YANG int8 type.

class
ConfIP

DATA_CONTAINER - Base class for ConfIPv4 and ConfIPv6 containers

class
ConfIPAndPrefixLen

DATA_CONTAINER - Base class for ConfIPv4AndPrefixLen and
 ConfIPv6AndPrefixLen containers

class
ConfIPPrefix

DATA_CONTAINER - Base class for ConfIPv4Prefix and
 ConfIPv6Prefix containers

class
ConfIPv4

DATA_CONTAINER - Corresponds to the YANG inet:ipv4-address type.

class
ConfIPv4AndPrefixLen

DATA_CONTAINER - Corresponds to the YANG tailf:ipv4-address-and-prefix-length
 type.

class
ConfIPv4Prefix

DATA_CONTAINER - Corresponds to the YANG inet:ipv4-prefix type.

class
ConfIPv6

DATA_CONTAINER - Corresponds to the YANG inet:ipv6-address type.

class
ConfIPv6AndPrefixLen

DATA_CONTAINER - Corresponds to the YANG tailf:ipv6-address-and-prefix-length
 type.

class
ConfIPv6Prefix

DATA_CONTAINER - Corresponds to the YANG inet:ipv6-prefix type.

class
ConfList

DATA_CONTAINER - Corresponds to the YANG leaf-list.

class
ConfNoExists

Class representing value of type J_NOEXISTS.

class
ConfObjectRef

Corresponds to the YANG instance-identifier type

class
ConfOctetList

DATA_CONTAINER - Corresponds to the YANG tailf:octet-list type.

class
ConfOID

DATA_CONTAINER - Corresponds to the YANG tailf:oid type.

class
ConfQname

DATA_CONTAINER - Corresponds to the confspec xs:qName type.

class
ConfTime

DATA_CONTAINER - Corresponds to the confspec xs:time type.

class
ConfUInt16

DATA_CONTAINER - Corresponds to the YANG uint16 type

class
ConfUInt32

DATA_CONTAINER - Corresponds to the YANG uint32 type

class
ConfUInt64

DATA_CONTAINER - Corresponds to the YANG uint64 type

class
ConfUInt8

DATA_CONTAINER - Corresponds to the YANG uint8 type

class
ConfXMLTagH

DATA_CONTAINER - Corresponds to the confspec XML Tag.

Methods in com.tailf.conf that return ConfValue

Modifier and Type
Method and Description

ConfValue
ConfHaNode.getAddr()

Get the IP address for the node as ConfIPv4 or ConfIPv6

ConfValue
ConfAttributeValue.getAttributeValue()

Get the value of the attribute

ConfValue
ConfHaNode.getNodeId()

Get the nodeid which is the identity of the HA node

ConfValue
SnmpVarbind.getValue()

static ConfValue
ConfValue.getValueByString(ConfPath path,
                String str)

Get a ConfValue representation a string at a given
 position in the schema.

static ConfValue
ConfValue.getValueByString(String path,
                String str)

Get a ConfValue representation a string at a given
 position in the schema.

ConfValue
ConfTypeDescriptor.newInstance(String str)

Creates a new ConfValue instance of the type described by this
 ConfTypeDescriptor and with a value represented by a string.

Methods in com.tailf.conf with parameters of type ConfValue

Modifier and Type
Method and Description

static String
ConfValue.getStringByValue(ConfPath path,
                ConfValue val)

Get the string representation of a ConfValue at a given
 position in the schema.

static String
ConfValue.getStringByValue(String path,
                ConfValue val)

Get the string representation of a ConfValue at a given
 position in the schema.

void
ConfAttributeValue.setAttributeValue(ConfValue attributeValue)

Set the value for this attribute value

Constructors in com.tailf.conf with parameters of type ConfValue

Constructor and Description

ConfAttributeValue(ConfAttributeType typ,
                  ConfValue val)

Constructor of ConfAttributeValue
 Consists of a value and a type.

ConfHaNode(ConfValue nodeid,
          ConfValue addr)

Constructor for a HA node

SnmpVarbind(int[] oid,
           ConfValue value)

Constructor for Snmp variable binding (of type OID)

SnmpVarbind(String variable,
           ConfValue value)

Constructor for Snmp variable binding (of type VARIABLE)

SnmpVarbind(String column,
           int[] rowindex,
           ConfValue value)

Constructor for Snmp variable binding (of type COLUMN_ROW)

Constructor parameters in com.tailf.conf with type arguments of type ConfValue

Constructor and Description

ConfXKey(ConfObject[] vals,
        Map<MaapiSchemas.CSNode,ConfValue> keyEntries)

Uses of ConfValue in com.tailf.dp

Methods in com.tailf.dp that return ConfValue

Modifier and Type
Method and Description

ConfValue
DpDataCallback.getElem(DpTrans trans,
       ConfObject[] kp)

This callback method needs to return a specific leaf value.

ConfValue[]
DpDataCallback.getIteratorObject(DpTrans trans,
                 ConfObject[] kp,
                 Object obj)

The following callback is used with the iterator above.

ConfValue
DpAccumulate.getValue()

The value to be set if op is SET_ELEM

Methods in com.tailf.dp with parameters of type ConfValue

Modifier and Type
Method and Description

void
Dp.registerAnnotatedRangeActionCallbacks(Object obj,
                                     ConfValue[] lower,
                                     ConfValue[] higher,
                                     ConfPath path)

void
Dp.registerAnnotatedRangeActionCallbacks(Object obj,
                                     ConfValue[] lower,
                                     ConfValue[] higher,
                                     ConfPath path)

void
Dp.registerAnnotatedRangeDataCallbacks(Object obj,
                                   ConfValue[] lower,
                                   ConfValue[] higher,
                                   ConfPath path)

DataCallbacks can be registered for a range of values using this method

void
Dp.registerAnnotatedRangeDataCallbacks(Object obj,
                                   ConfValue[] lower,
                                   ConfValue[] higher,
                                   ConfPath path)

DataCallbacks can be registered for a range of values using this method

int
DpDataCallback.setElem(DpTrans trans,
       ConfObject[] kp,
       ConfValue newval)

This callback writes a data leaf.

void
DpValpointCallback.validate(DpTrans trans,
        ConfObject[] kp,
        ConfValue newval)

The validate() callback should validate the values and throw a
 DpCallbackException if the validation fails.

Uses of ConfValue in com.tailf.dp.annotations

Methods in com.tailf.dp.annotations that return ConfValue

Modifier and Type
Method and Description

ConfValue
DataCallbackProxy.getElem(DpTrans trans,
       ConfObject[] kp)

ConfValue[]
DataCallbackProxy.getIteratorObject(DpTrans trans,
                 ConfObject[] kp,
                 Object obj)

Methods in com.tailf.dp.annotations with parameters of type ConfValue

Modifier and Type
Method and Description

int
DataCallbackProxy.setElem(DpTrans trans,
       ConfObject[] kp,
       ConfValue newval)

void
ValidateCallbackProxy.validate(DpTrans trans,
        ConfObject[] kp,
        ConfValue newval)

Uses of ConfValue in com.tailf.ha

Methods in com.tailf.ha with parameters of type ConfValue

Modifier and Type
Method and Description

void
Ha.beMaster(ConfValue myNodeId)

Instruct a HA node to be master and also give the node a name.

void
Ha.beSlave(ConfValue myNodeId,
       ConfHaNode master,
       boolean waitForReply)

Instruct a HA node to be slave with a named master.

void
Ha.slaveDead(ConfValue nodeId)

This function must be used by the application to inform HA subsystem that
 another node which is possibly connected to the server is dead.

Uses of ConfValue in com.tailf.maapi

Methods in com.tailf.maapi that return ConfValue

Modifier and Type
Method and Description

ConfValue
ResultTypeKeyPathValue.confValue()

Retrieves the result value from a query

ConfValue
Maapi.getElem(int tid,
       ConfPath path)

ConfValue
Maapi.getElem(int tid,
       String fmt,
       Object... arguments)

This reads a value from the path in fmt and returns the result.

ConfValue
Maapi.safeGetElem(int tid,
           ConfPath path)

 Reads a value from the path specified

ConfValue
Maapi.safeGetElem(int tid,
           String fmt,
           Object... arguments)

This reads a value from the path in fmt and returns the result.

ConfValue
MaapiSchemas.stringToValue(MaapiSchemas.CSType type,
             String str)

parse value located in str and convert to ConfValue, the value is
 validated.

ConfValue
MaapiSchemas.CSTypeMethods.stringToValue(MaapiSchemas.CSType type,
             String str)

parse value located in str and convert to ConfValue, the value is
 validated.

ConfValue
MaapiSchemas.UnionTypeMethodsImpl.stringToValue(MaapiSchemas.CSType type,
             String str)

ConfValue
MaapiSchemas.EnumTypeMethodsImpl.stringToValue(MaapiSchemas.CSType type,
             String str)

ConfValue
MaapiSchemas.BitsTypeMethodsImpl.stringToValue(MaapiSchemas.CSType type,
             String str)

ConfValue
MaapiSchemas.Decimal64TypeMethodsImpl.stringToValue(MaapiSchemas.CSType type,
             String str)

ConfValue
MaapiSchemas.ListTypeMethodsImpl.stringToValue(MaapiSchemas.CSType type,
             String str)

ConfValue
MaapiSchemas.ListRestrictionTypeMethodsImpl.stringToValue(MaapiSchemas.CSType type,
             String str)

ConfValue
MaapiSchemas.IdentityTypeMethodsImpl.stringToValue(MaapiSchemas.CSType type,
             String str)

Methods in com.tailf.maapi with parameters of type ConfValue

Modifier and Type
Method and Description

XPathNodeIterateResultFlag
MaapiXPathEvalResult.result(ConfObject[] kp,
      ConfValue value,
      Object state)

 For each node in the resulting node set evaluated by the xpath
 this method will be called.

boolean
MaapiSchemas.CSTypeMethods.validate(MaapiSchemas.CSType type,
        ConfValue val)

Validates ConfValue of with rules from CSType

boolean
MaapiSchemas.UnionTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.RetrictedNumberTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.EnumTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.BitsTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.Decimal64TypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.ListTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.ListRestrictionTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.StringTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

boolean
MaapiSchemas.IdentityTypeMethodsImpl.validate(MaapiSchemas.CSType type,
        ConfValue val)

String
MaapiSchemas.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

convert to string representation for the corresponding ConfValue

String
MaapiSchemas.CSTypeMethods.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

convert to string representation for the corresponding Confvalue

String
MaapiSchemas.UnionTypeMethodsImpl.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

String
MaapiSchemas.EnumTypeMethodsImpl.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

String
MaapiSchemas.BitsTypeMethodsImpl.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

String
MaapiSchemas.Decimal64TypeMethodsImpl.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

String
MaapiSchemas.ListTypeMethodsImpl.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

String
MaapiSchemas.ListRestrictionTypeMethodsImpl.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

String
MaapiSchemas.IdentityTypeMethodsImpl.valueToString(MaapiSchemas.CSType type,
             ConfValue val)

Uses of ConfValue in com.tailf.navu

Methods in com.tailf.navu that return ConfValue

Modifier and Type
Method and Description

ConfValue
NavuLeaf.getOldValue()

ConfValue
NavuXPathContext.getValue()

get NavuNode value if applicable

ConfValue
NavuLeafListIterator.next()

Internal, subject to change without notice.

ConfValue
NavuLeaf.value()

Returns the effective value on the first call,
 or cached value in the subsequent calls
 of this leaf.

Methods in com.tailf.navu that return types with arguments of type ConfValue

Modifier and Type
Method and Description

Collection<ConfValue>
NavuLeafList.elements()

Returns a copy of elements contained by the leaf-list node.

Iterator<ConfValue>
NavuLeafList.iterator()

Retrieve a iterator over the elements in this NavuLeafList
 (in proper sequence).

Methods in com.tailf.navu with parameters of type ConfValue

Modifier and Type
Method and Description

boolean
NavuLeafList.containsNode(ConfValue elem)

Returns true if and only if this NavuLeafList
 contains this element.

void
NavuLeafList.create(ConfValue elem)

Creates leaf-list entry.

void
NavuLeafList.delete(ConfValue elem)

Deletes an entry from the leaf-list.

void
NavuLeafList.move(ConfValue elem,
    NavuLeafList.WhereTo whereTo,
    ConfValue to)

Move a leaf-list element to a new position.

XPathNodeIterateResultFlag
NavuXPathSelectResultSet.result(ConfObject[] kp,
      ConfValue value,
      Object state)

Internal, subject to change without notice.

For each node in a result NodeSet this
 method will be called by Maapi.xPathEval()

void
NavuLeafList.safeCreate(ConfValue elem)

The variant of create that succeeds even if the
 object already exists.

void
NavuLeaf.set(ConfValue val)

Sets the value of the leaf node.

abstract NavuNode
NavuNode.setChange(List<ConfObject> path,
         DiffIterateOperFlag op,
         ConfValue oldValue,
         NavuContext delContext)

Internal, subject to change without notice.

NavuNode
NavuList.setChange(List<ConfObject> path,
         DiffIterateOperFlag op,
         ConfValue oldValue,
         NavuContext delContext)

NavuNode
NavuLeaf.setChange(List<ConfObject> kp,
         DiffIterateOperFlag op,
         ConfValue oldValue,
         NavuContext delContext)

NavuNode
NavuAction.setChange(List<ConfObject> kp,
         DiffIterateOperFlag op,
         ConfValue oldValue,
         NavuContext delContext)

Sets the change type on a node.

NavuNode
NavuContainer.setChange(List<ConfObject> path,
         DiffIterateOperFlag op,
         ConfValue oldValue,
         NavuContext delContext)

void
NavuLeafList.sharedCreate(ConfValue elem)

The variant of create that succeeds even if the
 object already exists, and also maintains a reference counter
 on the object.

void
NavuLeaf.sharedSet(ConfValue val)

Sets the value of a leaf node with FastMap support, creating
 backpointers and reference counter similar to sharedCreate()
 All FastMap code shall (in principle) allways use this method instead
 of set()

Uses of ConfValue in com.tailf.notif

Methods in com.tailf.notif that return ConfValue

Modifier and Type
Method and Description

ConfValue
NotificationCfg.getStartTime()

Get configured startTime
 used by NotificationType.NOTIF_STREAM_EVENT
 notifications to define a replay start time

 The value is either ConfDatetime or ConfNoExists

ConfValue
NotificationCfg.getStopTime()

Get configured stopTime
 used by NotificationType.NOTIF_STREAM_EVENT
 notifications to define a replay stop time

 The value is either ConfDatetime or ConfNoExists

Methods in com.tailf.notif with parameters of type ConfValue

Modifier and Type
Method and Description

void
NotificationCfg.setStartTime(ConfValue startTime)

Optional for CONFD_NOTIF_STREAM_EVENT
 Set to request a replay.

void
NotificationCfg.setStopTime(ConfValue stopTime)

Optional for CONFD_NOTIF_STREAM_EVENT
 If startTime is set stopTime can also be set to
 indicated the end of a replay.

Constructors in com.tailf.notif with parameters of type ConfValue

Constructor and Description

NotificationCfg(int heartbeatInterval,
               int healthCheckInterval,
               String streamName,
               ConfValue startTime,
               ConfValue stopTime,
               String xpathFilter,
               int usid)

Convenience constructor setting all values.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes


text:
package org.workcraft.plugins.dfs;

import org.workcraft.CompatibilityManager;
import org.workcraft.Framework;
import org.workcraft.Module;
import org.workcraft.PluginManager;
import org.workcraft.Version;
import org.workcraft.commands.Command;
import org.workcraft.commands.ScriptableCommandUtils;
import org.workcraft.dom.ModelDescriptor;
import org.workcraft.gui.propertyeditor.Settings;
import org.workcraft.interop.Exporter;
import org.workcraft.plugins.dfs.commands.DfsCombinedVerificationCommand;
import org.workcraft.plugins.dfs.commands.DfsContractComponentTransformationCommand;
import org.workcraft.plugins.dfs.commands.DfsDeadlockVerificationCommand;
import org.workcraft.plugins.dfs.commands.DfsMergeComponentTransformationCommand;
import org.workcraft.plugins.dfs.commands.DfsPersisitencyVerificationCommand;
import org.workcraft.plugins.dfs.commands.DfsToStgConversionCommand;
import org.workcraft.plugins.dfs.commands.WaggingGenerator2WayCommand;
import org.workcraft.plugins.dfs.commands.WaggingGenerator3WayCommand;
import org.workcraft.plugins.dfs.commands.WaggingGenerator4WayCommand;
import org.workcraft.plugins.dfs.commands.WaggingGeneratorCommand;
import org.workcraft.plugins.dfs.interop.VerilogExporter;

public class DfsModule implements Module {

    @Override
    public String getDescription() {
        return "Dataflow Structure";
    }

    @Override
    public void init() {
        initPluginManager();
        initCompatibilityManager();
    }

    private void initPluginManager() {
        final Framework framework = Framework.getInstance();
        final PluginManager pm = framework.getPluginManager();
        pm.registerClass(ModelDescriptor.class, DfsDescriptor.class);
        pm.registerClass(Exporter.class, VerilogExporter.class);
        pm.registerClass(Settings.class, DfsSettings.class);

        ScriptableCommandUtils.register(DfsToStgConversionCommand.class, "convertDfsToStg",
                "convert the given DFS 'work' into a new STG work");

        ScriptableCommandUtils.register(DfsDeadlockVerificationCommand.class, "checkDfsDeadlockFreeness",
                "check the DFS 'work' for deadlock freeness");
        ScriptableCommandUtils.register(DfsPersisitencyVerificationCommand.class, "checkDfsOutputPersistency",
                "check the DFS 'work' for output persistency");
        ScriptableCommandUtils.register(DfsCombinedVerificationCommand.class, "checkDfsCombined",
                " combined check of the DFS 'work' for deadlock freeness and output persistency");

        ScriptableCommandUtils.register(DfsMergeComponentTransformationCommand.class, "transformDfsMergeComponent",
                " transform the given DFS 'work' by merging selected components");
        ScriptableCommandUtils.register(DfsContractComponentTransformationCommand.class, "transformDfsContractComponent",
                " transform the given DFS 'work' by contracting selected components");
        ScriptableCommandUtils.register(WaggingGenerator2WayCommand.class, "transformDfsWagging2Way",
                "transform the given DFS 'work' by applying 2-way wagging to the selected pipeline section");
        ScriptableCommandUtils.register(WaggingGenerator3WayCommand.class, "transformDfsWagging3Way",
                "transform the given DFS 'work' by applying 3-way wagging to the selected pipeline section");
        ScriptableCommandUtils.register(WaggingGenerator4WayCommand.class, "transformDfsWagging4Way",
                "transform the given DFS 'work' by applying 4-way wagging to the selected pipeline section");
        // Do not register generic WaggingGeneratorCommand as it requires user input
        pm.registerClass(Command.class, WaggingGeneratorCommand.class);
    }

    private void initCompatibilityManager() {
        final Framework framework = Framework.getInstance();
        final CompatibilityManager cm = framework.getCompatibilityManager();
        Version v310 = new Version(3, 1, 0, Version.Status.RELEASE);

        cm.registerMetaReplacement(v310,
                "<descriptor class=\"org.workcraft.plugins.dfs.DfsModelDescriptor\"/>",
                "<descriptor class=\"org.workcraft.plugins.dfs.DfsDescriptor\"/>");
    }

}


text:
package com.amazonaws.services.logs.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 *
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetLogEventsResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable {

    /**
     *

     * The events.
     *

     */
    private com.amazonaws.internal.SdkInternalList<OutputLogEvent> events;
    /**
     *

     * The token for the next set of items in the forward direction. The token expires after 24 hours.
     *

     */
    private String nextForwardToken;
    /**
     *

     * The token for the next set of items in the backward direction. The token expires after 24 hours.
     *

     */
    private String nextBackwardToken;

    /**
     *

     * The events.
     *

     *
     * @return The events.
     */

    public java.util.List<OutputLogEvent> getEvents() {
        if (events == null) {
            events = new com.amazonaws.internal.SdkInternalList<OutputLogEvent>();
        }
        return events;
    }

    /**
     *

     * The events.
     *

     *
     * @param events
     *        The events.
     */

    public void setEvents(java.util.Collection<OutputLogEvent> events) {
        if (events == null) {
            this.events = null;
            return;
        }

        this.events = new com.amazonaws.internal.SdkInternalList<OutputLogEvent>(events);
    }

    /**
     *

     * The events.
     *

     *

     * NOTE: This method appends the values to the existing list (if any). Use
     * {@link #setEvents(java.util.Collection)} or {@link #withEvents(java.util.Collection)} if you want to override the
     * existing values.
     *

     *
     * @param events
     *        The events.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public GetLogEventsResult withEvents(OutputLogEvent... events) {
        if (this.events == null) {
            setEvents(new com.amazonaws.internal.SdkInternalList<OutputLogEvent>(events.length));
        }
        for (OutputLogEvent ele : events) {
            this.events.add(ele);
        }
        return this;
    }

    /**
     *

     * The events.
     *

     *
     * @param events
     *        The events.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public GetLogEventsResult withEvents(java.util.Collection<OutputLogEvent> events) {
        setEvents(events);
        return this;
    }

    /**
     *

     * The token for the next set of items in the forward direction. The token expires after 24 hours.
     *

     *
     * @param nextForwardToken
     *        The token for the next set of items in the forward direction. The token expires after 24 hours.
     */

    public void setNextForwardToken(String nextForwardToken) {
        this.nextForwardToken = nextForwardToken;
    }

    /**
     *

     * The token for the next set of items in the forward direction. The token expires after 24 hours.
     *

     *
     * @return The token for the next set of items in the forward direction. The token expires after 24 hours.
     */

    public String getNextForwardToken() {
        return this.nextForwardToken;
    }

    /**
     *

     * The token for the next set of items in the forward direction. The token expires after 24 hours.
     *

     *
     * @param nextForwardToken
     *        The token for the next set of items in the forward direction. The token expires after 24 hours.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public GetLogEventsResult withNextForwardToken(String nextForwardToken) {
        setNextForwardToken(nextForwardToken);
        return this;
    }

    /**
     *

     * The token for the next set of items in the backward direction. The token expires after 24 hours.
     *

     *
     * @param nextBackwardToken
     *        The token for the next set of items in the backward direction. The token expires after 24 hours.
     */

    public void setNextBackwardToken(String nextBackwardToken) {
        this.nextBackwardToken = nextBackwardToken;
    }

    /**
     *

     * The token for the next set of items in the backward direction. The token expires after 24 hours.
     *

     *
     * @return The token for the next set of items in the backward direction. The token expires after 24 hours.
     */

    public String getNextBackwardToken() {
        return this.nextBackwardToken;
    }

    /**
     *

     * The token for the next set of items in the backward direction. The token expires after 24 hours.
     *

     *
     * @param nextBackwardToken
     *        The token for the next set of items in the backward direction. The token expires after 24 hours.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public GetLogEventsResult withNextBackwardToken(String nextBackwardToken) {
        setNextBackwardToken(nextBackwardToken);
        return this;
    }

    /**
     * Returns a string representation of this object; useful for testing and debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getEvents() != null)
            sb.append("Events: ").append(getEvents()).append(",");
        if (getNextForwardToken() != null)
            sb.append("NextForwardToken: ").append(getNextForwardToken()).append(",");
        if (getNextBackwardToken() != null)
            sb.append("NextBackwardToken: ").append(getNextBackwardToken());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof GetLogEventsResult == false)
            return false;
        GetLogEventsResult other = (GetLogEventsResult) obj;
        if (other.getEvents() == null ^ this.getEvents() == null)
            return false;
        if (other.getEvents() != null && other.getEvents().equals(this.getEvents()) == false)
            return false;
        if (other.getNextForwardToken() == null ^ this.getNextForwardToken() == null)
            return false;
        if (other.getNextForwardToken() != null && other.getNextForwardToken().equals(this.getNextForwardToken()) == false)
            return false;
        if (other.getNextBackwardToken() == null ^ this.getNextBackwardToken() == null)
            return false;
        if (other.getNextBackwardToken() != null && other.getNextBackwardToken().equals(this.getNextBackwardToken()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getEvents() == null) ? 0 : getEvents().hashCode());
        hashCode = prime * hashCode + ((getNextForwardToken() == null) ? 0 : getNextForwardToken().hashCode());
        hashCode = prime * hashCode + ((getNextBackwardToken() == null) ? 0 : getNextBackwardToken().hashCode());
        return hashCode;
    }

    @Override
    public GetLogEventsResult clone() {
        try {
            return (GetLogEventsResult) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

}