code
stringlengths 3
1.01M
| repo_name
stringlengths 5
116
| path
stringlengths 3
311
| language
stringclasses 30
values | license
stringclasses 15
values | size
int64 3
1.01M
|
|---|---|---|---|---|---|
# AUTOGENERATED FILE
FROM balenalib/raspberrypi3-64-fedora:33-run
ENV GO_VERSION 1.15.7
# gcc for cgo
RUN dnf install -y \
gcc-c++ \
gcc \
git \
&& dnf clean all
RUN mkdir -p /usr/local/go \
&& curl -SLO "https://storage.googleapis.com/golang/go$GO_VERSION.linux-arm64.tar.gz" \
&& echo "bca4af0c20f86521dfabf3b39fa2f1ceeeb11cebf7e90bdf1de2618c40628539 go$GO_VERSION.linux-arm64.tar.gz" | sha256sum -c - \
&& tar -xzf "go$GO_VERSION.linux-arm64.tar.gz" -C /usr/local/go --strip-components=1 \
&& rm -f go$GO_VERSION.linux-arm64.tar.gz
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@golang.sh" \
&& echo "Running test-stack@golang" \
&& chmod +x test-stack@golang.sh \
&& bash test-stack@golang.sh \
&& rm -rf test-stack@golang.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v8 \nOS: Fedora 33 \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nGo v1.15.7 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo $'#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh
|
nghiant2710/base-images
|
balena-base-images/golang/raspberrypi3-64/fedora/33/1.15.7/run/Dockerfile
|
Dockerfile
|
apache-2.0
| 2,076
|
/*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.gnd.system;
import static android.Manifest.permission.ACCESS_FINE_LOCATION;
import android.location.Location;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gnd.model.feature.Point;
import com.google.android.gnd.rx.BooleanOrError;
import com.google.android.gnd.rx.annotations.Hot;
import com.google.android.gnd.system.rx.RxFusedLocationProviderClient;
import com.google.android.gnd.system.rx.RxLocationCallback;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.subjects.BehaviorSubject;
import io.reactivex.subjects.Subject;
import javax.inject.Inject;
import javax.inject.Singleton;
import timber.log.Timber;
@Singleton
public class LocationManager {
private static final long UPDATE_INTERVAL = 1000 /* 1 sec */;
private static final long FASTEST_INTERVAL = 250; /* 250 ms */
private static final LocationRequest FINE_LOCATION_UPDATES_REQUEST =
new LocationRequest()
.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY)
.setInterval(UPDATE_INTERVAL)
.setFastestInterval(FASTEST_INTERVAL);
private final PermissionsManager permissionsManager;
private final SettingsManager settingsManager;
private final RxFusedLocationProviderClient locationClient;
private final RxLocationCallback locationUpdateCallback;
@Hot(replays = true)
private final Subject<Location> locationUpdates = BehaviorSubject.create();
@Inject
public LocationManager(
PermissionsManager permissionsManager,
SettingsManager settingsManager,
RxFusedLocationProviderClient locationClient) {
this.permissionsManager = permissionsManager;
this.settingsManager = settingsManager;
this.locationClient = locationClient;
this.locationUpdateCallback = RxLocationCallback.create(locationUpdates);
}
public static Point toPoint(Location location) {
return Point.newBuilder()
.setLatitude(location.getLatitude())
.setLongitude(location.getLongitude())
.build();
}
/**
* Returns the location update stream. New subscribers and downstream subscribers that can't keep
* up will only see the latest location.
*/
public Flowable<Location> getLocationUpdates() {
// There sometimes noticeable latency between when location update request succeeds and when
// the first location update is received. Requesting the last know location is usually
// immediate, so we merge into the stream to reduce perceived latency.
return locationUpdates
.startWith(locationClient.getLastLocation().toObservable())
.toFlowable(BackpressureStrategy.LATEST);
}
/**
* Asynchronously try to enable location permissions and settings, and if successful, turns on
* location updates exposed by {@link #getLocationUpdates()}.
*/
public synchronized Single<BooleanOrError> enableLocationUpdates() {
Timber.d("Attempting to enable location updates");
return permissionsManager
.obtainPermission(ACCESS_FINE_LOCATION)
.andThen(settingsManager.enableLocationSettings(FINE_LOCATION_UPDATES_REQUEST))
.andThen(
locationClient.requestLocationUpdates(
FINE_LOCATION_UPDATES_REQUEST, locationUpdateCallback))
.toSingle(BooleanOrError::trueValue)
.onErrorReturn(BooleanOrError::error);
}
// TODO: Request/remove updates on resume/pause.
public synchronized Single<BooleanOrError> disableLocationUpdates() {
// Ignore errors when removing location updates, usually caused by disabling the same callback
// multiple times.
return locationClient
.removeLocationUpdates(locationUpdateCallback)
.toSingle(BooleanOrError::falseValue)
.doOnError(t -> Timber.e(t, "disableLocationUpdates"))
.onErrorReturn(__ -> BooleanOrError.falseValue());
}
}
|
google/ground-android
|
gnd/src/main/java/com/google/android/gnd/system/LocationManager.java
|
Java
|
apache-2.0
| 4,514
|
////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2001 by Andrei Alexandrescu
// This code accompanies the book:
// Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
// Patterns Applied". Copyright (c) 2001. Addison-Wesley.
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted without fee, provided that the above copyright
// notice appear in all copies and that both that copyright notice and this
// permission notice appear in supporting documentation.
// The author or Addison-Wesley Longman make no representations about the
// suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty.
////////////////////////////////////////////////////////////////////////////////
// Tailored by Google to remove the dependency on Loki's thread and singleton
// modules.
#ifndef GGADGET_SMALL_OBJECT_H__
#define GGADGET_SMALL_OBJECT_H__
#include <stdint.h>
#include <cstddef>
#include <new> // needed for std::nothrow_t parameter.
#ifndef LOKI_DEFAULT_CHUNK_SIZE
#define LOKI_DEFAULT_CHUNK_SIZE 4096
#endif
#ifndef LOKI_MAX_SMALL_OBJECT_SIZE
#define LOKI_MAX_SMALL_OBJECT_SIZE 256
#endif
#ifndef LOKI_DEFAULT_OBJECT_ALIGNMENT
#define LOKI_DEFAULT_OBJECT_ALIGNMENT 4
#endif
#if defined(LOKI_SMALL_OBJECT_USE_NEW_ARRAY) && defined(_MSC_VER)
#pragma message("Don't define LOKI_SMALL_OBJECT_USE_NEW_ARRAY when using a Microsoft compiler to prevent memory leaks.")
#pragma message("now calling '#undef LOKI_SMALL_OBJECT_USE_NEW_ARRAY'")
#undef LOKI_SMALL_OBJECT_USE_NEW_ARRAY
#endif
/// \defgroup SmallObjectGroup Small objects
/// \ingroup Utilities
///
/// \defgroup SmallObjectGroupInternal Internals
/// \ingroup SmallObjectGroup
namespace ggadget
{
class FixedAllocator;
/** @class SmallObjAllocator
@ingroup SmallObjectGroupInternal
Manages pool of fixed-size allocators.
Designed to be a non-templated base class of AllocatorSingleton so that
implementation details can be safely hidden in the source code file.
*/
class SmallObjAllocator
{
protected:
/** The only available constructor needs certain parameters in order to
initialize all the FixedAllocator's. This throws only if
@param pageSize # of bytes in a page of memory.
@param maxObjectSize Max # of bytes which this may allocate.
@param objectAlignSize # of bytes between alignment boundaries.
*/
SmallObjAllocator( std::size_t pageSize, std::size_t maxObjectSize,
std::size_t objectAlignSize );
/** Destructor releases all blocks, all Chunks, and FixedAllocator's.
Any outstanding blocks are unavailable, and should not be used after
this destructor is called. The destructor is deliberately non-virtual
because it is protected, not public.
*/
~SmallObjAllocator( void );
/** Returns reference to the singleton. */
static SmallObjAllocator & Instance( std::size_t pageSize,
std::size_t maxObjectSize, std::size_t objectAlignSize );
public:
/** Allocates a block of memory of requested size. Complexity is often
constant-time, but might be O(C) where C is the number of Chunks in a
FixedAllocator.
@par Exception Safety Level
Provides either strong-exception safety, or no-throw exception-safety
level depending upon doThrow parameter. The reason it provides two
levels of exception safety is because it is used by both the nothrow
and throwing new operators. The underlying implementation will never
throw of its own accord, but this can decide to throw if it does not
allocate. The only exception it should emit is std::bad_alloc.
@par Allocation Failure
If it does not allocate, it will call TrimExcessMemory and attempt to
allocate again, before it decides to throw or return NULL. Many
allocators loop through several new_handler functions, and terminate
if they can not allocate, but not this one. It only makes one attempt
using its own implementation of the new_handler, and then returns NULL
or throws so that the program can decide what to do at a higher level.
(Side note: Even though the C++ Standard allows allocators and
new_handlers to terminate if they fail, the Loki allocator does not do
that since that policy is not polite to a host program.)
@param size # of bytes needed for allocation.
@param doThrow True if this should throw if unable to allocate, false
if it should provide no-throw exception safety level.
@return NULL if nothing allocated and doThrow is false. Else the
pointer to an available block of memory.
*/
void * Allocate( std::size_t size, bool doThrow );
/** Deallocates a block of memory at a given place and of a specific
size. Complexity is almost always constant-time, and is O(C) only if
it has to search for which Chunk deallocates. This never throws.
*/
void Deallocate( void * p, std::size_t size );
/** Deallocates a block of memory at a given place but of unknown size
size. Complexity is O(F + C) where F is the count of FixedAllocator's
in the pool, and C is the number of Chunks in all FixedAllocator's. This
does not throw exceptions. This overloaded version of Deallocate is
called by the nothow delete operator - which is called when the nothrow
new operator is used, but a constructor throws an exception.
*/
void Deallocate( void * p );
/// Returns max # of bytes which this can allocate.
inline std::size_t GetMaxObjectSize() const
{ return maxSmallObjectSize_; }
/// Returns # of bytes between allocation boundaries.
inline std::size_t GetAlignment() const { return objectAlignSize_; }
/** Releases empty Chunks from memory. Complexity is O(F + C) where F
is the count of FixedAllocator's in the pool, and C is the number of
Chunks in all FixedAllocator's. This will never throw. This is called
by AllocatorSingleto::ClearExtraMemory, the new_handler function for
Loki's allocator, and is called internally when an allocation fails.
@return True if any memory released, or false if none released.
*/
bool TrimExcessMemory( void );
/** Returns true if anything in implementation is corrupt. Complexity
is O(F + C + B) where F is the count of FixedAllocator's in the pool,
C is the number of Chunks in all FixedAllocator's, and B is the number
of blocks in all Chunks. If it determines any data is corrupted, this
will return true in release version, but assert in debug version at
the line where it detects the corrupted data. If it does not detect
any corrupted data, it returns false.
*/
bool IsCorrupt( void ) const;
private:
/// Default-constructor is not implemented.
SmallObjAllocator( void );
/// Copy-constructor is not implemented.
SmallObjAllocator( const SmallObjAllocator & );
/// Copy-assignment operator is not implemented.
SmallObjAllocator & operator = ( const SmallObjAllocator & );
/// Pointer to array of fixed-size allocators.
FixedAllocator * pool_;
/// Largest object size supported by allocators.
const std::size_t maxSmallObjectSize_;
/// Size of alignment boundaries.
const std::size_t objectAlignSize_;
};
/** @class AllocatorSingleton
@ingroup SmallObjectGroupInternal
This template class is derived from
SmallObjAllocator in order to pass template arguments into it, and still
have a default constructor for the singleton. Each instance is a unique
combination of all the template parameters, and hence is singleton only
with respect to those parameters. The template parameters have default
values and the class has typedefs identical to both SmallObject and
SmallValueObject so that this class can be used directly instead of going
through SmallObject or SmallValueObject. That design feature allows
clients to use the new_handler without having the name of the new_handler
function show up in classes derived from SmallObject or SmallValueObject.
Thus, the only functions in the allocator which show up in SmallObject or
SmallValueObject inheritance hierarchies are the new and delete
operators.
*/
template
<
std::size_t chunkSize = LOKI_DEFAULT_CHUNK_SIZE,
std::size_t maxSmallObjectSize = LOKI_MAX_SMALL_OBJECT_SIZE,
std::size_t objectAlignSize = LOKI_DEFAULT_OBJECT_ALIGNMENT
>
class AllocatorSingleton : public SmallObjAllocator
{
public:
/// Returns reference to the singleton.
inline static SmallObjAllocator & Instance( void )
{
return SmallObjAllocator::Instance(chunkSize, maxSmallObjectSize,
objectAlignSize);
}
private:
/// Copy-constructor is not implemented.
AllocatorSingleton( const AllocatorSingleton & );
/// Copy-assignment operator is not implemented.
AllocatorSingleton & operator = ( const AllocatorSingleton & );
};
/** @class SmallObjectBase
@ingroup SmallObjectGroup
Base class for small object allocation classes.
The shared implementation of the new and delete operators are here instead
of being duplicated in both SmallObject or SmallValueObject, later just
called Small-Objects. This class is not meant to be used directly by clients,
or derived from by clients. Class has no data members so compilers can
use Empty-Base-Optimization.
*/
template
<
std::size_t chunkSize,
std::size_t maxSmallObjectSize,
std::size_t objectAlignSize
>
class SmallObjectBase
{
#if (LOKI_MAX_SMALL_OBJECT_SIZE != 0) && (LOKI_DEFAULT_CHUNK_SIZE != 0) && (LOKI_DEFAULT_OBJECT_ALIGNMENT != 0)
public:
/// Defines type of allocator singleton, must be public
/// to handle singleton lifetime dependencies.
typedef AllocatorSingleton< chunkSize,
maxSmallObjectSize, objectAlignSize > ObjAllocatorSingleton;
public:
/// Throwing single-object new throws bad_alloc when allocation fails.
#ifdef _MSC_VER
/// @note MSVC complains about non-empty exception specification lists.
static void * operator new ( std::size_t size )
#else
static void * operator new ( std::size_t size ) throw ( std::bad_alloc )
#endif
{
return ObjAllocatorSingleton::Instance().Allocate( size, true );
}
/// Non-throwing single-object new returns NULL if allocation fails.
static void * operator new ( std::size_t size, const std::nothrow_t & ) throw ()
{
return ObjAllocatorSingleton::Instance().Allocate( size, false );
}
/// Placement single-object new merely calls global placement new.
inline static void * operator new ( std::size_t size, void * place )
{
return ::operator new( size, place );
}
/// Single-object delete.
static void operator delete ( void * p, std::size_t size ) throw ()
{
ObjAllocatorSingleton::Instance().Deallocate( p, size );
}
/** Non-throwing single-object delete is only called when nothrow
new operator is used, and the constructor throws an exception.
*/
static void operator delete ( void * p, const std::nothrow_t & ) throw()
{
ObjAllocatorSingleton::Instance().Deallocate( p );
}
/// Placement single-object delete merely calls global placement delete.
inline static void operator delete ( void * p, void * place )
{
::operator delete ( p, place );
}
#ifdef LOKI_SMALL_OBJECT_USE_NEW_ARRAY
/// Throwing array-object new throws bad_alloc when allocation fails.
#ifdef _MSC_VER
/// @note MSVC complains about non-empty exception specification lists.
static void * operator new [] ( std::size_t size )
#else
static void * operator new [] ( std::size_t size )
throw ( std::bad_alloc )
#endif
{
return ObjAllocatorSingleton::Instance().Allocate( size, true );
}
/// Non-throwing array-object new returns NULL if allocation fails.
static void * operator new [] ( std::size_t size,
const std::nothrow_t & ) throw ()
{
return ObjAllocatorSingleton::Instance().Allocate( size, false );
}
/// Placement array-object new merely calls global placement new.
inline static void * operator new [] ( std::size_t size, void * place )
{
return ::operator new( size, place );
}
/// Array-object delete.
static void operator delete [] ( void * p, std::size_t size ) throw ()
{
ObjAllocatorSingleton::Instance().Deallocate( p, size );
}
/** Non-throwing array-object delete is only called when nothrow
new operator is used, and the constructor throws an exception.
*/
static void operator delete [] ( void * p,
const std::nothrow_t & ) throw()
{
ObjAllocatorSingleton::Instance().Deallocate( p );
}
/// Placement array-object delete merely calls global placement delete.
inline static void operator delete [] ( void * p, void * place )
{
::operator delete ( p, place );
}
#endif // #if use new array functions.
#endif // #if default template parameters are not zero
protected:
inline SmallObjectBase() {}
inline SmallObjectBase( const SmallObjectBase & ) {}
inline SmallObjectBase & operator = ( const SmallObjectBase & )
{ return *this; }
inline ~SmallObjectBase() {}
}; // end class SmallObjectBase
/** @class SmallObject
@ingroup SmallObjectGroup
SmallObject Base class for polymorphic small objects, offers fast
allocations & deallocations. Destructor is virtual and public. Default
constructor is trivial. Copy-constructor and copy-assignment operator are
not implemented since polymorphic classes almost always disable those
operations. Class has no data members so compilers can use
Empty-Base-Optimization.
*/
template
<
std::size_t chunkSize = LOKI_DEFAULT_CHUNK_SIZE,
std::size_t maxSmallObjectSize = LOKI_MAX_SMALL_OBJECT_SIZE,
std::size_t objectAlignSize = LOKI_DEFAULT_OBJECT_ALIGNMENT
>
class SmallObject : public SmallObjectBase< chunkSize,
maxSmallObjectSize, objectAlignSize >
{
public:
virtual ~SmallObject() {}
protected:
inline SmallObject() {}
private:
/// Copy-constructor is not implemented.
SmallObject( const SmallObject & );
/// Copy-assignment operator is not implemented.
SmallObject & operator = ( const SmallObject & );
}; // end class SmallObject
/** @class SmallValueObject
@ingroup SmallObjectGroup
SmallValueObject Base class for small objects with value-type
semantics - offers fast allocations & deallocations. Destructor is
non-virtual, inline, and protected to prevent unintentional destruction
through base class. Default constructor is trivial. Copy-constructor
and copy-assignment operator are trivial since value-types almost always
need those operations. Class has no data members so compilers can use
Empty-Base-Optimization.
*/
template
<
std::size_t chunkSize = LOKI_DEFAULT_CHUNK_SIZE,
std::size_t maxSmallObjectSize = LOKI_MAX_SMALL_OBJECT_SIZE,
std::size_t objectAlignSize = LOKI_DEFAULT_OBJECT_ALIGNMENT
>
class SmallValueObject : public SmallObjectBase< chunkSize,
maxSmallObjectSize, objectAlignSize >
{
protected:
inline SmallValueObject() {}
inline SmallValueObject( const SmallValueObject & ) {}
inline SmallValueObject & operator = ( const SmallValueObject & )
{ return *this; }
inline ~SmallValueObject() {}
}; // end class SmallValueObject
} // namespace ggadget
#endif // end file guardian
|
meego-netbook-ux/google-gadgets-meego
|
ggadget/small_object.h
|
C
|
apache-2.0
| 16,843
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_21) on Sat May 11 22:08:47 BST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Interface com.hp.hpl.jena.sparql.util.graph.Findable (Apache Jena ARQ)</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.sparql.util.graph.Findable (Apache Jena ARQ)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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/sparql/util/graph/Findable.html" title="interface in com.hp.hpl.jena.sparql.util.graph">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/sparql/util/graph/class-use/Findable.html" target="_top">Frames</a></li>
<li><a href="Findable.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Interface com.hp.hpl.jena.sparql.util.graph.Findable" class="title">Uses of Interface<br>com.hp.hpl.jena.sparql.util.graph.Findable</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/sparql/util/graph/Findable.html" title="interface in com.hp.hpl.jena.sparql.util.graph">Findable</a></span><span class="tabEnd"> </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.sparql.util.graph">com.hp.hpl.jena.sparql.util.graph</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="com.hp.hpl.jena.sparql.util.graph">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../../com/hp/hpl/jena/sparql/util/graph/Findable.html" title="interface in com.hp.hpl.jena.sparql.util.graph">Findable</a> in <a href="../../../../../../../../com/hp/hpl/jena/sparql/util/graph/package-summary.html">com.hp.hpl.jena.sparql.util.graph</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/sparql/util/graph/package-summary.html">com.hp.hpl.jena.sparql.util.graph</a> declared as <a href="../../../../../../../../com/hp/hpl/jena/sparql/util/graph/Findable.html" title="interface in com.hp.hpl.jena.sparql.util.graph">Findable</a></span><span class="tabEnd"> </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/sparql/util/graph/Findable.html" title="interface in com.hp.hpl.jena.sparql.util.graph">Findable</a></code></td>
<td class="colLast"><span class="strong">GNode.</span><code><strong><a href="../../../../../../../../com/hp/hpl/jena/sparql/util/graph/GNode.html#findable">findable</a></strong></code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="../../../../../../../../com/hp/hpl/jena/sparql/util/graph/Findable.html" title="interface in com.hp.hpl.jena.sparql.util.graph">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/sparql/util/graph/class-use/Findable.html" target="_top">Frames</a></li>
<li><a href="Findable.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Licenced under the Apache License, Version 2.0</small></p>
</body>
</html>
|
chinhnc/floodlight
|
lib/apache-jena-2.10.1/javadoc-arq/com/hp/hpl/jena/sparql/util/graph/class-use/Findable.html
|
HTML
|
apache-2.0
| 6,668
|
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// *** DISCLAIMER ***
// Config Connector's go-client for CRDs is currently in ALPHA, which means
// that future versions of the go-client may include breaking changes.
// Please try it out and give us feedback!
// Code generated by main. DO NOT EDIT.
package fake
import (
"context"
v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/cloudidentity/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
)
// FakeCloudIdentityGroups implements CloudIdentityGroupInterface
type FakeCloudIdentityGroups struct {
Fake *FakeCloudidentityV1beta1
ns string
}
var cloudidentitygroupsResource = schema.GroupVersionResource{Group: "cloudidentity.cnrm.cloud.google.com", Version: "v1beta1", Resource: "cloudidentitygroups"}
var cloudidentitygroupsKind = schema.GroupVersionKind{Group: "cloudidentity.cnrm.cloud.google.com", Version: "v1beta1", Kind: "CloudIdentityGroup"}
// Get takes name of the cloudIdentityGroup, and returns the corresponding cloudIdentityGroup object, and an error if there is any.
func (c *FakeCloudIdentityGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CloudIdentityGroup, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(cloudidentitygroupsResource, c.ns, name), &v1beta1.CloudIdentityGroup{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.CloudIdentityGroup), err
}
// List takes label and field selectors, and returns the list of CloudIdentityGroups that match those selectors.
func (c *FakeCloudIdentityGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CloudIdentityGroupList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(cloudidentitygroupsResource, cloudidentitygroupsKind, c.ns, opts), &v1beta1.CloudIdentityGroupList{})
if obj == nil {
return nil, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1beta1.CloudIdentityGroupList{ListMeta: obj.(*v1beta1.CloudIdentityGroupList).ListMeta}
for _, item := range obj.(*v1beta1.CloudIdentityGroupList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cloudIdentityGroups.
func (c *FakeCloudIdentityGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(cloudidentitygroupsResource, c.ns, opts))
}
// Create takes the representation of a cloudIdentityGroup and creates it. Returns the server's representation of the cloudIdentityGroup, and an error, if there is any.
func (c *FakeCloudIdentityGroups) Create(ctx context.Context, cloudIdentityGroup *v1beta1.CloudIdentityGroup, opts v1.CreateOptions) (result *v1beta1.CloudIdentityGroup, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(cloudidentitygroupsResource, c.ns, cloudIdentityGroup), &v1beta1.CloudIdentityGroup{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.CloudIdentityGroup), err
}
// Update takes the representation of a cloudIdentityGroup and updates it. Returns the server's representation of the cloudIdentityGroup, and an error, if there is any.
func (c *FakeCloudIdentityGroups) Update(ctx context.Context, cloudIdentityGroup *v1beta1.CloudIdentityGroup, opts v1.UpdateOptions) (result *v1beta1.CloudIdentityGroup, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(cloudidentitygroupsResource, c.ns, cloudIdentityGroup), &v1beta1.CloudIdentityGroup{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.CloudIdentityGroup), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeCloudIdentityGroups) UpdateStatus(ctx context.Context, cloudIdentityGroup *v1beta1.CloudIdentityGroup, opts v1.UpdateOptions) (*v1beta1.CloudIdentityGroup, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(cloudidentitygroupsResource, "status", c.ns, cloudIdentityGroup), &v1beta1.CloudIdentityGroup{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.CloudIdentityGroup), err
}
// Delete takes name of the cloudIdentityGroup and deletes it. Returns an error if one occurs.
func (c *FakeCloudIdentityGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cloudidentitygroupsResource, c.ns, name, opts), &v1beta1.CloudIdentityGroup{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCloudIdentityGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
action := testing.NewDeleteCollectionAction(cloudidentitygroupsResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &v1beta1.CloudIdentityGroupList{})
return err
}
// Patch applies the patch and returns the patched cloudIdentityGroup.
func (c *FakeCloudIdentityGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CloudIdentityGroup, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(cloudidentitygroupsResource, c.ns, name, pt, data, subresources...), &v1beta1.CloudIdentityGroup{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.CloudIdentityGroup), err
}
|
GoogleCloudPlatform/k8s-config-connector
|
pkg/clients/generated/client/clientset/versioned/typed/cloudidentity/v1beta1/fake/fake_cloudidentitygroup.go
|
GO
|
apache-2.0
| 6,316
|
package cn.itcast.zt;
import cn.itcast.zt.domain.User;
import cn.itcast.zt.domain.UserMapper;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = SpringbootMybatisSimpleApplication.class)
@Transactional
public class SpringbootMybatisSimpleApplicationTests {
@Autowired(required = false)
private UserMapper userMapper ;
@Test
@Rollback
public void findByName() {
userMapper.insert("AAA",20) ;
User u = userMapper.findByName("AAA") ;
Assert.assertEquals(20, u.getAge().intValue());
}
}
|
Erik-Yim/spring_boot_demo
|
springboot-mybatis-simple/src/test/java/cn/itcast/zt/SpringbootMybatisSimpleApplicationTests.java
|
Java
|
apache-2.0
| 887
|
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.experiment.catalog.resources;
import org.apache.airavata.registry.core.experiment.catalog.ExpCatResourceUtils;
import org.apache.airavata.registry.core.experiment.catalog.ExperimentCatResource;
import org.apache.airavata.registry.core.experiment.catalog.ResourceType;
import org.apache.airavata.registry.core.experiment.catalog.model.ExperimentOutput;
import org.apache.airavata.registry.core.experiment.catalog.model.ExperimentOutputPK;
import org.apache.airavata.registry.cpi.RegistryException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.persistence.EntityManager;
import java.util.List;
public class ExperimentOutputResource extends AbstractExpCatResource {
private static final Logger logger = LoggerFactory.getLogger(ExperimentOutputResource.class);
private String experimentId;
private String outputName;
private String outputValue;
private String dataType;
private String applicationArgument;
private boolean isRequired;
private boolean requiredToAddedToCmd;
private boolean dataMovement;
private String location;
private String searchQuery;
private boolean outputStreaming;
private String storageResourceId;
public String getExperimentId() {
return experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public String getOutputName() {
return outputName;
}
public void setOutputName(String outputName) {
this.outputName = outputName;
}
public String getOutputValue() {
return outputValue;
}
public void setOutputValue(String outputValue) {
this.outputValue = outputValue;
}
public String getDataType() {
return dataType;
}
public void setDataType(String dataType) {
this.dataType = dataType;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean getIsRequired() {
return isRequired;
}
public void setIsRequired(boolean isRequired) {
this.isRequired = isRequired;
}
public boolean getRequiredToAddedToCmd() {
return requiredToAddedToCmd;
}
public void setRequiredToAddedToCmd(boolean requiredToAddedToCmd) {
this.requiredToAddedToCmd = requiredToAddedToCmd;
}
public boolean getDataMovement() {
return dataMovement;
}
public void setDataMovement(boolean dataMovement) {
this.dataMovement = dataMovement;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getSearchQuery() {
return searchQuery;
}
public void setSearchQuery(String searchQuery) {
this.searchQuery = searchQuery;
}
public void setOutputStreaming(boolean outputStreaming) {
this.outputStreaming = outputStreaming;
}
public boolean isOutputStreaming() {
return outputStreaming;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public ExperimentCatResource create(ResourceType type) throws RegistryException {
logger.error("Unsupported resource type for process output data resource.", new UnsupportedOperationException());
throw new UnsupportedOperationException();
}
public void remove(ResourceType type, Object name) throws RegistryException {
logger.error("Unsupported resource type for process output data resource.", new UnsupportedOperationException());
throw new UnsupportedOperationException();
}
public ExperimentCatResource get(ResourceType type, Object name) throws RegistryException{
logger.error("Unsupported resource type for process output data resource.", new UnsupportedOperationException());
throw new UnsupportedOperationException();
}
public List<ExperimentCatResource> get(ResourceType type) throws RegistryException{
logger.error("Unsupported resource type for process output data resource.", new UnsupportedOperationException());
throw new UnsupportedOperationException();
}
public void save() throws RegistryException{
EntityManager em = null;
try {
em = ExpCatResourceUtils.getEntityManager();
if(experimentId == null){
throw new RegistryException("Does not have the experiment id");
}
ExperimentOutput experimentOutput;
ExperimentOutputPK experimentOutputPK = new ExperimentOutputPK();
experimentOutputPK.setExperimentId(experimentId);
experimentOutputPK.setOutputName(outputName);
ExperimentOutput existingExpOutput = em.find(ExperimentOutput.class, experimentOutputPK);
if (em.isOpen()) {
if (em.getTransaction().isActive()){
em.getTransaction().rollback();
}
em.close();
}
em = ExpCatResourceUtils.getEntityManager();
em.getTransaction().begin();
if(existingExpOutput == null){
experimentOutput = new ExperimentOutput();
}else {
experimentOutput = existingExpOutput;
}
experimentOutput.setExperimentId(experimentId);
experimentOutput.setOutputName(outputName);
experimentOutput.setOutputValue(outputValue);
experimentOutput.setDataType(dataType);
experimentOutput.setApplicationArgument(applicationArgument);
experimentOutput.setIsRequired(isRequired);
experimentOutput.setRequiredToAddedToCmd(requiredToAddedToCmd);
experimentOutput.setDataMovement(dataMovement);
experimentOutput.setLocation(location);
experimentOutput.setSearchQuery(searchQuery);
experimentOutput.setOutputStreaming(outputStreaming);
experimentOutput.setStorageResourceId(storageResourceId);
if (existingExpOutput == null){
em.persist(experimentOutput);
}else {
em.merge(experimentOutput);
}
em.getTransaction().commit();
if (em.isOpen()) {
if (em.getTransaction().isActive()){
em.getTransaction().rollback();
}
em.close();
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
throw new RegistryException(e);
} finally {
if (em != null && em.isOpen()) {
if (em.getTransaction().isActive()){
em.getTransaction().rollback();
}
em.close();
}
}
}
}
|
gouravshenoy/airavata
|
modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ExperimentOutputResource.java
|
Java
|
apache-2.0
| 7,971
|
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Common Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.eclipse.org/legal/cpl-v10.html
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* Copyright (C) 2008 Thomas E Enebo <enebo@acm.org>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the CPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the CPL, the GPL or the LGPL.
***** END LICENSE BLOCK *****/
package org.jruby.ast;
import org.jruby.Ruby;
import org.jruby.lexer.yacc.ISourcePosition;
import org.jruby.runtime.Block;
import org.jruby.runtime.ThreadContext;
import org.jruby.runtime.builtin.IRubyObject;
/**
*
* @author enebo
*/
public class ArgsNoArgNode extends ArgsNode {
public ArgsNoArgNode(ISourcePosition position) {
super(position, null, null, null, null, null);
}
@Override
public void prepare(ThreadContext context, Ruby runtime, IRubyObject self, IRubyObject[] args, Block block) {
// Do nothing
}
}
|
google-code/android-scripting
|
jruby/src/src/org/jruby/ast/ArgsNoArgNode.java
|
Java
|
apache-2.0
| 2,046
|
/*Copyright 2010-2012 George Karagoulis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/
#include <QtCore/QString>
#include <QtTest/QtTest>
#include <gutil/vector.h>
#include <vector>
USING_NAMESPACE_GUTIL;
class VectorTest : public QObject
{
Q_OBJECT
public:
VectorTest();
private Q_SLOTS:
void test_basic_function();
void test_pushfront();
void test_removal();
void test_vector_of_vector();
void test_non_movable_class();
void test_sorting();
void test_interfaces();
private:
void _test_irandomaccess(IRandomAccessContainer<int> *);
void _test_iqueue(IQueue<int> *);
void _test_ideque(IDeque<int> *);
void _test_istack(IStack<int> *);
};
/** Note: You should be able to catch failures to deconstruct with valgrind
*/
class nonmovable
{
public:
inline nonmovable() :this_ptr(this), my_int(new int){}
inline nonmovable(const nonmovable &) :this_ptr(this), my_int(new int){}
inline nonmovable &operator = (const nonmovable &){
delete my_int;
my_int = new int;
this_ptr = this;
return *this;
}
inline ~nonmovable(){ delete my_int; }
nonmovable *this_ptr;
int *my_int;
};
VectorTest::VectorTest()
{
}
void VectorTest::test_basic_function()
{
Vector<int> vec;
qDebug(QString("An empty vector uses %1 bytes, and a std::vector uses %2.")
.arg(sizeof(Vector<int>))
.arg(sizeof(std::vector<int>))
.toLatin1().constData());
qDebug(QString("An empty vector with a random access interface uses %1 bytes.")
.arg(sizeof(Vector<int, true, IRandomAccessContainer<int> >))
.toLatin1().constData());
for(int i(0); i < 100; ++i)
{
vec.Insert(i, vec.end());
// qDebug(QString("After item %1, memory usage is %2 bytes\n")
// .arg(i).arg(vec.ReportMemoryUsage()).toAscii());
}
int cnt(0);
for(Vector<int>::const_iterator iter(vec.begin()); iter; ++iter)
{
QVERIFY(*iter == cnt);
++cnt;
}
QVERIFY(cnt == vec.Length());
vec.Remove(vec.begin());
QVERIFY(vec.Length() == 99);
QVERIFY(vec[0] == 1);
QVERIFY(vec[1] == 2);
QVERIFY(vec[98] == 99);
vec.Insert(0, vec.begin());
QVERIFY(vec.Length() == 100);
QVERIFY(vec[0] == 0);
QVERIFY(vec[1] == 1);
QVERIFY(vec[99] == 99);
vec.Clear();
QVERIFY(vec.Length() == 0);
vec.Insert(2, vec.end());
vec.Insert(3, vec.end());
vec.Insert(4, vec.end());
vec.Insert(1, vec.begin());
vec.Insert(0, vec.begin());
for(int i(0); i < 5; i++)
QVERIFY(vec[i] == i);
}
void VectorTest::test_pushfront()
{
static const int count = 1000;
Vector<int> vec;
for(int i = count; i >= 1; --i)
vec.PushFront(i);
QVERIFY(vec.Length() == count);
for(int *b = vec.Data(), *e = b + count, i = 1;
b != e;
++b, ++i)
{
QVERIFY(*b == i);
}
}
void VectorTest::test_removal()
{
Vector<int> vec;
vec.Insert(0, vec.end());
vec.Insert(1, vec.end());
vec.Insert(2, vec.end());
vec.Insert(3, vec.end());
vec.Insert(4, vec.end());
QVERIFY(vec.Length() == 5);
vec.Remove(vec.begin());
QVERIFY(vec.Length() == 4);
for(int i(1); i < 5; i++)
QVERIFY(vec[i - 1] == i);
vec.Remove(vec.begin() + 2);
QVERIFY(vec.Length() == 3);
QVERIFY(vec[0] == 1);
QVERIFY(vec[1] == 2);
QVERIFY(vec[2] == 4);
// Remove a range of items
vec.Clear();
vec.Insert(1);
vec.Insert(2);
vec.Insert(3);
vec.Insert(4);
vec.Insert(5);
vec.Insert(6);
vec.Insert(7);
vec.Insert(8);
vec.Insert(9);
vec.Insert(10);
vec.RemoveAt(1, 8);
QVERIFY(vec.Length() == 2);
QVERIFY(vec[0] == 1);
QVERIFY(vec[1] == 10);
// Remove a range of items that are not binary-movable
Vector<nonmovable> nmvec(10);
nmvec.Resize(10);
nmvec.RemoveAt(2, 2);
QVERIFY(nmvec.Length() == 8);
nmvec.Clear();
nmvec.Resize(10);
nmvec.RemoveAt(1, 8);
QVERIFY(nmvec.Length() == 2);
}
void VectorTest::test_vector_of_vector()
{
const int square_width = 3;
int row1[] = { 0, 1, 2 };
int row2[] = { 3, 4, 5 };
int row3[] = { 6, 7, 8 };
Vector< Vector<int> > matrix( square_width );
matrix.Insert(Vector<int>(row1, square_width), 0 );
matrix.Insert(Vector<int>(row3, square_width), 1 );
matrix.Insert(Vector<int>(row2, square_width), 1 );
Vector< Vector<int> > simple_matrix( 3 );
simple_matrix.Insert( matrix[0], simple_matrix.end() );
simple_matrix.Insert( matrix[1], simple_matrix.end() );
simple_matrix.Insert( matrix[2], simple_matrix.end() );
Vector< Vector<int> > simple_matrix_copy( simple_matrix );
for(int i(0); i < square_width; ++i)
{
for(int j(0); j < square_width; j++)
{
QVERIFY(matrix[i][j] == square_width*i + j);
QVERIFY(simple_matrix[i][j] == square_width*i + j);
QVERIFY(simple_matrix_copy[i][j] == square_width*i + j);
}
}
// qDebug(QString("The %1-sized vector-of-vector<int> consumes %2 bytes of memory")
// .arg(square_width).arg(matrix.ReportMemoryUsage()).toAscii());
}
void VectorTest::test_non_movable_class()
{
Vector<nonmovable> vec;
for(int i(0); i < 100; ++i)
vec.Insert(nonmovable());
int cnt(0);
for(Vector<nonmovable>::const_iterator iter(vec.begin()); iter; ++iter)
{
const nonmovable &probe1( *iter );
const nonmovable *probe2( vec.Data() + cnt );
QVERIFY(probe1.this_ptr == &vec[cnt]);
++cnt;
}
QVERIFY(cnt == vec.Length());
vec.Remove(vec.begin());
QVERIFY(vec.Length() == 99);
QVERIFY(vec[0].this_ptr == &vec[0]);
QVERIFY(vec[1].this_ptr == &vec[1]);
QVERIFY(vec[98].this_ptr == &vec[98]);
vec.Insert(nonmovable(), vec.begin());
QVERIFY(vec.Length() == 100);
QVERIFY(vec[0].this_ptr == &vec[0]);
QVERIFY(vec[1].this_ptr == &vec[1]);
QVERIFY(vec[99].this_ptr == &vec[99]);
vec.Clear();
QVERIFY(vec.Length() == 0);
vec.Insert(nonmovable(), vec.end());
vec.Insert(nonmovable(), vec.end());
vec.Insert(nonmovable(), vec.end());
vec.Insert(nonmovable(), vec.begin());
vec.Insert(nonmovable(), vec.begin());
for(int i(0); i < 5; i++)
QVERIFY(vec[i].this_ptr == &vec[i]);
}
void VectorTest::test_sorting()
{
Vector<int> v;
v.Insert(10);
v.Insert(9);
v.Insert(8);
v.Insert(7);
v.Insert(6);
v.Insert(5);
v.Insert(4);
v.Insert(3);
v.Insert(2);
v.Insert(1);
v.Insert(0);
v.Sort(true, GUtil::IComparer<int>(), GUtil::MergeSort);
// for(int i = 0; i < 11; ++i)
// qDebug() << v[i];
for(int i = 0; i < 11; ++i)
QVERIFY2(v[i] == i, QString("%1 != %2").arg(v[i]).arg(i).toUtf8());
v.Sort(false);
for(int i = 10; i >= 0; --i)
QVERIFY2(v[10 - i] == i, QString("%1 != %2").arg(v[10 - i]).arg(i).toUtf8());
v.Clear();
const int cnt(10000);
for(int i = 0; i < cnt; ++i)
v.Insert(qrand());
v.Sort();
// for(int i = 0; i < cnt; ++i)
// qDebug() << v[i];
QVERIFY(v.Length() == cnt);
int mem(INT_MIN);
for(int i = 0; i < cnt; ++i)
{
QVERIFY2(mem <= v[i], QString("%1 > %2").arg(mem).arg(v[i]).toUtf8());
mem = v[i];
}
}
void VectorTest::test_interfaces()
{
Vector<int, true, IRandomAccessContainer<int> > vec_randomAccess;
_test_irandomaccess(&vec_randomAccess);
}
void VectorTest::_test_irandomaccess(IRandomAccessContainer<int> *rac)
{
rac->Clear();
QVERIFY(0 == rac->Size());
rac->Insert(2, 0);
QVERIFY(1 == rac->Size());
QVERIFY(2 == rac->At(0));
rac->Insert(0, 0);
QVERIFY(2 == rac->Size());
QVERIFY(0 == rac->At(0));
QVERIFY(2 == rac->At(1));
rac->Insert(1, 1);
QVERIFY(3 == rac->Size());
QVERIFY(0 == rac->At(0));
QVERIFY(1 == rac->At(1));
QVERIFY(2 == rac->At(2));
rac->Insert(3, 3);
QVERIFY(4 == rac->Size());
QVERIFY(0 == rac->At(0));
QVERIFY(1 == rac->At(1));
QVERIFY(2 == rac->At(2));
QVERIFY(3 == rac->At(3));
rac->Remove(0);
QVERIFY(3 == rac->Size());
QVERIFY(1 == rac->At(0));
QVERIFY(2 == rac->At(1));
QVERIFY(3 == rac->At(2));
}
QTEST_APPLESS_MAIN(VectorTest);
#include "tst_vectortest.moc"
|
karagog/gutil
|
src/core/data_objects/Tests/Vector/tst_vectortest.cpp
|
C++
|
apache-2.0
| 8,888
|
package com.time.time.bean;
import org.litepal.crud.DataSupport;
/**
* Created by ZC on 2017/2/20.
*/
public class DailyEvent extends DataSupport {
private int id;
private String date;
private String eventList;
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getEventList() {
return eventList;
}
public void setEventList(String eventList) {
this.eventList = eventList;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
|
CZhang16/time
|
app/src/main/java/com/time/time/bean/DailyEvent.java
|
Java
|
apache-2.0
| 635
|
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "stdlib/stats/base/dnanmaxabs.h"
#include <stdint.h>
#include <stdio.h>
int main() {
// Create a strided array:
double x[] = { 1.0, -2.0, -3.0, 4.0, -5.0, -6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
// Specify the number of elements:
int64_t N = 5;
// Specify the stride length:
int64_t stride = 2;
// Compute the maximum absolute value:
double v = stdlib_strided_dnanmaxabs( N, x, stride );
// Print the result:
printf( "maxabs: %lf\n", v );
}
|
stdlib-js/stdlib
|
lib/node_modules/@stdlib/stats/base/dnanmaxabs/examples/c/example.c
|
C
|
apache-2.0
| 1,079
|
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespace Microsoft.Azure.Batch.Protocol.Models
{
using System;
using System.Linq;
using System.Collections.Generic;
using Newtonsoft.Json;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Microsoft.Rest.Azure;
/// <summary>
/// Parameters for a CloudJobOperations.Patch request.
/// </summary>
public partial class JobPatchParameter
{
/// <summary>
/// Initializes a new instance of the JobPatchParameter class.
/// </summary>
public JobPatchParameter() { }
/// <summary>
/// Initializes a new instance of the JobPatchParameter class.
/// </summary>
/// <param name="priority">The priority of the job.</param>
/// <param name="onAllTasksComplete">Specifies an action the Batch service should take when all tasks in the job are in the completed state. Possible values include: 'noAction', 'terminateJob'</param>
/// <param name="constraints">The execution constraints for the job.</param>
/// <param name="poolInfo">The pool on which the Batch service runs the job's tasks.</param>
/// <param name="metadata">A list of name-value pairs associated with the job as metadata.</param>
public JobPatchParameter(int? priority = default(int?), OnAllTasksComplete? onAllTasksComplete = default(OnAllTasksComplete?), JobConstraints constraints = default(JobConstraints), PoolInformation poolInfo = default(PoolInformation), IList<MetadataItem> metadata = default(IList<MetadataItem>))
{
Priority = priority;
OnAllTasksComplete = onAllTasksComplete;
Constraints = constraints;
PoolInfo = poolInfo;
Metadata = metadata;
}
/// <summary>
/// Gets or sets the priority of the job.
/// </summary>
/// <remarks>
/// Priority values can range from -1000 to 1000, with -1000 being the
/// lowest priority and 1000 being the highest priority. If omitted,
/// the priority of the job is left unchanged.
/// </remarks>
[JsonProperty(PropertyName = "priority")]
public int? Priority { get; set; }
/// <summary>
/// Gets or sets specifies an action the Batch service should take
/// when all tasks in the job are in the completed state. Possible
/// values include: 'noAction', 'terminateJob'
/// </summary>
[JsonProperty(PropertyName = "onAllTasksComplete")]
public OnAllTasksComplete? OnAllTasksComplete { get; set; }
/// <summary>
/// Gets or sets the execution constraints for the job.
/// </summary>
/// <remarks>
/// If omitted, the existing execution constraints are left unchanged.
/// </remarks>
[JsonProperty(PropertyName = "constraints")]
public JobConstraints Constraints { get; set; }
/// <summary>
/// Gets or sets the pool on which the Batch service runs the job's
/// tasks.
/// </summary>
/// <remarks>
/// You may change the pool for a job only when the job is disabled.
/// The Patch Job call will fail if you include the poolInfo element
/// and the job is not disabled. If you specify an
/// autoPoolSpecification specification in the poolInfo, only the
/// keepAlive property can be updated, and then only if the auto pool
/// has a poolLifetimeOption of job. If omitted, the job continues to
/// run on its current pool.
/// </remarks>
[JsonProperty(PropertyName = "poolInfo")]
public PoolInformation PoolInfo { get; set; }
/// <summary>
/// Gets or sets a list of name-value pairs associated with the job as
/// metadata.
/// </summary>
/// <remarks>
/// If omitted, the existing job metadata is left unchanged.
/// </remarks>
[JsonProperty(PropertyName = "metadata")]
public IList<MetadataItem> Metadata { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.PoolInfo != null)
{
this.PoolInfo.Validate();
}
if (this.Metadata != null)
{
foreach (var element in this.Metadata)
{
if (element != null)
{
element.Validate();
}
}
}
}
}
}
|
yoavrubin/azure-sdk-for-net
|
src/Batch/Client/Src/GeneratedProtocol/Models/JobPatchParameter.cs
|
C#
|
apache-2.0
| 5,496
|
# Lobelia ovina E.Wimm. SPECIES
#### Status
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Campanulaceae/Lobelia/Lobelia ovina/README.md
|
Markdown
|
apache-2.0
| 179
|
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.apigateway.model.transform;
import static com.amazonaws.util.StringUtils.UTF8;
import static com.amazonaws.util.StringUtils.COMMA_SEPARATOR;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.regex.Pattern;
import com.amazonaws.AmazonClientException;
import com.amazonaws.Request;
import com.amazonaws.DefaultRequest;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.apigateway.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.BinaryUtils;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.json.*;
/**
* DeleteBasePathMappingRequest Marshaller
*/
public class DeleteBasePathMappingRequestMarshaller
implements
Marshaller<Request<DeleteBasePathMappingRequest>, DeleteBasePathMappingRequest> {
private static final String DEFAULT_CONTENT_TYPE = "";
public Request<DeleteBasePathMappingRequest> marshall(
DeleteBasePathMappingRequest deleteBasePathMappingRequest) {
if (deleteBasePathMappingRequest == null) {
throw new AmazonClientException(
"Invalid argument passed to marshall(...)");
}
Request<DeleteBasePathMappingRequest> request = new DefaultRequest<DeleteBasePathMappingRequest>(
deleteBasePathMappingRequest, "AmazonApiGateway");
request.setHttpMethod(HttpMethodName.DELETE);
String uriResourcePath = "/domainnames/{domain_name}/basepathmappings/{base_path}";
uriResourcePath = uriResourcePath.replace(
"{domain_name}",
(deleteBasePathMappingRequest.getDomainName() == null) ? ""
: StringUtils.fromString(deleteBasePathMappingRequest
.getDomainName()));
uriResourcePath = uriResourcePath.replace(
"{base_path}",
(deleteBasePathMappingRequest.getBasePath() == null) ? ""
: StringUtils.fromString(deleteBasePathMappingRequest
.getBasePath()));
request.setResourcePath(uriResourcePath);
request.setContent(new ByteArrayInputStream(new byte[0]));
if (!request.getHeaders().containsKey("Content-Type")) {
request.addHeader("Content-Type", DEFAULT_CONTENT_TYPE);
}
return request;
}
}
|
trasa/aws-sdk-java
|
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/transform/DeleteBasePathMappingRequestMarshaller.java
|
Java
|
apache-2.0
| 3,230
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var visitor_1 = require("graphql/language/visitor");
var ts_invariant_1 = require("ts-invariant");
var storeUtils_1 = require("./storeUtils");
function getDirectiveInfoFromField(field, variables) {
if (field.directives && field.directives.length) {
var directiveObj_1 = {};
field.directives.forEach(function (directive) {
directiveObj_1[directive.name.value] = storeUtils_1.argumentsObjectFromField(directive, variables);
});
return directiveObj_1;
}
return null;
}
exports.getDirectiveInfoFromField = getDirectiveInfoFromField;
function shouldInclude(selection, variables) {
if (variables === void 0) { variables = {}; }
if (!selection.directives) {
return true;
}
var res = true;
selection.directives.forEach(function (directive) {
if (directive.name.value !== 'skip' && directive.name.value !== 'include') {
return;
}
var directiveArguments = directive.arguments || [];
var directiveName = directive.name.value;
ts_invariant_1.invariant(directiveArguments.length === 1, "Incorrect number of arguments for the @" + directiveName + " directive.");
var ifArgument = directiveArguments[0];
ts_invariant_1.invariant(ifArgument.name && ifArgument.name.value === 'if', "Invalid argument for the @" + directiveName + " directive.");
var ifValue = directiveArguments[0].value;
var evaledValue = false;
if (!ifValue || ifValue.kind !== 'BooleanValue') {
ts_invariant_1.invariant(ifValue.kind === 'Variable', "Argument for the @" + directiveName + " directive must be a variable or a boolean value.");
evaledValue = variables[ifValue.name.value];
ts_invariant_1.invariant(evaledValue !== void 0, "Invalid variable referenced in @" + directiveName + " directive.");
}
else {
evaledValue = ifValue.value;
}
if (directiveName === 'skip') {
evaledValue = !evaledValue;
}
if (!evaledValue) {
res = false;
}
});
return res;
}
exports.shouldInclude = shouldInclude;
function getDirectiveNames(doc) {
var names = [];
visitor_1.visit(doc, {
Directive: function (node) {
names.push(node.name.value);
},
});
return names;
}
exports.getDirectiveNames = getDirectiveNames;
function hasDirectives(names, doc) {
return getDirectiveNames(doc).some(function (name) { return names.indexOf(name) > -1; });
}
exports.hasDirectives = hasDirectives;
function hasClientExports(document) {
return (document &&
hasDirectives(['client'], document) &&
hasDirectives(['export'], document));
}
exports.hasClientExports = hasClientExports;
//# sourceMappingURL=directives.js.map
|
mrtequino/JSW
|
graphql/server1/node_modules/apollo-utilities/lib/directives.js
|
JavaScript
|
apache-2.0
| 2,897
|
/**
* IK 中文分词 版本 5.0.1
* IK Analyzer release 5.0.1
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* 源代码由林良益(linliangyi2005@gmail.com)提供
* 版权声明 2012,乌龙茶工作室
* provided by Linliangyi and copyright 2012 by Oolong studio
*
*
*/
package org.wltea.analyzer.lucene;
import java.io.IOException;
import java.io.Reader;
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
import org.apache.lucene.analysis.tokenattributes.TypeAttribute;
import org.wltea.analyzer.core.IKSegmenter;
import org.wltea.analyzer.core.Lexeme;
/**
* IK分词器 Lucene Tokenizer适配器类
* 兼容Lucene 4.0版本
*/
public final class IKTokenizer extends Tokenizer {
//IK分词器实现
private IKSegmenter _IKImplement;
//词元文本属性
private final CharTermAttribute termAtt;
//词元位移属性
private final OffsetAttribute offsetAtt;
//词元分类属性(该属性分类参考org.wltea.analyzer.core.Lexeme中的分类常量)
private final TypeAttribute typeAtt;
//记录最后一个词元的结束位置
private int endPosition;
/**
* Lucene 4.0 Tokenizer适配器类构造函数
* @param in
* @param useSmart
*/
public IKTokenizer(Reader in , boolean useSmart){
// super(in);
offsetAtt = addAttribute(OffsetAttribute.class);
termAtt = addAttribute(CharTermAttribute.class);
typeAtt = addAttribute(TypeAttribute.class);
_IKImplement = new IKSegmenter(input , useSmart);
}
/* (non-Javadoc)
* @see org.apache.lucene.analysis.TokenStream#incrementToken()
*/
@Override
public boolean incrementToken() throws IOException {
//清除所有的词元属性
clearAttributes();
Lexeme nextLexeme = _IKImplement.next();
if(nextLexeme != null){
//将Lexeme转成Attributes
//设置词元文本
termAtt.append(nextLexeme.getLexemeText());
//设置词元长度
termAtt.setLength(nextLexeme.getLength());
//设置词元位移
offsetAtt.setOffset(nextLexeme.getBeginPosition(), nextLexeme.getEndPosition());
//记录分词的最后位置
endPosition = nextLexeme.getEndPosition();
//记录词元分类
typeAtt.setType(nextLexeme.getLexemeTypeString());
//返会true告知还有下个词元
return true;
}
//返会false告知词元输出完毕
return false;
}
/*
* (non-Javadoc)
* @see org.apache.lucene.analysis.Tokenizer#reset(java.io.Reader)
*/
@Override
public void reset() throws IOException {
super.reset();
_IKImplement.reset(input);
}
@Override
public final void end() {
// set final offset
int finalOffset = correctOffset(this.endPosition);
offsetAtt.setOffset(finalOffset, finalOffset);
}
}
|
ljx2014/webplus
|
src/main/java/org/wltea/analyzer/lucene/IKTokenizer.java
|
Java
|
apache-2.0
| 3,566
|
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package agent.dbgmodel.impl.dbgmodel.datamodel.script.debug;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.Guid.REFIID;
import agent.dbgmodel.dbgmodel.datamodel.script.debug.DataModelScriptDebugBreakpointEnumerator;
import agent.dbgmodel.impl.dbgmodel.DbgModelUtil;
import agent.dbgmodel.impl.dbgmodel.DbgModelUtil.InterfaceSupplier;
import agent.dbgmodel.jna.dbgmodel.datamodel.script.debug.IDataModelScriptDebugBreakpointEnumerator;
import agent.dbgmodel.jna.dbgmodel.datamodel.script.debug.WrapIDataModelScriptDebugBreakpointEnumerator;
import ghidra.util.datastruct.WeakValueHashMap;
public interface DataModelScriptDebugBreakpointEnumeratorInternal
extends DataModelScriptDebugBreakpointEnumerator {
Map<Pointer, DataModelScriptDebugBreakpointEnumeratorInternal> CACHE = new WeakValueHashMap<>();
static DataModelScriptDebugBreakpointEnumeratorInternal instanceFor(
WrapIDataModelScriptDebugBreakpointEnumerator data) {
return DbgModelUtil.lazyWeakCache(CACHE, data,
DataModelScriptDebugBreakpointEnumeratorImpl::new);
}
ImmutableMap.Builder<REFIID, Class<? extends WrapIDataModelScriptDebugBreakpointEnumerator>> PREFERRED_DATA_SPACES_IIDS_BUILDER =
ImmutableMap.builder();
Map<REFIID, Class<? extends WrapIDataModelScriptDebugBreakpointEnumerator>> PREFERRED_DATA_SPACES_IIDS =
PREFERRED_DATA_SPACES_IIDS_BUILDER //
.put(
new REFIID(
IDataModelScriptDebugBreakpointEnumerator.IID_IDATA_MODEL_SCRIPT_DEBUG_BREAKPOINT_ENUMERATOR),
WrapIDataModelScriptDebugBreakpointEnumerator.class) //
.build();
static DataModelScriptDebugBreakpointEnumeratorInternal tryPreferredInterfaces(
InterfaceSupplier supplier) {
return DbgModelUtil.tryPreferredInterfaces(
DataModelScriptDebugBreakpointEnumeratorInternal.class,
PREFERRED_DATA_SPACES_IIDS, supplier);
}
}
|
NationalSecurityAgency/ghidra
|
Ghidra/Debug/Debugger-agent-dbgmodel/src/main/java/agent/dbgmodel/impl/dbgmodel/datamodel/script/debug/DataModelScriptDebugBreakpointEnumeratorInternal.java
|
Java
|
apache-2.0
| 2,489
|
/*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.api.java.archives;
import groovy.lang.Closure;
import org.gradle.internal.HasInternalProtocol;
import java.util.Map;
/**
* Represents the manifest file of a JAR file.
*/
@HasInternalProtocol
public interface Manifest {
/**
* Returns the main attributes of the manifest.
*/
Attributes getAttributes();
/**
* Returns the sections of the manifest (excluding the main section).
*
* @return A map with the sections, where the key represents the section name and value the section attributes.
*/
Map<String, Attributes> getSections();
/**
* Adds content to the main attributes of the manifest.
*
* @param attributes The values to add to the main attributes. The values can be any object. For evaluating the value objects
* their {@link Object#toString()} method is used. This is done lazily either before writing or when {@link #getEffectiveManifest()}
* is called.
*
* @return this
* @throws ManifestException If a key is invalid according to the manifest spec or if a key or value is null.
*/
Manifest attributes(Map<String, ?> attributes) throws ManifestException;
/**
* Adds content to the given section of the manifest.
*
* @param attributes The values to add to the section. The values can be any object. For evaluating the value objects
* their {@link Object#toString()} method is used. This is done lazily either before writing or when {@link #getEffectiveManifest()}
* is called.
* @param sectionName The name of the section
*
* @return this
* @throws ManifestException If a key is invalid according to the manifest spec or if a key or value is null.
*/
Manifest attributes(Map<String, ?> attributes, String sectionName) throws ManifestException;
/**
* Returns a new manifest instance where all the attribute values are expanded (e.g. their toString method is called).
* The returned manifest also contains all the attributes of the to be merged manifests specified in {@link #from(Object...)}.
*/
Manifest getEffectiveManifest();
/**
* Writes the manifest into a file. The path's are resolved as defined by {@link org.gradle.api.Project#files(Object...)}
*
* The manifest will be encoded using the character set defined by the {@link org.gradle.jvm.tasks.Jar#getManifestContentCharset()} property.
*
* @param path The path of the file to write the manifest into.
* @return this
*/
Manifest writeTo(Object path);
/**
* Specifies other manifests to be merged into this manifest. A merge path can either be another instance of
* {@link org.gradle.api.java.archives.Manifest} or a file path as interpreted by {@link org.gradle.api.Project#files(Object...)}.
*
* The merge is not happening instantaneously. It happens either before writing or when {@link #getEffectiveManifest()}
* is called.
*
* @return this
*/
Manifest from(Object... mergePath);
/**
* Specifies other manifests to be merged into this manifest. A merge path is interpreted as described in
* {@link #from(Object...)}.
*
* The merge is not happening instantaneously. It happens either before writing or when {@link #getEffectiveManifest()}
* is called.
*
* The closure configures the underlying {@link org.gradle.api.java.archives.ManifestMergeSpec}.
*
* @return this
*/
Manifest from(Object mergePath, Closure<?> closure);
}
|
gstevey/gradle
|
subprojects/platform-jvm/src/main/java/org/gradle/api/java/archives/Manifest.java
|
Java
|
apache-2.0
| 4,168
|
var CMLog=Packages.com.planet_ink.coffee_mud.core.Log;
CMLog.infoOut(getParms());
mob().tell("Done.");
|
bozimmerman/CoffeeMud
|
resources/examples/LogWrite.js
|
JavaScript
|
apache-2.0
| 106
|
// Copyright (c) 2013 Couchbase, Inc.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software distributed under the
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
package main
import (
"flag"
"fmt"
"github.com/prataprc/gobtree"
"os"
"time"
)
var _ = fmt.Sprintln("keep 'fmt' import during debugging", time.Now(), os.O_WRONLY)
func main() {
flag.Parse()
args := flag.Args()
idxfile, kvfile := args[0], args[1]
os.Remove(idxfile)
os.Remove(kvfile)
var conf = btree.Config{
Idxfile: idxfile,
Kvfile: kvfile,
IndexConfig: btree.IndexConfig{
Sectorsize: 512,
Flistsize: 2000 * btree.OFFSET_SIZE,
Blocksize: 512,
},
Maxlevel: 6,
RebalanceThrs: 5,
AppendRatio: 0.7,
DrainRate: 600,
MaxLeafCache: 1000,
Sync: false,
Nocache: false,
}
store := btree.NewStore(conf)
bt := btree.NewBTree(store)
factor := 1
count := 10000
seed := time.Now().UnixNano()
fmt.Println("Seed:", seed)
keys, values := btree.TestData(count, seed)
fmt.Println(time.Now())
for i := 0; i < factor; i++ {
for j := 0; j < count; j++ {
k, v := keys[j], values[j]
k.Id = int64((i * count) + j)
bt.Insert(k, v)
}
fmt.Println("Done ", time.Now().UnixNano()/1000000, (i+1)*count)
}
bt.Drain()
fmt.Println(time.Now())
// Sanity check
if bt.Count() != int64(count*factor) {
fmt.Println(bt.Count(), int64(count*factor))
panic("Count mismatch")
}
// Remove
checkcount := int64(count * factor)
for i := 0; i < factor; i++ {
for j := 0; j < count; j += 3 {
k := keys[j]
k.Id = int64((i * count) + j)
bt.Remove(k)
bt.Drain()
bt.Check()
checkcount -= 1
if bt.Count() != checkcount {
fmt.Println("remove mismatch count", bt.Count(), checkcount)
panic("")
}
}
for j := 1; j < count; j += 3 {
k := keys[j]
k.Id = int64((i * count) + j)
bt.Remove(k)
bt.Drain()
bt.Check()
checkcount -= 1
if bt.Count() != checkcount {
fmt.Println("remove mismatch count", bt.Count(), checkcount)
panic("")
}
}
for j := 2; j < count; j += 3 {
k := keys[j]
k.Id = int64((i * count) + j)
bt.Remove(k)
bt.Drain()
bt.Check()
checkcount -= 1
if bt.Count() != checkcount {
fmt.Println("remove mismatch count", bt.Count(), checkcount)
panic("")
}
}
fmt.Println("Done ", time.Now().UnixNano()/1000000, (i+1)*count)
}
bt.Drain()
bt.Stats(false)
fmt.Println("Count", bt.Count())
bt.Close()
}
|
prataprc/gobtree
|
tests/insert_sbench/insert_sbench.go
|
GO
|
apache-2.0
| 2,861
|
Title: README
Date: 20161031
<A name="toc1-7" title="qac " />
# qac
Qac provides shared memory atomic counter to multiple q processes on Linux.
These processes can be either parent/children or unrelated.
<A name="toc1-13" title="Contents" />
# Contents
**<a href="#toc1-18">Copyright and License</a>**
**<a href="#toc1-25">Example</a>**
**<a href="#toc1-38">API</a>**
* <a href="#toc2-56">Opaque type</a>
**<a href="#toc1-61">Installation</a>**
**<a href="#toc1-73">Implementation Details and Bugs</a>**
<A name="toc1-18" title="Copyright and License" />
# Copyright and License
```
Copyright (c) 2016 Jaeheum Han <jay.han@gmail.com>
Licensed under Apache License v2.0 - see LICENSE file for details
```
<A name="toc1-25" title="Example" />
# Example
```
q)\l qac.q
q)c:init 0;n:123456789
q)do[n;inc c];print c
123456789
q)do[n;dec c];0~print c
1b
q)
```
<A name="toc1-38" title="API" />
# API
```
o:.z.i; do[.z.c;if[o~.z.i;pids,:fork[]]]; ... ; wait[]
wait[] / blocks until all fork[]ed children are dead
kill[pids] / kill all pids
c:init j / c~(kc(-KJ);kj(intptr_t))
c:restart fname / `:/dev/rszshm_xxxxxx/0 or fname c
f:fname c / f~`:/dev/rszshm_xxxxxx/0 (useful for restart f)
detach c / detach c from current process, all ops but fname and rm are no-ops afterwards
rm c / rm the underlying shm file, preventing future processes from accessing it
xx:inc,dec,print c / xx:the value of counter, or nothing after detach or rm
```
For better performance ignore return values of `inc`/`dec`, and `print`
afterwards (see [demo.q][demo.q]).
<A name="toc2-56" title="Opaque type" />
## Opaque type
Treat counter or the return value of `init` and `restart` as opaque type.
<A name="toc1-61" title="Installation" />
# Installation
`make install` copies `qac.so` and `rszshm.o` to `~/q/l64` and `qac.q` to `~/q/`.
Note [makefile][makefile] assumes that
- kdb+ version > 3.0 on 64-bit linux (l64) with gcc
- add `-m32` flag and change `l64` to `l32` for 32-bit
- `q` and `c.o` are installed in `~/q/l64`
- `k.h` is in `~/q/c/`
<A name="toc1-73" title="Implementation Details and Bugs" />
# Implementation Details and Bugs
See [notes.md][notes.md].
[notes.md]: ./notes.md
[demo.q]: ./demo.q
[makefile]: ./makefile
_This documentation was generated from qac/README.txt using [Gitdown](https://github.com/zeromq/gitdown)_
|
jaeheum/qac
|
README.md
|
Markdown
|
apache-2.0
| 2,343
|
-- Add a last_resend_timestamp to the Backlog table
ALTER TABLE friend ADD COLUMN existence INTEGER DEFAULT 0;
|
rogerthat-platform/rogerthat-ios-client
|
MCResources/Assets/db/update_10_to_11.sql
|
SQL
|
apache-2.0
| 113
|
"use strict";
const helper = require("../../../helper.js");
const mw = helper.requireModule('./mw/cors/index');
const assert = require('assert');
describe("Unit test for: mw - cors", function () {
let req = {
"soajs": {
"registry": {
"serviceConfig": {
"cors": {
"enabled": true,
"origin": "*",
"credentials": "true",
"methods": "GET,HEAD,PUT,PATCH,POST,DELETE",
"headers": "key,soajsauth,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type",
"maxage": 1728000
}
}
}
}
};
let res = {
"setHeader": (msg, data) => {
res.header[msg] = data;
},
"header": {},
"end": () => {
}
};
it("Install & Use the MW", function (done) {
let mw_use = mw({});
mw_use(req, res, () => {
assert.ok(true);
done();
});
});
it("Run MW with OPTION as method", function (done) {
req.method = "OPTIONS";
res.end = () => {
done();
};
let mw_use = mw({});
mw_use(req, res, () => {
});
});
});
|
soajs/soajs.controller
|
test/unit/mw/cors/index.js
|
JavaScript
|
apache-2.0
| 1,346
|
<?php
/**
* |Do the most simple game development framework
* |++++++++++++++++++++++++++++++++++++++++++++++++++
* |author mintingjian Date:2015-1-20 Time:下午2:36:37
* |++++++++++++++++++++++++++++++++++++++++++++++++++
* | email:mingtingjian@sina.com
* |++++++++++++++++++++++++++++++++++++++++++++++++++
* |Copyright (c) 2015 EasyGameEngine
* |++++++++++++++++++++++++++++++++++++++++++++++++++
* |Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
* |++++++++++++++++++++++++++++++++++++++++++++++++++
* |Desc:
*/
namespace ConfigReader;
/*
* Ini配置文件解析
*/
class EGIni {
public static function parse($config,$isReturnArray = false){
if(is_file($config)) {
return parse_ini_file($config,$isReturnArray);
}else{
return parse_ini_string($config,$isReturnArray);
}
}
}
|
mingxinkejian/EGEngine
|
ConfigReader/EGIni.php
|
PHP
|
apache-2.0
| 819
|
/*=========================================================================
Program: Bender
Copyright (c) Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.txt
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This file was originally developed by Yuanxin Liu, Kitware Inc.
=========================================================================*/
#ifndef __Armature_h
#define __Armature_h
// ITK includes
#include <itkImage.h>
// VTK includes
class vtkPolyData;
// STD includes
#include <vector>
typedef unsigned char CharType;
typedef unsigned short LabelType;
typedef unsigned int EdgeType;
typedef float WeightImagePixel;
typedef itk::Image<LabelType, 3> LabelImageType;
typedef itk::Image<CharType, 3> CharImageType;
typedef itk::Image<WeightImagePixel, 3> WeightImage;
typedef itk::Index<3> Voxel;
typedef itk::Offset<3> VoxelOffsetType;
typedef itk::ImageRegion<3> RegionType;
//-------------------------------------------------------------------------------
template<unsigned int dimension>
class Neighborhood
{
public:
Neighborhood()
{
for(unsigned int i=0; i<dimension; ++i)
{
int lo = 2*i;
int hi = 2*i+1;
for(unsigned int j=0; j<dimension; ++j)
{
this->Offsets[lo][j] = j==i? -1 : 0;
this->Offsets[hi][j] = j==i? 1 : 0;
}
}
}
itk::Offset<dimension> Offsets[2*dimension];
};
//-------------------------------------------------------------------------------
class ArmatureType
{
public:
// Enums the types of label used
enum LabelTypes
{
BackgroundLabel = 0,
DomainLabel,
EdgeLabels
};
// Typedefs:
// Pixels:
typedef unsigned char CharType;
typedef unsigned short LabelType;
typedef unsigned int EdgeType;
typedef float WeightImagePixel;
// Images:
typedef itk::Image<LabelType, 3> LabelImageType;
typedef itk::Image<CharType, 3> CharImageType;
typedef itk::Image<WeightImagePixel, 3> WeightImage;
// Others:
typedef itk::Index<3> VoxelType;
typedef itk::Offset<3> VoxelOffsetType;
typedef itk::ImageRegion<3> RegionType;
// Constructor
ArmatureType(LabelImageType::Pointer image);
// Label functions:
CharType GetEdgeLabel(EdgeType edgeId) const;
CharType GetMaxEdgeLabel() const;
size_t GetNumberOfEdges() const;
// Set/Get dump debug information
void SetDebug(bool);
bool GetDebug()const;
// Create the body partition from the armature.
// Return success/failure.
bool InitSkeleton(vtkPolyData* armaturePolyData);
// Get body/bones partition.
// Should be called after Init() otherwise this will return empty volumes.
LabelImageType::Pointer GetBodyPartition();
protected:
LabelImageType::Pointer BodyMap; // Reference on the input volume
LabelImageType::Pointer BodyPartition; //the partition of body by armature edges
std::vector<std::vector<Voxel> > SkeletonVoxels;
std::vector<CharImageType::Pointer> Domains;
std::vector<Voxel> Fixed;
std::vector<WeightImage::Pointer> Weights;
bool InitBones();
bool Debug;
};
#endif
|
151706061/bender
|
Modules/CLI/ArmatureBones/Armature.h
|
C
|
apache-2.0
| 3,506
|
<!DOCTYPE html>
<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />
<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />
<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">
<link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">
<meta name="keywords" content="Hexo, NexT" />
<meta property="og:type" content="website">
<meta property="og:title" content="SkyCity">
<meta property="og:url" content="http://zhangzhen.ltd/categories/散文/index.html">
<meta property="og:site_name" content="SkyCity">
<meta property="og:locale" content="zh-Hans">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="SkyCity">
<script type="text/javascript" id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
scheme: 'Muse',
version: '5.1.4',
sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
fancybox: true,
tabs: true,
motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
duoshuo: {
userId: '0',
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
}
};
</script>
<link rel="canonical" href="http://zhangzhen.ltd/categories/散文/"/>
<title>分类: 散文 | SkyCity</title>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container sidebar-position-left ">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-wrapper">
<div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">SkyCity</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<p class="site-subtitle"></p>
</div>
<div class="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br />
首页
</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories/" rel="section">
<i class="menu-item-icon fa fa-fw fa-th"></i> <br />
分类
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
归档
</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags/" rel="section">
<i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
标签
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about/" rel="section">
<i class="menu-item-icon fa fa-fw fa-user"></i> <br />
关于
</a>
</li>
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<div class="post-block category">
<div id="posts" class="posts-collapse">
<div class="collection-title">
<h1>散文<small>分类</small>
</h1>
</div>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h2 class="post-title">
<a class="post-title-link" href="/2018/01/27/一叶万古秋/" itemprop="url">
<span itemprop="name">一叶万古秋</span>
</a>
</h2>
<div class="post-meta">
<time class="post-time" itemprop="dateCreated"
datetime="2018-01-27T12:07:16+08:00"
content="2018-01-27" >
01-27
</time>
</div>
</header>
</article>
</div>
</div>
</div>
<div onclick="showGitment()" id="gitment_title" class="gitment_title">显示 Gitment 评论</div>
<div id="container" style="display:none"></div>
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
const myTheme = {
render(state, instance) {
const container = document.createElement('div');
container.lang = "en-US";
container.className = 'gitment-container gitment-root-container';
container.appendChild(instance.renderHeader(state, instance));
container.appendChild(instance.renderEditor(state, instance));
container.appendChild(instance.renderComments(state, instance));
container.appendChild(instance.renderFooter(state, instance));
return container;
}
}
function showGitment() {
$("#gitment_title").attr("style", "display:none");
$("#container").attr("style", "").addClass("gitment_container");
var gitment = new Gitment({
id: window.location.pathname,
theme: myTheme,
owner: '',
repo: '',
oauth: {
client_id: '072205c7ffe30620e679',
client_secret: 'ecfab5dfe5659a578a3d0da4ad0f6223deca01d7'
}
});
gitment.render('container');
}
</script>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
<section class="site-overview-wrap sidebar-panel sidebar-panel-active">
<div class="site-overview">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<p class="site-author-name" itemprop="name">zhen zhang</p>
<p class="site-description motion-element" itemprop="description"></p>
</div>
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/index.html">
<span class="site-state-item-count">2</span>
<span class="site-state-item-name">分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/index.html">
<span class="site-state-item-count">10</span>
<span class="site-state-item-name">标签</span>
</a>
</div>
</nav>
</div>
</section>
</div>
</aside>
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
<div class="copyright">© <span itemprop="copyrightYear">2018</span>
<span class="with-love">
<i class="fa fa-user"></i>
</span>
<span class="author" itemprop="copyrightHolder">zhen zhang</span>
</div>
<div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>
<span class="post-meta-divider">|</span>
<div class="theme-info">主题 — <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.4</div>
<span class="post-meta-divider">|</span>
<span id="busuanzi_container_site_pv">
本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<span class="post-meta-divider">|</span>
<span id="busuanzi_container_site_uv">
本站访客数<span id="busuanzi_value_site_uv"></span>人次
</span>
</div>
</footer>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
</div>
</div>
<script type="text/javascript">
if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
window.Promise = null;
}
</script>
<script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
<script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
<script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>
<!-- LOCAL: You can save these files to your site and update links -->
<link rel="stylesheet" href="https://aimingoo.github.io/gitmint/style/default.css">
<script src="https://aimingoo.github.io/gitmint/dist/gitmint.browser.js"></script>
<!-- END LOCAL -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
<script>AV.initialize("F73sLcR4yYVnf4o2QaktfLA2-gzGzoHsz", "qaf3S7IlpiFVGpnoDfQ1JU87");</script>
<script>
function showTime(Counter) {
var query = new AV.Query(Counter);
var entries = [];
var $visitors = $(".leancloud_visitors");
$visitors.each(function () {
entries.push( $(this).attr("id").trim() );
});
query.containedIn('url', entries);
query.find()
.done(function (results) {
var COUNT_CONTAINER_REF = '.leancloud-visitors-count';
if (results.length === 0) {
$visitors.find(COUNT_CONTAINER_REF).text(0);
return;
}
for (var i = 0; i < results.length; i++) {
var item = results[i];
var url = item.get('url');
var time = item.get('time');
var element = document.getElementById(url);
$(element).find(COUNT_CONTAINER_REF).text(time);
}
for(var i = 0; i < entries.length; i++) {
var url = entries[i];
var element = document.getElementById(url);
var countSpan = $(element).find(COUNT_CONTAINER_REF);
if( countSpan.text() == '') {
countSpan.text(0);
}
}
})
.fail(function (object, error) {
console.log("Error: " + error.code + " " + error.message);
});
}
function addCount(Counter) {
var $visitors = $(".leancloud_visitors");
var url = $visitors.attr('id').trim();
var title = $visitors.attr('data-flag-title').trim();
var query = new AV.Query(Counter);
query.equalTo("url", url);
query.find({
success: function(results) {
if (results.length > 0) {
var counter = results[0];
counter.fetchWhenSave(true);
counter.increment("time");
counter.save(null, {
success: function(counter) {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(counter.get('time'));
},
error: function(counter, error) {
console.log('Failed to save Visitor num, with error message: ' + error.message);
}
});
} else {
var newcounter = new Counter();
/* Set ACL */
var acl = new AV.ACL();
acl.setPublicReadAccess(true);
acl.setPublicWriteAccess(true);
newcounter.setACL(acl);
/* End Set ACL */
newcounter.set("title", title);
newcounter.set("url", url);
newcounter.set("time", 1);
newcounter.save(null, {
success: function(newcounter) {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(newcounter.get('time'));
},
error: function(newcounter, error) {
console.log('Failed to create');
}
});
}
},
error: function(error) {
console.log('Error:' + error.code + " " + error.message);
}
});
}
$(function() {
var Counter = AV.Object.extend("Counter");
if ($('.leancloud_visitors').length == 1) {
addCount(Counter);
} else if ($('.post-title-link').length > 1) {
showTime(Counter);
}
});
</script>
</body>
</html>
|
learnerzhang/learnerzhang.github.io
|
categories/散文/index.html
|
HTML
|
apache-2.0
| 15,593
|
/*
* Copyright (C) The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.gms.vision.barcodereader.ui.camera;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
import com.google.android.gms.vision.CameraSource;
import java.util.HashSet;
import java.util.Set;
/**
* A view which renders a series of custom graphics to be overlayed on top of an associated preview
* (i.e., the camera preview). The creator can add graphics objects, update the objects, and remove
* them, triggering the appropriate drawing and invalidation within the view.<p>
*
* Supports scaling and mirroring of the graphics relative the camera's preview properties. The
* idea is that detection items are expressed in terms of a preview size, but need to be scaled up
* to the full view size, and also mirrored in the case of the front-facing camera.<p>
*
* Associated {@link Graphic} items should use the following methods to convert to view coordinates
* for the graphics that are drawn:
* <ol>
* <li>{@link Graphic#scaleX(float)} and {@link Graphic#scaleY(float)} adjust the size of the
* supplied value from the preview scale to the view scale.</li>
* <li>{@link Graphic#translateX(float)} and {@link Graphic#translateY(float)} adjust the coordinate
* from the preview's coordinate system to the view coordinate system.</li>
* </ol>
*/
public class GraphicOverlay<T extends GraphicOverlay.Graphic> extends View {
private final Object mLock = new Object();
private int mPreviewWidth;
private float mWidthScaleFactor = 1.0f;
private int mPreviewHeight;
private float mHeightScaleFactor = 1.0f;
private int mFacing = CameraSource.CAMERA_FACING_BACK;
private Set<T> mGraphics = new HashSet<>();
private T mFirstGraphic;
/**
* Base class for a custom graphics object to be rendered within the graphic overlay. Subclass
* this and implement the {@link Graphic#draw(Canvas)} method to define the
* graphics element. Add instances to the overlay using {@link GraphicOverlay#add(Graphic)}.
*/
public static abstract class Graphic {
private GraphicOverlay mOverlay;
public Graphic(GraphicOverlay overlay) {
mOverlay = overlay;
}
/**
* Draw the graphic on the supplied canvas. Drawing should use the following methods to
* convert to view coordinates for the graphics that are drawn:
* <ol>
* <li>{@link Graphic#scaleX(float)} and {@link Graphic#scaleY(float)} adjust the size of
* the supplied value from the preview scale to the view scale.</li>
* <li>{@link Graphic#translateX(float)} and {@link Graphic#translateY(float)} adjust the
* coordinate from the preview's coordinate system to the view coordinate system.</li>
* </ol>
*
* @param canvas drawing canvas
*/
public abstract void draw(Canvas canvas);
/**
* Adjusts a horizontal value of the supplied value from the preview scale to the view
* scale.
*/
public float scaleX(float horizontal) {
return horizontal * mOverlay.mWidthScaleFactor;
}
/**
* Adjusts a vertical value of the supplied value from the preview scale to the view scale.
*/
public float scaleY(float vertical) {
return vertical * mOverlay.mHeightScaleFactor;
}
/**
* Adjusts the x coordinate from the preview's coordinate system to the view coordinate
* system.
*/
public float translateX(float x) {
if (mOverlay.mFacing == CameraSource.CAMERA_FACING_FRONT) {
return mOverlay.getWidth() - scaleX(x);
} else {
return scaleX(x);
}
}
/**
* Adjusts the y coordinate from the preview's coordinate system to the view coordinate
* system.
*/
public float translateY(float y) {
return scaleY(y);
}
public void postInvalidate() {
mOverlay.postInvalidate();
}
}
public GraphicOverlay(Context context, AttributeSet attrs) {
super(context, attrs);
}
/**
* Removes all graphics from the overlay.
*/
public void clear() {
synchronized (mLock) {
mGraphics.clear();
mFirstGraphic = null;
}
postInvalidate();
}
/**
* Adds a graphic to the overlay.
*/
public void add(T graphic) {
synchronized (mLock) {
mGraphics.add(graphic);
if (mFirstGraphic == null) {
mFirstGraphic = graphic;
}
}
postInvalidate();
}
/**
* Removes a graphic from the overlay.
*/
public void remove(T graphic) {
synchronized (mLock) {
mGraphics.remove(graphic);
if (mFirstGraphic != null && mFirstGraphic.equals(graphic)) {
mFirstGraphic = null;
}
}
postInvalidate();
}
/**
* Returns the first (oldest) graphic added. This is used
* to get the barcode that was detected first.
* @return graphic containing the barcode, or null if no barcodes are detected.
*/
public T getFirstGraphic() {
synchronized (mLock) {
return mFirstGraphic;
}
}
/**
* Sets the camera attributes for size and facing direction, which informs how to transform
* image coordinates later.
*/
public void setCameraInfo(int previewWidth, int previewHeight, int facing) {
synchronized (mLock) {
mPreviewWidth = previewWidth;
mPreviewHeight = previewHeight;
mFacing = facing;
}
postInvalidate();
}
/**
* Draws the overlay with its associated graphic objects.
*/
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
synchronized (mLock) {
if ((mPreviewWidth != 0) && (mPreviewHeight != 0)) {
mWidthScaleFactor = (float) canvas.getWidth() / (float) mPreviewWidth;
mHeightScaleFactor = (float) canvas.getHeight() / (float) mPreviewHeight;
}
for (Graphic graphic : mGraphics) {
graphic.draw(canvas);
}
}
}
}
|
msProduction/YeltonA
|
app/src/main/java/com/google/android/gms/vision/barcodereader/ui/camera/GraphicOverlay.java
|
Java
|
apache-2.0
| 7,030
|
/*
* ! ${copyright}
*/
sap.ui.define([
"sap/ui/mdc/field/FieldInfoBase",
"sap/ui/thirdparty/jquery",
"sap/ui/model/BindingMode",
"sap/ui/model/json/JSONModel",
"sap/ui/mdc/link/Log",
"sap/base/Log",
"sap/ui/mdc/link/Panel",
"sap/ui/mdc/link/PanelItem",
"sap/ui/layout/form/SimpleForm",
"sap/ui/core/Title",
"sap/ui/layout/library"
], function(FieldInfoBase,
jQuery,
BindingMode,
JSONModel,
Log,
SapBaseLog,
Panel,
PanelItem,
SimpleForm,
CoreTitle,
layoutLibrary) {
"use strict";
// shortcut for sap.ui.layout.form.SimpleFormLayout.ResponsiveGridLayout
var ResponsiveGridLayout = layoutLibrary.form.SimpleFormLayout.ResponsiveGridLayout;
/**
* Constructor for the new <code>Link</code>
*
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
* @param {object} [mSettings] Initial settings for the new control
*
* @class
* A <code>Link</code> control can be used to handle navigation scenarios with one or more targets through direct navigation or by opening a <code>Panel</code>.<br>
* It can also be used to display additional content, such as <code>ContactDetails</code> on the <code>Panel</code>.
* <b>Note:</b> Navigation targets are determined by the implementation of a {@link sap.ui.mdc.LinkDelegate}.
*
* @extends sap.ui.mdc.field.FieldInfoBase
*
* @author SAP SE
* @version ${version}
*
* @constructor
* @alias sap.ui.mdc.Link
* @since 1.74
*
* @experimental As of version 1.74
* @private
* @ui5-restricted sap.fe
* @MDC_PUBLIC_CANDIDATE
*/
var Link = FieldInfoBase.extend("sap.ui.mdc.Link", /** @lends sap.ui.mdc.Link.prototype */ {
metadata: {
library: "sap.ui.mdc",
properties: {
/**
* Enables/disables the personalization settings for users and key users.
*/
enablePersonalization: {
type: "boolean",
defaultValue: true
},
/**
* Path to <code>LinkDelegate</code> module that provides the required APIs to create content for the <code>Link</code> control.<br>
* <b>Note:</b> Ensure that the related file can be requested (any required library has to be loaded before that).<br>
* Do not bind or modify the module. Once the required module is associated, this property might not be needed any longer.
*
* @experimental
*/
delegate: {
type: "object",
defaultValue: { name: "sap/ui/mdc/LinkDelegate", payload: {} }
}
},
associations: {
/**
* Gets the app component required for link personalization. Also, the source control is used to get the binding context.
*/
sourceControl: {
type: "sap.ui.core.Control",
multiple: false
}
}
}
});
Link.prototype.applySettings = function() {
FieldInfoBase.prototype.applySettings.apply(this, arguments);
this.initControlDelegate();
};
Link.prototype.init = function() {
var oModel = new JSONModel({
contentTitle: undefined,
linkItems: []
});
oModel.setDefaultBindingMode(BindingMode.TwoWay);
oModel.setSizeLimit(1000);
this.setModel(oModel, "$sapuimdcLink");
this.attachEvent("modelContextChange", this.fireDataUpdate, this);
this._bLinkItemsFetched = false;
this._aLinkItems = [];
this._oLinkType = null;
FieldInfoBase.prototype.init.apply(this, arguments);
};
// ----------------------- Implementation of 'FieldInfoBase' interface --------------------------------------------
/**
* Checks if <code>FieldInfo</code> is clickable and therefore rendered as a <code>Link</code> control.
* @returns {Promise} <code>true</code> if <code>FieldInfo</code> is clickable
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.prototype.isTriggerable = function() {
return this.retrieveLinkType().then(function(oLinkTypeObject) {
var oRuntimeLinkTypePromise = oLinkTypeObject.runtimeType;
var oInitialLinkType = oLinkTypeObject.initialType ? oLinkTypeObject.initialType : oLinkTypeObject;
if (oRuntimeLinkTypePromise && oRuntimeLinkTypePromise instanceof Promise) {
oRuntimeLinkTypePromise.then(function(oRuntimeLinkType) {
if (!this._oLinkType || oRuntimeLinkType.linkType !== this._oLinkType.linkType) {
this._oLinkType = oRuntimeLinkType;
this.fireDataUpdate();
}
}.bind(this));
}
return this._oLinkType ? this._oLinkType.type > 0 : oInitialLinkType.type > 0;
}.bind(this));
};
/**
* Returns an <code>href</code> of direct link navigation, once the <code>Promise</code> has been resolved.
* @returns {Promise} <code>href</code> of direct link navigation, else <code>null</code>
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.prototype.getTriggerHref = function() {
return this.getDirectLinkHrefAndTarget().then(function(oLinkItem) {
return oLinkItem ? oLinkItem.href : null;
});
};
/**
* Returns an object containing <code>href</code> and <code>target</code> of the direct navigation.
* Returns <code>null</code> if there is no direct link.
* @returns {Promise} {Object | null}
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.prototype.getDirectLinkHrefAndTarget = function() {
return this._retrieveDirectLinkItem().then(function(oDirectLinkItem) {
this.addDependent(oDirectLinkItem);
return oDirectLinkItem ? {
target: oDirectLinkItem.getTarget(),
href: oDirectLinkItem.getHref()
} : null;
}.bind(this));
};
/**
* @returns {Promise} Returns <code>null</code> or a {@link sap.ui.mdc.link.LinkItem}, once resolved
* @private
*/
Link.prototype._retrieveDirectLinkItem = function() {
return this.retrieveLinkType().then(function(oLinkTypeObject) {
if (this._linkTypeHasDirectLink(this._oLinkType)) {
return this._oLinkType.directLink;
}
var oLinkType = oLinkTypeObject.initialType ? oLinkTypeObject.initialType : oLinkTypeObject;
if (this._linkTypeHasDirectLink(oLinkType)) {
return oLinkType.directLink;
}
return null;
}.bind(this));
};
/**
* Checks if a given {@link sap.ui.mdc.LinkDelegate.LinkType} contains a directLink value.
* @param {sap.ui.mdc.LinkDelegate.LinkType} oLinkType the <code>LinkType</code> which should be checked
* @returns {boolean} bHasDirectLink
* @private
*/
Link.prototype._linkTypeHasDirectLink = function(oLinkType) {
return oLinkType && oLinkType.type === 1 && oLinkType.directLink;
};
/**
* Function that is called in the <code>createPopover</code> function of {@link sap.ui.mdc.field.FieldInfoBase}.
* @param {Function} [fnGetAutoClosedControl] Function returning the <code>Popover</code> control that is created in <code>createPopover</code>
* @returns {sap.ui.mdc.link.Panel} Popover panel which is to be displayed after clicking the link
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.prototype.getContent = function(fnGetAutoClosedControl) {
var oLinkItemsPromise = this.retrieveLinkItems();
var oAdditionalContentPromise = this.retrieveAdditionalContent();
return Promise.all([oLinkItemsPromise, oAdditionalContentPromise]).then(function(values) {
var aLinkItems = values[0];
var aAdditionalContent = values[1];
return new Promise(function(resolve) {
sap.ui.require([
'sap/ui/fl/Utils',
'sap/ui/fl/apply/api/FlexRuntimeInfoAPI'
], function(Utils, FlexRuntimeInfoAPI) {
this._setConvertedLinkItems(aLinkItems);
var aMLinkItems = this._getInternalModel().getProperty("/linkItems");
var aMBaselineLinkItems = this._getInternalModel().getProperty("/baselineLinkItems");
var oPanelAdditionalContent = !aAdditionalContent.length && !aMLinkItems.length ? this._getNoContent() : aAdditionalContent;
var oPanel = new Panel(this._createPanelId(Utils, FlexRuntimeInfoAPI), {
enablePersonalization: this.getEnablePersonalization(), // brake the binding chain
items: aMBaselineLinkItems.map(function(oMLinkItem) {
return new PanelItem(oMLinkItem.key, {
text: oMLinkItem.text,
description: oMLinkItem.description,
href: oMLinkItem.href,
target: oMLinkItem.target,
icon: oMLinkItem.icon,
visible: true
});
}),
additionalContent: oPanelAdditionalContent,
beforeSelectionDialogOpen: function() {
if (fnGetAutoClosedControl && fnGetAutoClosedControl()) {
fnGetAutoClosedControl().setModal(true);
}
},
afterSelectionDialogClose: function() {
if (fnGetAutoClosedControl && fnGetAutoClosedControl()) {
fnGetAutoClosedControl().setModal(false);
}
},
beforeNavigationCallback: this._beforeNavigationCallback.bind(this),
metadataHelperPath: "sap/ui/mdc/Link"
});
oPanel.setModel(new JSONModel({
metadata: jQuery.extend(true, [], this._getInternalModel().getProperty("/linkItems")),
baseline: jQuery.extend(true, [], this._getInternalModel().getProperty("/baselineLinkItems"))
}), "$sapuimdcLink");
return resolve(oPanel);
}.bind(this));
}.bind(this));
}.bind(this));
};
Link.prototype.checkDirectNavigation = function() {
var oLinkItemsPromise = this.retrieveLinkItems();
var oAdditionalContentPromise = this.retrieveAdditionalContent();
return Promise.all([oLinkItemsPromise, oAdditionalContentPromise]).then(function(values) {
var aLinkItems = values[0];
var aAdditionalContent = values[1];
this._setConvertedLinkItems(aLinkItems);
var aMLinkItems = this._getInternalModel().getProperty("/linkItems");
if (aMLinkItems.length === 1 && !aAdditionalContent.length) {
Panel.navigate(aMLinkItems[0].href);
return Promise.resolve(true);
}
return Promise.resolve(false);
}.bind(this));
};
/**
* @private
* @param {sap.ui.mdc.link.LinkItem[]} aLinkItems The given <code>LinkItem</code> objects
*/
Link.prototype._setConvertedLinkItems = function(aLinkItems) {
var oModel = this._getInternalModel();
var aMLinkItems = aLinkItems.map(function(oLinkItem) {
if (!oLinkItem.getKey()) {
SapBaseLog.error("sap.ui.mdc.Link: undefined 'key' property of the LinkItem " + oLinkItem.getId() + ". The mandatory 'key' property should be defined due to personalization reasons.");
}
return {
key: oLinkItem.getKey(),
text: oLinkItem.getText(),
description: oLinkItem.getDescription(),
href: oLinkItem.getHref(),
target: oLinkItem.getTarget(),
icon: oLinkItem.getIcon(),
initiallyVisible: oLinkItem.getInitiallyVisible(),
visible: false
};
});
oModel.setProperty("/linkItems/", aMLinkItems);
var aMBaselineLinkItems = aMLinkItems.filter(function(oMLinkItem) {
return oMLinkItem.initiallyVisible;
});
oModel.setProperty("/baselineLinkItems/", aMBaselineLinkItems);
};
/**
* @private
* @returns {sap.ui.layout.form.SimpleForm} Form containing a title which notices the user that there is no content for this link
*/
Link.prototype._getNoContent = function() {
var oSimpleForm = new SimpleForm({
layout: ResponsiveGridLayout,
content: [
new CoreTitle({
text: sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc").getText("info.POPOVER_MSG_NO_CONTENT")
})
]
});
oSimpleForm.addStyleClass("mdcbaseinfoPanelDefaultAdditionalContent");
return oSimpleForm;
};
/**
* Generates an ID for the panel of the <code>Link</code> control. The result depends on whether the <code>Link</code> control supports flexibility.
* @private
* @param {sap.ui.fl.Utils} Utils Flexibility utility class
* @param {sap.ui.fl.apply.api.FlexRuntimeInfoAPI} FlexRuntimeInfoAPI Flexibility runtime info API
* @returns {string} Generated ID of the panel
*/
Link.prototype._createPanelId = function(Utils, FlexRuntimeInfoAPI) {
var oField;
if (this.getParent()) {
oField = this.getParent();
}
var oControl = typeof this.getSourceControl() === "string" ? sap.ui.getCore().byId(this.getSourceControl()) : this.getSourceControl();
if (!oControl) {
//SapBaseLog.error("Invalid source control: " + this.getSourceControl() + ". The mandatory 'sourceControl' association should be defined due to personalization reasons, parent: " + oField + " used instead.");
this.setSourceControl(oField);
oControl = oField;
}
if (!FlexRuntimeInfoAPI.isFlexSupported({ element: this }) || !FlexRuntimeInfoAPI.isFlexSupported({ element: oControl })) {
SapBaseLog.error("Invalid component. The mandatory 'sourceControl' association should be assigned to the app component due to personalization reasons.");
return this.getId() + "-idInfoPanel";
}
var oAppComponent = Utils.getAppComponentForControl(oControl) || Utils.getAppComponentForControl(oField);
return oAppComponent.createId("idInfoPanel");
};
// ------------------------------ sap/ui/mdc/link/Panel relevant methods ---------------------------------------
/**
* Retrieves the relevant metadata for the panel and returns a property info array.
* @param {sap.ui.mdc.link.Panel} oPanel Instance of a <code>Panel</code> control
* @returns {object[]} Array of copied property info
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.retrieveAllMetadata = function(oPanel) {
if (!oPanel.getModel || !oPanel.getModel("$sapuimdcLink")) {
return [];
}
var oModel = oPanel.getModel("$sapuimdcLink");
return oModel.getProperty("/metadata").map(function(oMLinkItem) {
return {
id: oMLinkItem.key,
text: oMLinkItem.text,
description: oMLinkItem.description,
href: oMLinkItem.href,
target: oMLinkItem.target,
visible: oMLinkItem.visible
};
});
};
/**
* Retrieves the items that are initially part of the baseline which is used when a reset is done.
* @param {sap.ui.mdc.link.Panel} oPanel Instance of a <code>Panel</code> control
* @returns {object[]} Array of copied property info
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.retrieveBaseline = function(oPanel) {
if (!oPanel.getModel || !oPanel.getModel("$sapuimdcLink")) {
return [];
}
var oModel = oPanel.getModel("$sapuimdcLink");
return oModel.getProperty("/baseline").map(function(oMLinkItem) {
return {
id: oMLinkItem.key,
visible: true
};
});
};
// ----------------------- sap/ui/mdc/flp/FlpLinkDelegate relevant methods -------------------------------------
/**
* Generates a new <code>sap.bas.log</code> if the payload contains semantic objects (this log is required for <code>sap.ui.mdc.flp.FlpLinkDelegate</code>).
* @private
* @returns {sap.base.Log | undefined} A generated <code>InfoLog</code> for the control | undefined
*/
Link.prototype._getInfoLog = function() {
if (this.getPayload() && this.getPayload().semanticObjects) {
if (this._oInfoLog) {
return this._oInfoLog;
}
if (SapBaseLog.getLevel() >= SapBaseLog.Level.INFO) {
this._oInfoLog = new Log();
this._oInfoLog.initialize(this.getPayload().semanticObjects, this._getContextObject(this._getControlBindingContext()));
return this._oInfoLog;
}
}
return undefined;
};
/**
* Returns the object of a given binding context.
* @private
* @param {Object} oBindingContext The given binding context
* @returns {Object | undefined} Object of the binding context
*/
Link.prototype._getContextObject = function(oBindingContext) {
return oBindingContext ? oBindingContext.getObject(oBindingContext.getPath()) : undefined;
};
// ----------------------- sap/ui/mdc/LinkDelegate function calls ----------------------------------------------
/**
* @returns {Promise<sap.ui.core.Control[]>} Resolves an array of type {@link sap.ui.core.Control}
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.prototype.retrieveAdditionalContent = function() {
if (this.awaitControlDelegate()) {
return this.awaitControlDelegate().then(function() {
var oPayload = Object.assign({}, this.getPayload());
return this.getControlDelegate().fetchAdditionalContent(oPayload, this).then(function(aAdditionalContent) {
return aAdditionalContent;
});
}.bind(this));
}
SapBaseLog.error("mdc.Link retrieveAdditionalContent: control delegate is not set - could not load AdditionalContent from delegate.");
return Promise.resolve([]);
};
/**
* @returns {Promise} Returns a {@link sap.ui.mdc.LinkDelegate.LinkType}, once resolved
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.prototype.retrieveLinkType = function() {
if (this.awaitControlDelegate()) {
return this.awaitControlDelegate().then(function() {
var oPayload = Object.assign({}, this.getPayload());
return this.getControlDelegate().fetchLinkType(oPayload, this);
}.bind(this));
}
SapBaseLog.error("mdc.Link retrieveLinkType: control delegate is not set - could not load LinkType from delegate.");
return Promise.resolve(null);
};
/**
* Calls the <code>modifyLinkItems</code> function of <code>Delegate</code> before returning the <code>LinkItem</code> objects.
* @returns {Promise} Resolves an array of type {@link sap.ui.mdc.link.LinkItem}
* @protected
* @ui5-restricted sap.ui.mdc
* @MDC_PUBLIC_CANDIDATE
*/
Link.prototype.retrieveLinkItems = function() {
var oPayload = Object.assign({}, this.getPayload());
var oBindingContext = this._getControlBindingContext();
return this._retrieveUnmodifiedLinkItems().then(function(aUnmodifiedLinkItems) {
return this.getControlDelegate().modifyLinkItems(oPayload, oBindingContext, aUnmodifiedLinkItems).then(function(aLinkItems) {
return aLinkItems;
});
}.bind(this));
};
/**
* @private
* @returns {Promise} Resolves an array of type {@link sap.ui.mdc.link.LinkItem}
*/
Link.prototype._retrieveUnmodifiedLinkItems = function() {
if (this._bLinkItemsFetched) {
return Promise.resolve(this._aLinkItems);
} else {
this.oUseDelegateItemsPromise = this._useDelegateItems();
return this.oUseDelegateItemsPromise.then(function() {
return Promise.resolve(this._aLinkItems);
}.bind(this));
}
};
/**
* Determines the <code>LinkItem</code> objects depending on the given <code>LinkDelegate</code>.
* @private
* @returns {Promise} Resolves once the <code>LinkItem</code> objects have been retrieved by the delegate. This also sets this._aLinkItems.
*/
Link.prototype._useDelegateItems = function() {
if (this.awaitControlDelegate()) {
return this.awaitControlDelegate().then(function() {
// Assign new Object so payload.id won't get set for the whole Link class
var oPayload = Object.assign({}, this.getPayload());
var oBindingContext = this._getControlBindingContext();
var oInfoLog = this._getInfoLog();
return new Promise(function(resolve) {
this.getControlDelegate().fetchLinkItems(oPayload, oBindingContext, oInfoLog).then(function(aLinkItems) {
this._setLinkItems(aLinkItems === null ? [] : aLinkItems);
this._bLinkItemsFetched = aLinkItems !== null;
resolve();
}.bind(this));
}.bind(this));
}.bind(this));
}
SapBaseLog.error("mdc.Link _useDelegateItems: control delegate is not set - could not load LinkItems from delegate.");
return Promise.resolve();
};
/**
* @private
* @param {sap.ui.mdc.link.LinkItem[]} aLinkItems The given <code>LinkItem</code> objects
*/
Link.prototype._setLinkItems = function(aLinkItems) {
var aLinkItemsMissingParent = aLinkItems.filter(function(oLinkItem) {
return oLinkItem.getParent() === null;
});
aLinkItemsMissingParent.forEach(function(oLinkItem) {
this.addDependent(oLinkItem);
}.bind(this));
this._aLinkItems = aLinkItems;
};
/**
* Proxy function for the <code>beforeNavigationCallback</code> of the panel.
* @private
* @param {Object} oEvent Object of the event that gets fired by the <code>onPress</code> event of the link on the panel / selection dialog
* @returns {Promise} Returns a Boolean value determining whether navigation takes place , once resolved
*/
Link.prototype._beforeNavigationCallback = function(oEvent) {
if (this.awaitControlDelegate()) {
var oPayload = Object.assign({}, this.getPayload());
return this.getControlDelegate().beforeNavigationCallback(oPayload, oEvent);
}
SapBaseLog.error("mdc.Link _beforeNavigationCallback: control delegate is not set - could not load beforeNavigationCallback from delegate.");
return Promise.resolve();
};
// ------------------------------------- General internal methods ----------------------------------------------
/**
* Returns the binding context of the source control or of the link itself.
* @private
* @returns {Object} The binding context of the SourceControl / link
*/
Link.prototype._getControlBindingContext = function() {
var oControl = typeof this.getSourceControl() === "string" ? sap.ui.getCore().byId(this.getSourceControl()) : this.getSourceControl();
return oControl && oControl.getBindingContext() || this.getBindingContext();
};
/**
* @private
* @returns {sap.ui.model.json.JSONModel} Internal model of the link
*/
Link.prototype._getInternalModel = function() {
return this.getModel("$sapuimdcLink");
};
return Link;
});
|
SAP/openui5
|
src/sap.ui.mdc/src/sap/ui/mdc/Link.js
|
JavaScript
|
apache-2.0
| 21,194
|
package cn.felord.wepay.ali.sdk.api.request;
import java.util.Map;
import cn.felord.wepay.ali.sdk.api.AlipayRequest;
import cn.felord.wepay.ali.sdk.api.internal.util.AlipayHashMap;
import cn.felord.wepay.ali.sdk.api.response.AlipayTrustUserReportGetResponse;
import cn.felord.wepay.ali.sdk.api.AlipayObject;
/**
* ALIPAY API: alipay.trust.user.report.get request
*
* @author auto create
* @version $Id: $Id
*/
public class AlipayTrustUserReportGetRequest implements AlipayRequest<AlipayTrustUserReportGetResponse> {
private AlipayHashMap udfParams; // add user-defined text parameters
private String apiVersion="1.0";
/**
* 指定该接口在商户端的使用场景。具体枚举值在样例代码中给出
*/
private String scene;
/**
* FN_S(金融简版)
*/
private String type;
/**
* <p>Setter for the field <code>scene</code>.</p>
*
* @param scene a {@link java.lang.String} object.
*/
public void setScene(String scene) {
this.scene = scene;
}
/**
* <p>Getter for the field <code>scene</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getScene() {
return this.scene;
}
/**
* <p>Setter for the field <code>type</code>.</p>
*
* @param type a {@link java.lang.String} object.
*/
public void setType(String type) {
this.type = type;
}
/**
* <p>Getter for the field <code>type</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getType() {
return this.type;
}
private String terminalType;
private String terminalInfo;
private String prodCode;
private String notifyUrl;
private String returnUrl;
private boolean needEncrypt=false;
private AlipayObject bizModel=null;
/**
* <p>Getter for the field <code>notifyUrl</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getNotifyUrl() {
return this.notifyUrl;
}
/** {@inheritDoc} */
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
/**
* <p>Getter for the field <code>returnUrl</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getReturnUrl() {
return this.returnUrl;
}
/** {@inheritDoc} */
public void setReturnUrl(String returnUrl) {
this.returnUrl = returnUrl;
}
/**
* <p>Getter for the field <code>apiVersion</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getApiVersion() {
return this.apiVersion;
}
/** {@inheritDoc} */
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
/** {@inheritDoc} */
public void setTerminalType(String terminalType){
this.terminalType=terminalType;
}
/**
* <p>Getter for the field <code>terminalType</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getTerminalType(){
return this.terminalType;
}
/** {@inheritDoc} */
public void setTerminalInfo(String terminalInfo){
this.terminalInfo=terminalInfo;
}
/**
* <p>Getter for the field <code>terminalInfo</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getTerminalInfo(){
return this.terminalInfo;
}
/** {@inheritDoc} */
public void setProdCode(String prodCode) {
this.prodCode=prodCode;
}
/**
* <p>Getter for the field <code>prodCode</code>.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getProdCode() {
return this.prodCode;
}
/**
* <p>getApiMethodName.</p>
*
* @return a {@link java.lang.String} object.
*/
public String getApiMethodName() {
return "alipay.trust.user.report.get";
}
/**
* <p>getTextParams.</p>
*
* @return a {@link java.util.Map} object.
*/
public Map<String, String> getTextParams() {
AlipayHashMap txtParams = new AlipayHashMap();
txtParams.put("scene", this.scene);
txtParams.put("type", this.type);
if(udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
/**
* <p>putOtherTextParam.</p>
*
* @param key a {@link java.lang.String} object.
* @param value a {@link java.lang.String} object.
*/
public void putOtherTextParam(String key, String value) {
if(this.udfParams == null) {
this.udfParams = new AlipayHashMap();
}
this.udfParams.put(key, value);
}
/**
* <p>getResponseClass.</p>
*
* @return a {@link java.lang.Class} object.
*/
public Class<AlipayTrustUserReportGetResponse> getResponseClass() {
return AlipayTrustUserReportGetResponse.class;
}
/**
* <p>isNeedEncrypt.</p>
*
* @return a boolean.
*/
public boolean isNeedEncrypt() {
return this.needEncrypt;
}
/** {@inheritDoc} */
public void setNeedEncrypt(boolean needEncrypt) {
this.needEncrypt=needEncrypt;
}
/**
* <p>Getter for the field <code>bizModel</code>.</p>
*
* @return a {@link cn.felord.wepay.ali.sdk.api.AlipayObject} object.
*/
public AlipayObject getBizModel() {
return this.bizModel;
}
/** {@inheritDoc} */
public void setBizModel(AlipayObject bizModel) {
this.bizModel=bizModel;
}
}
|
NotFound403/WePay
|
src/main/java/cn/felord/wepay/ali/sdk/api/request/AlipayTrustUserReportGetRequest.java
|
Java
|
apache-2.0
| 5,192
|
/*
* Copyright (c) 2016. Papyrus Electronics, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.taptrack.tcmptappy2.commandfamilies.basicnfc.commands;
/**
* Inform the Tappy to scan for tags. If the Tappy detects a tag, it will
* stop scanning.
*
* A timeout of zero corresponds to indefinite scanning.
*/
public class ScanTagCommand extends AbstractPollingCommand {
public static final byte COMMAND_CODE = (byte)0x02;
public ScanTagCommand() {
super();
}
public ScanTagCommand(byte timeout, byte pollingMode) {
super(timeout, pollingMode);
}
@Override
public byte getCommandCode() {
return COMMAND_CODE;
}
}
|
TapTrack/BasicNfc-Command-Family
|
commandfamily-basicnfc/src/main/java/com/taptrack/tcmptappy2/commandfamilies/basicnfc/commands/ScanTagCommand.java
|
Java
|
apache-2.0
| 1,207
|
// Copyright 2020 Anapaya Systems
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package grpc_test
import (
"context"
"net"
"testing"
"time"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/scionproto/scion/go/cs/beaconing"
"github.com/scionproto/scion/go/cs/beaconing/mock_beaconing"
"github.com/scionproto/scion/go/lib/ctrl/seg"
"github.com/scionproto/scion/go/lib/slayers/path"
"github.com/scionproto/scion/go/lib/xtest"
"github.com/scionproto/scion/go/lib/xtest/graph"
"github.com/scionproto/scion/go/pkg/hiddenpath"
hpgrpc "github.com/scionproto/scion/go/pkg/hiddenpath/grpc"
"github.com/scionproto/scion/go/pkg/hiddenpath/grpc/mock_grpc"
cryptopb "github.com/scionproto/scion/go/pkg/proto/crypto"
"github.com/scionproto/scion/go/pkg/proto/hidden_segment"
hspb "github.com/scionproto/scion/go/pkg/proto/hidden_segment"
"github.com/scionproto/scion/go/pkg/proto/hidden_segment/mock_hidden_segment"
)
func TestRegistererRegisterSegment(t *testing.T) {
testCases := map[string]struct {
input hiddenpath.SegmentRegistration
hpServer func(*gomock.Controller) hidden_segment.HiddenSegmentRegistrationServiceServer
signer func(ctrl *gomock.Controller) hpgrpc.Signer
regular func(*gomock.Controller) beaconing.RPC
assertErr assert.ErrorAssertionFunc
}{
"valid hidden": {
hpServer: func(c *gomock.Controller) hspb.HiddenSegmentRegistrationServiceServer {
s := mock_hidden_segment.NewMockHiddenSegmentRegistrationServiceServer(c)
s.EXPECT().HiddenSegmentRegistration(gomock.Any(), gomock.Any()).
Return(&hidden_segment.HiddenSegmentRegistrationResponse{}, nil)
return s
},
signer: func(ctrl *gomock.Controller) hpgrpc.Signer {
signer := mock_grpc.NewMockSigner(ctrl)
signer.EXPECT().Sign(gomock.Any(), gomock.Any(), gomock.Any()).
Return(&cryptopb.SignedMessage{}, nil)
return signer
},
regular: func(ctrl *gomock.Controller) beaconing.RPC {
r := mock_beaconing.NewMockRPC(ctrl)
r.EXPECT().RegisterSegment(gomock.Any(), gomock.Any(), gomock.Any()).Times(0)
return r
},
input: hiddenpath.SegmentRegistration{
GroupID: hiddenpath.GroupID{Suffix: 42},
Seg: createSeg(),
},
assertErr: assert.NoError,
},
"valid public": {
hpServer: func(c *gomock.Controller) hspb.HiddenSegmentRegistrationServiceServer {
s := mock_hidden_segment.NewMockHiddenSegmentRegistrationServiceServer(c)
s.EXPECT().HiddenSegmentRegistration(gomock.Any(), gomock.Any()).
Return(&hidden_segment.HiddenSegmentRegistrationResponse{}, nil).Times(0)
return s
},
signer: func(ctrl *gomock.Controller) hpgrpc.Signer {
return mock_grpc.NewMockSigner(ctrl)
},
regular: func(ctrl *gomock.Controller) beaconing.RPC {
r := mock_beaconing.NewMockRPC(ctrl)
r.EXPECT().RegisterSegment(gomock.Any(), gomock.Any(), gomock.Any()).Times(1)
return r
},
input: hiddenpath.SegmentRegistration{
Seg: createSeg(),
},
assertErr: assert.NoError,
},
}
for name, tc := range testCases {
name, tc := name, tc
t.Run(name, func(t *testing.T) {
t.Parallel()
ctrl := gomock.NewController(t)
defer ctrl.Finish()
svc := xtest.NewGRPCService()
hspb.RegisterHiddenSegmentRegistrationServiceServer(svc.Server(), tc.hpServer(ctrl))
svc.Start(t)
s := hpgrpc.Registerer{
Dialer: svc,
RegularRegistration: tc.regular(ctrl),
Signer: tc.signer(ctrl),
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
err := s.RegisterSegment(ctx, tc.input, &net.UDPAddr{})
tc.assertErr(t, err)
})
}
}
func createSeg() seg.Meta {
asEntry := seg.ASEntry{
Local: xtest.MustParseIA("1-ff00:0:110"),
HopEntry: seg.HopEntry{
HopField: seg.HopField{MAC: [path.MacLen]byte{0x11, 0x11, 0x11, 0x11, 0x11, 0x11}},
},
}
ps, _ := seg.CreateSegment(time.Now(), 1337)
ps.AddASEntry(context.Background(), asEntry, graph.NewSigner())
return seg.Meta{Type: seg.TypeDown, Segment: ps}
}
|
netsec-ethz/scion
|
go/pkg/hiddenpath/grpc/registerer_test.go
|
GO
|
apache-2.0
| 4,558
|
import {createActions} from 'redux-actions';
export default createActions({
LOAD_FORM_DATA: () => ({}),
MERGE_DISPLAY: display => ({display}),
RESET_DATA: () => ({}),
SET_FORM_DATA: csv => ({csv}),
});
|
gamerson/liferay-blade-samples
|
yarn-workspace/modules/redux-store/src/actions.js
|
JavaScript
|
apache-2.0
| 207
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Wed Jun 11 12:07:03 IDT 2014 -->
<title>com.gigya.socialize.android.event</title>
<meta name="date" content="2014-06-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="com.gigya.socialize.android.event";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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 class="navBarCell1Rev">Package</li>
<li>Class</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><a href="../../../../../com/gigya/socialize/android/package-summary.html">Prev Package</a></li>
<li>Next Package</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/gigya/socialize/android/event/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package com.gigya.socialize.android.event</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSAccountsEventListener.html" title="interface in com.gigya.socialize.android.event">GSAccountsEventListener</a></td>
<td class="colLast">
<div class="block">Listener for handling Accounts namespace events.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSConnectUIListener.html" title="interface in com.gigya.socialize.android.event">GSConnectUIListener</a></td>
<td class="colLast">
<div class="block">Listener for events generated by GSAPI.showAddConnectionsUI</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSDialogListener.html" title="interface in com.gigya.socialize.android.event">GSDialogListener</a></td>
<td class="colLast">
<div class="block">Listener for the dismissal of a plugin dialog, displayed by GSAPI.showPluginDialog</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSEventListener.html" title="interface in com.gigya.socialize.android.event">GSEventListener</a></td>
<td class="colLast">Deprecated
<div class="block"><i>use <a href="../../../../../com/gigya/socialize/android/event/GSSocializeEventListener.html" title="interface in com.gigya.socialize.android.event"><code>GSSocializeEventListener</code></a> instead.</i></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSLoginUIListener.html" title="interface in com.gigya.socialize.android.event">GSLoginUIListener</a></td>
<td class="colLast">
<div class="block">Listener for events generated by GSAPI.showLoginUI</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSPluginListener.html" title="interface in com.gigya.socialize.android.event">GSPluginListener</a></td>
<td class="colLast">
<div class="block">A listener interface for receiving Gigya plugin events.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSSocializeEventListener.html" title="interface in com.gigya.socialize.android.event">GSSocializeEventListener</a></td>
<td class="colLast">
<div class="block">Listener for handling Socialize namespace events.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSUIListener.html" title="interface in com.gigya.socialize.android.event">GSUIListener</a></td>
<td class="colLast">
<div class="block">Listener for events generated by GSAPI.showLoginUI and GSAPI.showAddConnectionsUI</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../com/gigya/socialize/android/event/GSWebBridgeListener.html" title="class in com.gigya.socialize.android.event">GSWebBridgeListener</a></td>
<td class="colLast">
<div class="block">A listener interface for receiving GSWebBridge events.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</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><a href="../../../../../com/gigya/socialize/android/package-summary.html">Prev Package</a></li>
<li>Next Package</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/gigya/socialize/android/event/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|
ScoreBig/XamarinBindings
|
GigyaSDK.Android/GigyaSDK.Android.Binding/gigya-sdk-javadoc/com/gigya/socialize/android/event/package-summary.html
|
HTML
|
apache-2.0
| 7,952
|
/**
* Copyright 2014 Fernando Rincon Martin <frm.rincon@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.abstractform.sampleapp;
import java.lang.reflect.UndeclaredThrowableException;
import java.util.Date;
import org.abstractform.binding.BForm;
import org.abstractform.binding.BFormInstance;
import org.abstractform.binding.BFormService;
import org.abstractform.binding.BFormToolkit;
import org.abstractform.test.common.beans.BusinessPartner;
import org.abstractform.test.common.beans.BusinessPartnerLocation;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Component;
import com.vaadin.ui.Window;
public class SampleApplication extends Application {
private static final long serialVersionUID = 7522813594722111623L;
@Override
public void init() {
try {
Window main = new Window("Test window");
setMainWindow(main);
BFormToolkit<Component> toolkit = BFormService.getInstance().getFormToolkit(Component.class);
BForm<BusinessPartner> form = new SampleForm();
final BFormInstance<BusinessPartner, Component> formInstance = toolkit.buildForm(form);
main.addComponent(formInstance.getImplementation());
final BusinessPartner bean1 = new BusinessPartner();
bean1.setAbc("A");
bean1.setOrganization(SampleForm.ORG4);
bean1.setActive(true);
bean1.setCifCode("B55425451");
bean1.setClient(true);
bean1.setName("Sample Name");
bean1.setMail("mail@nomail.org");
bean1.setCreated(new Date());
bean1.setCreatedBy("User 1");
bean1.setUpdated(new Date());
bean1.setUpdatedBy("User 2");
BusinessPartnerLocation loc = new BusinessPartnerLocation();
loc.setAddress1("Adress One of Bean One");
loc.setZipCode("78734");
bean1.getBusinessPartnerLocationSet().add(loc);
final BusinessPartner bean2 = new BusinessPartner();
bean2.setAbc("B");
bean2.setOrganization(null);
bean2.setActive(false);
bean2.setCifCode("OTRO");
bean2.setClient(false);
bean2.setName("Otro nombre");
bean2.setMail(null);
bean2.setCreated(new Date());
bean2.setCreatedBy("Administrator 2");
bean2.setUpdated(new Date());
bean2.setUpdatedBy("Administrator 1");
formInstance.setValue(bean1);
Button but1 = new Button("Change bean", new Button.ClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void buttonClick(ClickEvent event) {
if (formInstance.getValue() == bean1) {
formInstance.setValue(bean2);
} else {
formInstance.setValue(bean1);
}
}
});
main.addComponent(but1);
but1 = new Button("Update Model", new Button.ClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void buttonClick(ClickEvent event) {
formInstance.updateModel();
}
});
main.addComponent(but1);
} catch (Exception ex) {
throw new UndeclaredThrowableException(ex);
}
}
}
|
frincon/abstractform
|
org.abstractform.sampleapp/src/main/java/org/abstractform/sampleapp/SampleApplication.java
|
Java
|
apache-2.0
| 3,489
|
#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <queue>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::stack;
using std::queue;
class MyStack
{
private:
queue<int> q1;
queue<int> q2;
public:
/** Initialize your data structure here. */
MyStack()
{
}
/** Push element x onto stack. */
void push(int x)
{
if (!q1.empty())
{
q1.push(x);
}
else
{
q2.push(x);
}
}
/** Removes the element on top of the stack and returns that element. */
int pop()
{
if (!q1.empty())
{
while (q1.size() > 1)
{
q2.push(q1.front());
q1.pop();
}
int result = q1.front();
q1.pop();
return result;
}
else
{
while (q2.size() > 1)
{
q1.push(q2.front());
q2.pop();
}
int result = q2.front();
q2.pop();
return result;
}
}
/** Get the top element. */
int top()
{
int result = pop();
push(result);
return result;
}
/** Returns whether the stack is empty. */
bool empty()
{
return q1.empty() && q2.empty();
}
};
int main(int argc, char* argv[])
{
MyStack s;
s.push(1);
s.push(2);
cout << s.top() << endl;;
cout << s.top() << endl;
return 0;
}
|
MichaelTiramisu/LeetCode
|
P225_ImplementStackUsingQueues/P225_ImplementStackUsingQueues/main.cpp
|
C++
|
apache-2.0
| 1,222
|
/*
* Copyright 2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include <thrift/lib/cpp2/frozen/FrozenUtil.h>
#include <thrift/lib/cpp2/frozen/FrozenTestUtil.h>
#include <thrift/lib/cpp/util/ThriftSerializer.h>
using namespace apache::thrift;
using namespace frozen;
using namespace util;
TEST(FrozenUtil, FreezeAndUse) {
auto file = freezeToTempFile(std::string("hello"));
MappedFrozen<std::string> mapped;
mapped = mapFrozen<std::string>(folly::File(file.fd()));
EXPECT_EQ(folly::StringPiece(mapped), "hello");
}
TEST(FrozenUtil, FreezeAndMap) {
auto original = std::vector<std::string>{"hello", "world"};
folly::test::TemporaryFile tmp;
freezeToFile(original, folly::File(tmp.fd()));
MappedFrozen<std::vector<std::string>> mapped;
EXPECT_FALSE(mapped);
mapped = mapFrozen<std::vector<std::string>>(folly::File(tmp.fd()));
EXPECT_TRUE(mapped);
auto thawed = mapped.thaw();
EXPECT_EQ(original, thawed);
original.push_back("different");
EXPECT_NE(original, thawed);
}
TEST(FrozenUtil, FutureVersion) {
folly::test::TemporaryFile tmp;
{
schema::Schema schema;
schema.fileVersion = 1000;
schema.__isset.fileVersion = true;
std::string schemaStr;
util::ThriftSerializerCompact<>().serialize(schema, &schemaStr);
write(tmp.fd(), schemaStr.data(), schemaStr.size());
}
EXPECT_THROW(mapFrozen<std::string>(folly::File(tmp.fd())),
FrozenFileForwardIncompatible);
}
TEST(FrozenUtil, FileSize) {
auto original = std::vector<std::string>{"hello", "world"};
folly::test::TemporaryFile tmp;
freezeToFile(original, folly::File(tmp.fd()));
struct stat stats;
fstat(tmp.fd(), &stats);
EXPECT_LT(stats.st_size, 500); // most of this is the schema
}
TEST(FrozenUtil, FreezeToString) {
// multiplication tables for first three primes
using TestType = std::map<int, std::map<int, int>>;
TestType m{
{2, {{2, 4}, {3, 6}, {5, 10}}},
{3, {{2, 6}, {3, 9}, {5, 15}}},
{5, {{2, 10}, {3, 15}, {5, 25}}},
};
MappedFrozen<TestType> frozen;
{
std::string store;
freezeToString(m, store);
// In this example, the schema is 101 bytes and the data is only 17 bytes!
// By default, this is stripped out by this overload.
frozen = mapFrozen<TestType>(std::move(store));
}
EXPECT_EQ(frozen.at(3).at(5), 15);
{
std::string store;
freezeToString(m, store);
// false = don't trim the space for the schema
frozen = mapFrozen<TestType>(std::move(store), false);
}
EXPECT_EQ(frozen.at(3).at(5), 15);
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
google::InitGoogleLogging(argv[0]);
google::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
|
LinusU/fbthrift
|
thrift/lib/cpp2/frozen/test/FrozenUtilTest.cpp
|
C++
|
apache-2.0
| 3,290
|
# AUTOGENERATED FILE
FROM balenalib/artik533s-debian:buster-build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
\
# .NET Core dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu63 \
libssl1.1 \
libstdc++6 \
zlib1g \
&& rm -rf /var/lib/apt/lists/*
# Configure web servers to bind to port 80 when present
ENV ASPNETCORE_URLS=http://+:80 \
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true
# Install .NET Core
ENV DOTNET_VERSION 3.1.21
RUN curl -SL --output dotnet.tar.gz "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-$DOTNET_VERSION-linux-arm.tar.gz" \
&& dotnet_sha512='9c3fb0f5f860f53ab4d15124c2c23a83412ea916ad6155c0f39f066057dcbb3ca6911ae26daf8a36dbfbc09c17d6565c425fbdf3db9114a28c66944382b71000' \
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
&& mkdir -p /usr/share/dotnet \
&& tar -zxf dotnet.tar.gz -C /usr/share/dotnet \
&& rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
ENV ASPNETCORE_VERSION 3.1.21
RUN curl -SL --output aspnetcore.tar.gz "https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/$ASPNETCORE_VERSION/aspnetcore-runtime-$ASPNETCORE_VERSION-linux-arm.tar.gz" \
&& aspnetcore_sha512='3f7e1839946c65c437a8b55f1f66b15f8faa729abd19874cb2507c10fb5ae6a572c7d4943141b8a450ee74082c3719d4f146c79f2fabf48716ff28be2720effa' \
&& echo "$aspnetcore_sha512 aspnetcore.tar.gz" | sha512sum -c - \
&& mkdir -p /usr/share/dotnet \
&& tar -zxf aspnetcore.tar.gz -C /usr/share/dotnet ./shared/Microsoft.AspNetCore.App \
&& rm aspnetcore.tar.gz
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/44e597e40f2010cdde15b3ba1e397aea3a5c5271/scripts/assets/tests/test-stack@dotnet.sh" \
&& echo "Running test-stack@dotnet" \
&& chmod +x test-stack@dotnet.sh \
&& bash test-stack@dotnet.sh \
&& rm -rf test-stack@dotnet.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Debian Buster \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \ndotnet 3.1-aspnet \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh
|
resin-io-library/base-images
|
balena-base-images/dotnet/artik533s/debian/buster/3.1-aspnet/build/Dockerfile
|
Dockerfile
|
apache-2.0
| 3,128
|
/*
Copyright 2010 Google Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
using System;
using System.IO;
using System.Collections.Generic;
using Google.Apis.Authentication;
namespace Google.Apis.Requests
{
/// <summary>
/// Implementors will be able to make a request to a service.
/// </summary>
public interface IRequest
{
/// <summary>
/// Specifies the RPC name to use.
/// </summary>
/// <param name="rpcName"></param>
/// <returns></returns>
IRequest On(string rpcName);
/// <summary>
/// Specifies the return type of this method.
/// </summary>
IRequest Returning(ReturnType returnType);
/// <summary>
/// Specifies the parameter set of this method.
/// </summary>
IRequest WithParameters(IDictionary<string, object> parameters);
/// <summary>
/// Specifies the parameter set of this method.
/// </summary>
IRequest WithParameters(IEnumerable<KeyValuePair<string, string>> parameters);
/// <summary>
/// Specifies the parameter query string of this method.
/// </summary>
IRequest WithParameters(string parameters);
/// <summary>
/// Specifies the partial field mask of this method.
/// The response of this request will only contain the fields specified in this mask.
/// </summary>
/// <param name="mask">Selector specifying which fields to include in a partial response.</param>
IRequest WithFields(string mask);
/// <summary>
/// IP address of the site where the request originates. Use this if you want to enforce per-user limits.
/// </summary>
IRequest WithUserIp(string userIp);
/// <summary>
/// Adds a body to this request (POST, PUT, ..).
/// </summary>
/// <remarks>The body will be encoded in UTF-8.</remarks>
IRequest WithBody(string body);
/// <summary>
/// Changes the request to use the specified authenticator.
/// </summary>
IRequest WithAuthentication(IAuthenticator authenticator);
/// <summary>
/// Adds the API/developer key to this request.
/// </summary>
IRequest WithKey(string key);
/// <summary>
/// Adds an ETag to this request.
/// </summary>
IRequest WithETag(string etag);
/// <summary>
/// Sets the ETag-behavior of this request.
/// </summary>
IRequest WithETagAction(ETagAction action);
/// <summary>
/// Executes the request asynchronously, and calls the specified delegate once done.
/// </summary>
/// <param name="responseHandler">The method to call once a response has been received.</param>
void ExecuteRequestAsync(Action<IAsyncRequestResult> responseHandler);
/// <summary>
/// Executes the request and returns the response.
/// </summary>
IResponse ExecuteRequest();
}
/// <summary>
/// Represents the result of a asynchronous Request.
/// </summary>
public interface IAsyncRequestResult
{
/// <summary>
/// Retrieves the response to this request.
/// </summary>
/// <exception cref="GoogleApiRequestException">Thrown if the request failed</exception>
IResponse GetResponse();
}
}
|
artzub/LoggenCSG
|
vendors/gapi/Src/GoogleApis/Apis/Requests/IRequest.cs
|
C#
|
apache-2.0
| 4,033
|
# AUTOGENERATED FILE
FROM balenalib/odroid-c1-alpine:3.12-build
# remove several traces of python
RUN apk del python*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# key 63C7CC90: public key "Simon McVittie <smcv@pseudorandom.co.uk>" imported
# key 3372DCFA: public key "Donald Stufft (dstufft) <donald@stufft.io>" imported
RUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \
&& gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \
&& gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059
# point Python at a system-provided certificate database. Otherwise, we might hit CERTIFICATE_VERIFY_FAILED.
# https://www.python.org/dev/peps/pep-0476/#trust-database
ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt
ENV PYTHON_VERSION 3.10.2
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 21.3.1
ENV SETUPTOOLS_VERSION 60.5.4
RUN set -x \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" \
&& echo "fdb8a836951c1630dd63d2297032cea763297c47e4813447563ceab746c975a2 Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" | sha256sum -c - \
&& tar -xzf "Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" --strip-components=1 \
&& rm -rf "Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" \
&& if [ ! -e /usr/local/bin/pip3 ]; then : \
&& curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py" \
&& echo "19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py" | sha256sum -c - \
&& python3 get-pip.py \
&& rm get-pip.py \
; fi \
&& pip3 install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
&& cd / \
&& rm -rf /usr/src/python ~/.cache
# install "virtualenv", since the vast majority of users of this image will want it
RUN pip3 install --no-cache-dir virtualenv
ENV PYTHON_DBUS_VERSION 1.2.18
# install dbus-python dependencies
RUN apk add --no-cache \
dbus-dev \
dbus-glib-dev
# install dbus-python
RUN set -x \
&& mkdir -p /usr/src/dbus-python \
&& curl -SL "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-$PYTHON_DBUS_VERSION.tar.gz" -o dbus-python.tar.gz \
&& curl -SL "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-$PYTHON_DBUS_VERSION.tar.gz.asc" -o dbus-python.tar.gz.asc \
&& gpg --verify dbus-python.tar.gz.asc \
&& tar -xzC /usr/src/dbus-python --strip-components=1 -f dbus-python.tar.gz \
&& rm dbus-python.tar.gz* \
&& cd /usr/src/dbus-python \
&& PYTHON_VERSION=$(expr match "$PYTHON_VERSION" '\([0-9]*\.[0-9]*\)') ./configure \
&& make -j$(nproc) \
&& make install -j$(nproc) \
&& cd / \
&& rm -rf /usr/src/dbus-python
# make some useful symlinks that are expected to exist
RUN cd /usr/local/bin \
&& ln -sf pip3 pip \
&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \
&& ln -sf idle3 idle \
&& ln -sf pydoc3 pydoc \
&& ln -sf python3 python \
&& ln -sf python3-config python-config
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@python.sh" \
&& echo "Running test-stack@python" \
&& chmod +x test-stack@python.sh \
&& bash test-stack@python.sh \
&& rm -rf test-stack@python.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Alpine Linux 3.12 \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v3.10.2, Pip v21.3.1, Setuptools v60.5.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo $'#!/bin/bash\nbalena-info\nbusybox ln -sf /bin/busybox /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& ln -f /bin/sh /bin/sh.real \
&& ln -f /bin/sh-shim /bin/sh
|
resin-io-library/base-images
|
balena-base-images/python/odroid-c1/alpine/3.12/3.10.2/build/Dockerfile
|
Dockerfile
|
apache-2.0
| 4,835
|
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2011 by IndiaMap, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
* WARNING: This is generated code. Modify at your own risk and without support.
*/
#ifdef USE_TI_FACEBOOK
#import "TiModule.h"
#import "Facebook.h"
@protocol TiFacebookStateListener
@required
-(void)login;
-(void)logout;
@end
@interface FacebookModule : TiModule <FBSessionDelegate2, FBRequestDelegate2>
{
Facebook *facebook;
BOOL loggedIn;
NSString *uid;
NSString *url;
NSString *appid;
NSArray *permissions;
NSMutableArray *stateListeners;
BOOL forceDialogAuth;
}
@property(nonatomic,readonly) Facebook *facebook;
@property(nonatomic,readonly) NSNumber *BUTTON_STYLE_NORMAL;
@property(nonatomic,readonly) NSNumber *BUTTON_STYLE_WIDE;
-(BOOL)isLoggedIn;
-(void)addListener:(id<TiFacebookStateListener>)listener;
-(void)removeListener:(id<TiFacebookStateListener>)listener;
-(void)authorize:(id)args;
-(void)logout:(id)args;
@end
#endif
|
jamilhassanspain/IndiaMap
|
build/iphone/Classes/FacebookModule.h
|
C
|
apache-2.0
| 1,095
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_07) on Tue Jun 09 11:51:56 CDT 2009 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
Uses of Class com.thoughtworks.selenium.condition.Not (Selenium RC Java Client Driver 1.0.1 API)
</TITLE>
<META NAME="date" CONTENT="2009-06-09">
<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 Class com.thoughtworks.selenium.condition.Not (Selenium RC Java Client Driver 1.0.1 API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/thoughtworks/selenium/condition/Not.html" title="class in com.thoughtworks.selenium.condition"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/thoughtworks/selenium/condition/\class-useNot.html" target="_top"><B>FRAMES</B></A>
<A HREF="Not.html" target="_top"><B>NO FRAMES</B></A>
<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>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>com.thoughtworks.selenium.condition.Not</B></H2>
</CENTER>
No usage of com.thoughtworks.selenium.condition.Not
<P>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<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="navbar_bottom_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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/thoughtworks/selenium/condition/Not.html" title="class in com.thoughtworks.selenium.condition"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/thoughtworks/selenium/condition/\class-useNot.html" target="_top"><B>FRAMES</B></A>
<A HREF="Not.html" target="_top"><B>NO FRAMES</B></A>
<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>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 2009. All Rights Reserved.
</BODY>
</HTML>
|
mogotest/selenium
|
1.x_overlay/selenium-java-client-driver-1.0.1/javadoc/com/thoughtworks/selenium/condition/class-use/Not.html
|
HTML
|
apache-2.0
| 6,261
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Fri Nov 13 17:08:57 CST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>_ - 索引 (BeautyEye v3.7 API文档)</title>
<meta name="date" content="2015-11-13">
<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="_ - \u7D22\u5F15 (BeautyEye v3.7 API\u6587\u6863)";
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="跳过导航链接"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../overview-summary.html">概览</a></li>
<li>程序包</li>
<li>类</li>
<li>使用</li>
<li><a href="../overview-tree.html">树</a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><em><b>BeautyEye v3.7(build 2015/11/14)</b></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-21.html">上一个字母</a></li>
<li>下一个字母</li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-filesindex-22.html" target="_top">框架</a></li>
<li><a href="index-22.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">B</a> <a href="index-3.html">C</a> <a href="index-4.html">D</a> <a href="index-5.html">E</a> <a href="index-6.html">F</a> <a href="index-7.html">G</a> <a href="index-8.html">H</a> <a href="index-9.html">I</a> <a href="index-10.html">J</a> <a href="index-11.html">L</a> <a href="index-12.html">M</a> <a href="index-13.html">N</a> <a href="index-14.html">O</a> <a href="index-15.html">P</a> <a href="index-16.html">R</a> <a href="index-17.html">S</a> <a href="index-18.html">T</a> <a href="index-19.html">U</a> <a href="index-20.html">V</a> <a href="index-21.html">W</a> <a href="index-22.html">_</a> <a name="___">
<!-- -->
</a>
<h2 class="title">_</h2>
<dl>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/BeautyEyeLNFHelper.html#__getFrameBorder()">__getFrameBorder()</a></span> - 类 中的静态方法org.jb2011.lnf.beautyeye.<a href="../org/jb2011/lnf/beautyeye/BeautyEyeLNFHelper.html" title="org.jb2011.lnf.beautyeye中的类">BeautyEyeLNFHelper</a></dt>
<dd>
<div class="block"><b>开发者无需关注本方法.</div>
</dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch12_progress/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch12_progress中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch12_progress/package-summary.html">org.jb2011.lnf.beautyeye.ch12_progress</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch12_progress/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch12_progress.<a href="../org/jb2011/lnf/beautyeye/ch12_progress/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch12_progress中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch14_combox/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch14_combox中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch14_combox/package-summary.html">org.jb2011.lnf.beautyeye.ch14_combox</a>中的类</dt>
<dd>
<div class="block">The Class __Icon9Factory__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch14_combox/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch14_combox.<a href="../org/jb2011/lnf/beautyeye/ch14_combox/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch14_combox中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch15_slider/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch15_slider中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch15_slider/package-summary.html">org.jb2011.lnf.beautyeye.ch15_slider</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch15_slider/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch15_slider.<a href="../org/jb2011/lnf/beautyeye/ch15_slider/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch15_slider中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch17_split/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch17_split中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch17_split/package-summary.html">org.jb2011.lnf.beautyeye.ch17_split</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch17_split/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch17_split.<a href="../org/jb2011/lnf/beautyeye/ch17_split/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch17_split中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch18_spinner/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch18_spinner中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch18_spinner/package-summary.html">org.jb2011.lnf.beautyeye.ch18_spinner</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch18_spinner/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch18_spinner.<a href="../org/jb2011/lnf/beautyeye/ch18_spinner/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch18_spinner中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch19_list/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch19_list中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch19_list/package-summary.html">org.jb2011.lnf.beautyeye.ch19_list</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch19_list/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch19_list.<a href="../org/jb2011/lnf/beautyeye/ch19_list/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch19_list中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch1_titlepane中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/package-summary.html">org.jb2011.lnf.beautyeye.ch1_titlepane</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch1_titlepane.<a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch1_titlepane中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch2_tab/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch2_tab中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch2_tab/package-summary.html">org.jb2011.lnf.beautyeye.ch2_tab</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch2_tab/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch2_tab.<a href="../org/jb2011/lnf/beautyeye/ch2_tab/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch2_tab中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch3_button/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch3_button中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch3_button/package-summary.html">org.jb2011.lnf.beautyeye.ch3_button</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch3_button/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch3_button.<a href="../org/jb2011/lnf/beautyeye/ch3_button/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch3_button中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch4_scroll/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch4_scroll中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch4_scroll/package-summary.html">org.jb2011.lnf.beautyeye.ch4_scroll</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch4_scroll/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch4_scroll.<a href="../org/jb2011/lnf/beautyeye/ch4_scroll/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch4_scroll中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch5_table/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch5_table中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch5_table/package-summary.html">org.jb2011.lnf.beautyeye.ch5_table</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch5_table/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch5_table.<a href="../org/jb2011/lnf/beautyeye/ch5_table/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch5_table中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch6_textcoms中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/package-summary.html">org.jb2011.lnf.beautyeye.ch6_textcoms</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch6_textcoms.<a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch6_textcoms中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch7_popup/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch7_popup中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch7_popup/package-summary.html">org.jb2011.lnf.beautyeye.ch7_popup</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch7_popup/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch7_popup.<a href="../org/jb2011/lnf/beautyeye/ch7_popup/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch7_popup中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch8_toolbar中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/package-summary.html">org.jb2011.lnf.beautyeye.ch8_toolbar</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch8_toolbar.<a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch8_toolbar中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch9_menu/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch9_menu中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch9_menu/package-summary.html">org.jb2011.lnf.beautyeye.ch9_menu</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch9_menu/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch9_menu.<a href="../org/jb2011/lnf/beautyeye/ch9_menu/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.ch9_menu中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/widget/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.widget中的类"><span class="strong">__Icon9Factory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/widget/package-summary.html">org.jb2011.lnf.beautyeye.widget</a>中的类</dt>
<dd>
<div class="block">NinePatch图片(*.9.png)工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/widget/__Icon9Factory__.html#__Icon9Factory__()">__Icon9Factory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.widget.<a href="../org/jb2011/lnf/beautyeye/widget/__Icon9Factory__.html" title="org.jb2011.lnf.beautyeye.widget中的类">__Icon9Factory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch10_internalframe中的类"><span class="strong">__IconFactory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/package-summary.html">org.jb2011.lnf.beautyeye.ch10_internalframe</a>中的类</dt>
<dd>
<div class="block">普通图片工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/__IconFactory__.html#__IconFactory__()">__IconFactory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch10_internalframe.<a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch10_internalframe中的类">__IconFactory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch13_radio$cb_btn中的类"><span class="strong">__IconFactory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/package-summary.html">org.jb2011.lnf.beautyeye.ch13_radio$cb_btn</a>中的类</dt>
<dd>
<div class="block">普通图片工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/__IconFactory__.html#__IconFactory__()">__IconFactory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch13_radio$cb_btn.<a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch13_radio$cb_btn中的类">__IconFactory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch15_slider/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch15_slider中的类"><span class="strong">__IconFactory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch15_slider/package-summary.html">org.jb2011.lnf.beautyeye.ch15_slider</a>中的类</dt>
<dd>
<div class="block">普通图片工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch15_slider/__IconFactory__.html#__IconFactory__()">__IconFactory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch15_slider.<a href="../org/jb2011/lnf/beautyeye/ch15_slider/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch15_slider中的类">__IconFactory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch16_tree/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch16_tree中的类"><span class="strong">__IconFactory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch16_tree/package-summary.html">org.jb2011.lnf.beautyeye.ch16_tree</a>中的类</dt>
<dd>
<div class="block">普通图片工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch16_tree/__IconFactory__.html#__IconFactory__()">__IconFactory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch16_tree.<a href="../org/jb2011/lnf/beautyeye/ch16_tree/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch16_tree中的类">__IconFactory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch1_titlepane中的类"><span class="strong">__IconFactory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/package-summary.html">org.jb2011.lnf.beautyeye.ch1_titlepane</a>中的类</dt>
<dd>
<div class="block">普通图片工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__IconFactory__.html#__IconFactory__()">__IconFactory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch1_titlepane.<a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch1_titlepane中的类">__IconFactory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch9_menu/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch9_menu中的类"><span class="strong">__IconFactory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch9_menu/package-summary.html">org.jb2011.lnf.beautyeye.ch9_menu</a>中的类</dt>
<dd>
<div class="block">普通图片工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch9_menu/__IconFactory__.html#__IconFactory__()">__IconFactory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch9_menu.<a href="../org/jb2011/lnf/beautyeye/ch9_menu/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch9_menu中的类">__IconFactory__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch_x/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch_x中的类"><span class="strong">__IconFactory__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch_x/package-summary.html">org.jb2011.lnf.beautyeye.ch_x</a>中的类</dt>
<dd>
<div class="block">普通图片工厂类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch_x/__IconFactory__.html#__IconFactory__()">__IconFactory__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch_x.<a href="../org/jb2011/lnf/beautyeye/ch_x/__IconFactory__.html" title="org.jb2011.lnf.beautyeye.ch_x中的类">__IconFactory__</a></dt>
<dd> </dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/BeautyEyeLNFHelper.html#__isFrameBorderOpaque()">__isFrameBorderOpaque()</a></span> - 类 中的静态方法org.jb2011.lnf.beautyeye.<a href="../org/jb2011/lnf/beautyeye/BeautyEyeLNFHelper.html" title="org.jb2011.lnf.beautyeye中的类">BeautyEyeLNFHelper</a></dt>
<dd>
<div class="block"><b>开发者无需关注本方法.</div>
</dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/__UI__.html" title="org.jb2011.lnf.beautyeye.ch10_internalframe中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/package-summary.html">org.jb2011.lnf.beautyeye.ch10_internalframe</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch10_internalframe.<a href="../org/jb2011/lnf/beautyeye/ch10_internalframe/__UI__.html" title="org.jb2011.lnf.beautyeye.ch10_internalframe中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch12_progress/__UI__.html" title="org.jb2011.lnf.beautyeye.ch12_progress中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch12_progress/package-summary.html">org.jb2011.lnf.beautyeye.ch12_progress</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch12_progress/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch12_progress.<a href="../org/jb2011/lnf/beautyeye/ch12_progress/__UI__.html" title="org.jb2011.lnf.beautyeye.ch12_progress中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/__UI__.html" title="org.jb2011.lnf.beautyeye.ch13_radio$cb_btn中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/package-summary.html">org.jb2011.lnf.beautyeye.ch13_radio$cb_btn</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch13_radio$cb_btn.<a href="../org/jb2011/lnf/beautyeye/ch13_radio$cb_btn/__UI__.html" title="org.jb2011.lnf.beautyeye.ch13_radio$cb_btn中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch14_combox/__UI__.html" title="org.jb2011.lnf.beautyeye.ch14_combox中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch14_combox/package-summary.html">org.jb2011.lnf.beautyeye.ch14_combox</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch14_combox/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch14_combox.<a href="../org/jb2011/lnf/beautyeye/ch14_combox/__UI__.html" title="org.jb2011.lnf.beautyeye.ch14_combox中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch15_slider/__UI__.html" title="org.jb2011.lnf.beautyeye.ch15_slider中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch15_slider/package-summary.html">org.jb2011.lnf.beautyeye.ch15_slider</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch15_slider/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch15_slider.<a href="../org/jb2011/lnf/beautyeye/ch15_slider/__UI__.html" title="org.jb2011.lnf.beautyeye.ch15_slider中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch16_tree/__UI__.html" title="org.jb2011.lnf.beautyeye.ch16_tree中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch16_tree/package-summary.html">org.jb2011.lnf.beautyeye.ch16_tree</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch16_tree/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch16_tree.<a href="../org/jb2011/lnf/beautyeye/ch16_tree/__UI__.html" title="org.jb2011.lnf.beautyeye.ch16_tree中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch17_split/__UI__.html" title="org.jb2011.lnf.beautyeye.ch17_split中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch17_split/package-summary.html">org.jb2011.lnf.beautyeye.ch17_split</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch17_split/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch17_split.<a href="../org/jb2011/lnf/beautyeye/ch17_split/__UI__.html" title="org.jb2011.lnf.beautyeye.ch17_split中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch18_spinner/__UI__.html" title="org.jb2011.lnf.beautyeye.ch18_spinner中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch18_spinner/package-summary.html">org.jb2011.lnf.beautyeye.ch18_spinner</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch18_spinner/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch18_spinner.<a href="../org/jb2011/lnf/beautyeye/ch18_spinner/__UI__.html" title="org.jb2011.lnf.beautyeye.ch18_spinner中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch19_list/__UI__.html" title="org.jb2011.lnf.beautyeye.ch19_list中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch19_list/package-summary.html">org.jb2011.lnf.beautyeye.ch19_list</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch19_list/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch19_list.<a href="../org/jb2011/lnf/beautyeye/ch19_list/__UI__.html" title="org.jb2011.lnf.beautyeye.ch19_list中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__UI__.html" title="org.jb2011.lnf.beautyeye.ch1_titlepane中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/package-summary.html">org.jb2011.lnf.beautyeye.ch1_titlepane</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch1_titlepane.<a href="../org/jb2011/lnf/beautyeye/ch1_titlepane/__UI__.html" title="org.jb2011.lnf.beautyeye.ch1_titlepane中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch20_filechooser/__UI__.html" title="org.jb2011.lnf.beautyeye.ch20_filechooser中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch20_filechooser/package-summary.html">org.jb2011.lnf.beautyeye.ch20_filechooser</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch20_filechooser/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch20_filechooser.<a href="../org/jb2011/lnf/beautyeye/ch20_filechooser/__UI__.html" title="org.jb2011.lnf.beautyeye.ch20_filechooser中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch2_tab/__UI__.html" title="org.jb2011.lnf.beautyeye.ch2_tab中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch2_tab/package-summary.html">org.jb2011.lnf.beautyeye.ch2_tab</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch2_tab/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch2_tab.<a href="../org/jb2011/lnf/beautyeye/ch2_tab/__UI__.html" title="org.jb2011.lnf.beautyeye.ch2_tab中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch3_button/__UI__.html" title="org.jb2011.lnf.beautyeye.ch3_button中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch3_button/package-summary.html">org.jb2011.lnf.beautyeye.ch3_button</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch3_button/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch3_button.<a href="../org/jb2011/lnf/beautyeye/ch3_button/__UI__.html" title="org.jb2011.lnf.beautyeye.ch3_button中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch4_scroll/__UI__.html" title="org.jb2011.lnf.beautyeye.ch4_scroll中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch4_scroll/package-summary.html">org.jb2011.lnf.beautyeye.ch4_scroll</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch4_scroll/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch4_scroll.<a href="../org/jb2011/lnf/beautyeye/ch4_scroll/__UI__.html" title="org.jb2011.lnf.beautyeye.ch4_scroll中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch5_table/__UI__.html" title="org.jb2011.lnf.beautyeye.ch5_table中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch5_table/package-summary.html">org.jb2011.lnf.beautyeye.ch5_table</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch5_table/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch5_table.<a href="../org/jb2011/lnf/beautyeye/ch5_table/__UI__.html" title="org.jb2011.lnf.beautyeye.ch5_table中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/__UI__.html" title="org.jb2011.lnf.beautyeye.ch6_textcoms中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/package-summary.html">org.jb2011.lnf.beautyeye.ch6_textcoms</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch6_textcoms.<a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/__UI__.html" title="org.jb2011.lnf.beautyeye.ch6_textcoms中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch7_popup/__UI__.html" title="org.jb2011.lnf.beautyeye.ch7_popup中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch7_popup/package-summary.html">org.jb2011.lnf.beautyeye.ch7_popup</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch7_popup/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch7_popup.<a href="../org/jb2011/lnf/beautyeye/ch7_popup/__UI__.html" title="org.jb2011.lnf.beautyeye.ch7_popup中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/__UI__.html" title="org.jb2011.lnf.beautyeye.ch8_toolbar中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/package-summary.html">org.jb2011.lnf.beautyeye.ch8_toolbar</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch8_toolbar.<a href="../org/jb2011/lnf/beautyeye/ch8_toolbar/__UI__.html" title="org.jb2011.lnf.beautyeye.ch8_toolbar中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch9_menu/__UI__.html" title="org.jb2011.lnf.beautyeye.ch9_menu中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch9_menu/package-summary.html">org.jb2011.lnf.beautyeye.ch9_menu</a>中的类</dt>
<dd>
<div class="block">The Class __UI__.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch9_menu/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch9_menu.<a href="../org/jb2011/lnf/beautyeye/ch9_menu/__UI__.html" title="org.jb2011.lnf.beautyeye.ch9_menu中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch_x/__UI__.html" title="org.jb2011.lnf.beautyeye.ch_x中的类"><span class="strong">__UI__</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch_x/package-summary.html">org.jb2011.lnf.beautyeye.ch_x</a>中的类</dt>
<dd>
<div class="block">各种未归类的UI属性设置实现类.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch_x/__UI__.html#__UI__()">__UI__()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch_x.<a href="../org/jb2011/lnf/beautyeye/ch_x/__UI__.html" title="org.jb2011.lnf.beautyeye.ch_x中的类">__UI__</a></dt>
<dd> </dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/__UI__.BgSwitchable.html" title="org.jb2011.lnf.beautyeye.ch6_textcoms中的接口"><span class="strong">__UI__.BgSwitchable</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch6_textcoms/package-summary.html">org.jb2011.lnf.beautyeye.ch6_textcoms</a>中的接口</dt>
<dd>
<div class="block">The Interface BgSwitchable.</div>
</dd>
<dt><a href="../org/jb2011/lnf/beautyeye/ch5_table/__UI__.TableHeaderBorder.html" title="org.jb2011.lnf.beautyeye.ch5_table中的类"><span class="strong">__UI__.TableHeaderBorder</span></a> - <a href="../org/jb2011/lnf/beautyeye/ch5_table/package-summary.html">org.jb2011.lnf.beautyeye.ch5_table</a>中的类</dt>
<dd>
<div class="block">Border for a Table Header.</div>
</dd>
<dt><span class="strong"><a href="../org/jb2011/lnf/beautyeye/ch5_table/__UI__.TableHeaderBorder.html#__UI__.TableHeaderBorder()">__UI__.TableHeaderBorder()</a></span> - 类 的构造器org.jb2011.lnf.beautyeye.ch5_table.<a href="../org/jb2011/lnf/beautyeye/ch5_table/__UI__.TableHeaderBorder.html" title="org.jb2011.lnf.beautyeye.ch5_table中的类">__UI__.TableHeaderBorder</a></dt>
<dd> </dd>
</dl>
<a href="index-1.html">A</a> <a href="index-2.html">B</a> <a href="index-3.html">C</a> <a href="index-4.html">D</a> <a href="index-5.html">E</a> <a href="index-6.html">F</a> <a href="index-7.html">G</a> <a href="index-8.html">H</a> <a href="index-9.html">I</a> <a href="index-10.html">J</a> <a href="index-11.html">L</a> <a href="index-12.html">M</a> <a href="index-13.html">N</a> <a href="index-14.html">O</a> <a href="index-15.html">P</a> <a href="index-16.html">R</a> <a href="index-17.html">S</a> <a href="index-18.html">T</a> <a href="index-19.html">U</a> <a href="index-20.html">V</a> <a href="index-21.html">W</a> <a href="index-22.html">_</a> </div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="跳过导航链接"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../overview-summary.html">概览</a></li>
<li>程序包</li>
<li>类</li>
<li>使用</li>
<li><a href="../overview-tree.html">树</a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><em><b>BeautyEye v3.7(build 2015/11/14)</b></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-21.html">上一个字母</a></li>
<li>下一个字母</li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-filesindex-22.html" target="_top">框架</a></li>
<li><a href="index-22.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><center>Copyright © 2015 <a target=_blank href=http://www.openmob.net>有码网(openmob.net)</a>. All rights reserved.</center></small></p>
</body>
</html>
|
JackJiang2011/beautyeye
|
doc/api_doc/index-files/index-22.html
|
HTML
|
apache-2.0
| 37,965
|
<?php declare(strict_types=1);
/**
* MindTouch HTTP
* Copyright (C) 2006-2018 MindTouch, Inc.
* www.mindtouch.com oss@mindtouch.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace MindTouch\Http\Mock;
use InvalidArgumentException;
use MindTouch\Http\Content\IContent;
use MindTouch\Http\Headers;
use MindTouch\Http\HttpPlug;
use MindTouch\Http\IHeaders;
use MindTouch\Http\IMutableHeaders;
use MindTouch\Http\XUri;
/**
* Class MockRequest
*
* Object for configuring a MockPlug request to mock or verify; file uploads not supported
*
* @package MindTouch\Http\Mock
*/
class MockRequestMatcher {
/**
* @var string[]
*/
private static $ignoredQueryParamNames = [];
/**
* @var string[]
*/
private static $ignoredHeaderNames = [];
/**
* Set query param names to ignore during matching
*
* @param string[] $names
* @return void
*/
public static function setIgnoredQueryParamNames(array $names) : void { self::$ignoredQueryParamNames = $names; }
/**
* Set HTTP header names to ignore during matching
*
* @param string[] $names
* @return void
*/
public static function setIgnoredHeaderNames(array $names) : void { self::$ignoredHeaderNames = $names; }
/**
* @var string
*/
private $method = HttpPlug::METHOD_GET;
/**
* @var XUri
*/
private $uri;
/**
* @var IMutableHeaders
*/
private $headers;
/**
* @var string|null
*/
private $body;
/**
* @param string $method
* @param XUri $uri
*/
public function __construct(string $method, XUri $uri) {
$this->method = $method;
$this->uri = $uri;
$this->headers = new Headers();
}
public function __clone() {
// deep copy internal data objects and arrays
$this->uri = unserialize(serialize($this->uri));
$this->headers = unserialize(serialize($this->headers));
}
/**
* Retrieve HTTP method
*
* @return string
*/
public function getMethod() : string { return $this->method; }
/**
* Retrieve denormalized matcher uri
*
* @return XUri
*/
public function getUri() : XUri { return $this->uri; }
/**
* Retrieve HTTP headers
*
* @return IHeaders
*/
public function getHeaders() : IHeaders { return $this->headers; }
/**
* Retrieve HTTP message body
*
* @return string|null
*/
public function getBody() : ?string { return $this->body; }
/**
* Retrieve id to match mock results to matcher
*
* @return string
*/
public function getMatcherId() : string {
$uri = $this->newNormalizedUriString();
$headers = $this->newNormalizedHeaderStrings();
return md5(serialize($headers) . "{$this->method}{$uri}{$this->body}");
}
/**
* Return an instance with the specified HTTP headers.
*
* @param IHeaders $headers
* @return MockRequestMatcher
*/
public function withHeaders(IHeaders $headers) : MockRequestMatcher {
$request = clone $this;
$request->headers = $headers->toMutableHeaders();
return $request;
}
/**
* Return an instance with the specified body string
*
* @param string|string[]|null $body - array body is assumed to be form fields and will be encoded to a string
* @return MockRequestMatcher
*/
public function withBody($body) : MockRequestMatcher {
if(is_string($body) || is_array($body) || $body == null) {
if(is_array($body)) {
$body = http_build_query($body);
}
$request = clone $this;
$request->body = $body;
return $request;
}
throw new InvalidArgumentException('Body value must be string, array, or null');
}
/**
* Return an instance with the specified content. Method will set a body and content-type depending on
* the value of the content object
*
* @param IContent $content
* @return MockRequestMatcher
*/
public function withContent(IContent $content) : MockRequestMatcher {
$request = clone $this;
$contentType = $content->getContentType();
$request->headers->setHeader(Headers::HEADER_CONTENT_TYPE, $contentType !== null ? $contentType->toString() : null);
$request->body = $content->toString();
return $request;
}
/**
* @return array
*/
public function toArray() : array {
return [
'method' => $this->method,
'uri' => $this->uri->toString(),
'headers' => $this->headers->toFlattenedArray(),
'body' => $this->body !== null ? $this->body : ''
];
}
/**
* @return array
*/
public function toNormalizedArray() : array {
return [
'method' => $this->method,
'uri' => $this->newNormalizedUriString(),
'headers' => $this->newNormalizedHeaderStrings(),
'body' => $this->body !== null ? $this->body : ''
];
}
/**
* @return string
*/
private function newNormalizedUriString() : string {
$params = [];
$href = $this->uri->toString();
// parse uri into components
$data = parse_url($href);
if(!is_array($data) || !isset($data['scheme']) || !isset($data['host'])) {
// if for some outstanding reason, the uri is malformed, at least match on something
return $href;
}
if(isset($data['query'])) {
parse_str($data['query'], $params);
}
// filter parameters applied by Plug
$params = array_diff_key($params, array_flip(self::$ignoredQueryParamNames));
// rebuild uri
$uri = $data['scheme'] . '://' . $data['host'];
if(isset($data['port'])) {
$uri .= ':' . $data['port'];
}
if(isset($data['path'])) {
$uri .= $data['path'];
}
asort($params);
if(!empty($params)) {
$uri .= '?' . http_build_query($params);
}
return $uri;
}
/**
* @return string[]
*/
private function newNormalizedHeaderStrings() : array {
$headers = $this->headers->toFlattenedArray();
$headers = array_diff_key($headers, array_flip(self::$ignoredHeaderNames));
// rebuild headers
ksort($headers);
return $headers;
}
}
|
MindTouch/MindTouch-API-PHP-Client
|
src/Mock/MockRequestMatcher.php
|
PHP
|
apache-2.0
| 7,060
|
/**
* Licensed under the Apache License, Version 2.0 (the "License") under
* one or more contributor license agreements. See the NOTICE file
* distributed with this work for information regarding copyright
* ownership. You may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.msiops.footing.functional;
import java.util.function.Consumer;
import java.util.function.Function;
@FunctionalInterface
public interface Consumer4<T1, T2, T3, T4> extends
Function<T1, Consumer3<T2, T3, T4>> {
void accept(T1 t1, T2 t2, T3 t3, T4 t4);
@Override
default Consumer3<T2, T3, T4> apply(final T1 t1) {
return (t2, t3, t4) -> accept(t1, t2, t3, t4);
}
default Consumer2<T3, T4> apply(final T1 t1, final T2 t2) {
return (t3, t4) -> accept(t1, t2, t3, t4);
}
default Consumer<T4> apply(final T1 t1, final T2 t2, final T3 t3) {
return (t4) -> accept(t1, t2, t3, t4);
}
}
|
mediascience/java-functional
|
src/main/java/com/msiops/footing/functional/Consumer4.java
|
Java
|
apache-2.0
| 1,371
|
/*
* Copyright 2017-2020 FIX Protocol Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package io.fixprotocol.orchestra.transformers;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.BiPredicate;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.purl.dc.elements._1.ObjectFactory;
import org.purl.dc.elements._1.SimpleLiteral;
import org.purl.dc.terms.ElementOrRefinementContainer;
import io.fixprotocol._2020.orchestra.repository.Actors;
import io.fixprotocol._2020.orchestra.repository.Categories;
import io.fixprotocol._2020.orchestra.repository.CategoryType;
import io.fixprotocol._2020.orchestra.repository.CodeSetType;
import io.fixprotocol._2020.orchestra.repository.CodeSets;
import io.fixprotocol._2020.orchestra.repository.ComponentRefType;
import io.fixprotocol._2020.orchestra.repository.ComponentType;
import io.fixprotocol._2020.orchestra.repository.Components;
import io.fixprotocol._2020.orchestra.repository.Datatypes;
import io.fixprotocol._2020.orchestra.repository.FieldRefType;
import io.fixprotocol._2020.orchestra.repository.FieldType;
import io.fixprotocol._2020.orchestra.repository.Fields;
import io.fixprotocol._2020.orchestra.repository.GroupRefType;
import io.fixprotocol._2020.orchestra.repository.GroupType;
import io.fixprotocol._2020.orchestra.repository.Groups;
import io.fixprotocol._2020.orchestra.repository.MessageType;
import io.fixprotocol._2020.orchestra.repository.Messages;
import io.fixprotocol._2020.orchestra.repository.Repository;
import io.fixprotocol._2020.orchestra.repository.Sections;
/**
* Selectively compresses an Orchestra file <br>
* Copies selected elements to a new file. Only selected messages are retained with one of the
* following filters
* <ul>
* <li>Messages that have a flow</li>
* <li>Messages that have a specified category</li>
* <li>Messages that <em>not</em> in a specified category</li>
* </ul>
* <ul>
* <li>Field and components are copied only if they are contained by the selected messages.</li>
* <li>Abbreviations, categories, sections, actors, datatypes, and metadata are copied as-is (not
* compressed).</li>
* <li>Attributes of copied elements are unchanged.</li>
* </ul>
*
* @author Don Mendelson
*
*/
public class RepositoryCompressor {
public static class Builder {
private String inputFile;
private Predicate<MessageType> messagePredicate;
private String outputFile;
private String logFile;
public RepositoryCompressor build() {
return new RepositoryCompressor(this);
}
public Builder eventLog(String logFile) {
this.logFile = logFile;
return this;
}
Builder inputFile(String inputFile) {
this.inputFile = inputFile;
return this;
}
Builder messagePredicate(Predicate<MessageType> messagePredicate) {
this.messagePredicate = messagePredicate;
return this;
}
Builder outputFile(String outputFile) {
this.outputFile = outputFile;
return this;
}
}
static class HasCategory implements Predicate<MessageType> {
private final String category;
public HasCategory(String category) {
this.category = category;
}
@Override
public boolean test(MessageType m) {
return category.equals(m.getCategory());
}
}
static class HasFlow implements Predicate<MessageType> {
private final String flow;
public HasFlow(String flow) {
this.flow = flow;
}
@Override
public boolean test(MessageType m) {
return flow.equals(m.getFlow());
}
}
static class HasSection implements Predicate<MessageType> {
private final String section;
private final BiPredicate<String, String> testCategory;
public HasSection(String section, BiPredicate<String, String> testCategory) {
this.section = section;
this.testCategory = testCategory;
}
@Override
public boolean test(MessageType m) {
return this.testCategory.test(m.getCategory(), this.section);
}
}
static class IsCategoryInSection implements BiPredicate<String, String> {
private List<CategoryType> categories;
public void setCategories(List<CategoryType> categories) {
this.categories = categories;
}
@Override
public boolean test(String category, String section) {
for (final CategoryType categoryType : categories) {
if (categoryType.getName().equals(category) && categoryType.getSection().equals(section)) {
return true;
}
}
return false;
}
}
static class NotCategory implements Predicate<MessageType> {
private final String category;
public NotCategory(String category) {
this.category = category;
}
@Override
public boolean test(MessageType m) {
return !category.equals(m.getCategory());
}
}
static class NotSection implements Predicate<MessageType> {
private final String section;
private final BiPredicate<String, String> testCategory;
public NotSection(String section, BiPredicate<String, String> testCategory) {
this.section = section;
this.testCategory = testCategory;
}
@Override
public boolean test(MessageType m) {
return !this.testCategory.test(m.getCategory(), this.section);
}
}
private static final Logger logger = LogManager.getLogger(RepositoryCompressor.class);
static final IsCategoryInSection isCategoryInSection = new IsCategoryInSection();
public static Builder builder() {
return new Builder();
}
/**
* usage: RepositoryCompressor
*
* <pre>
* -?,--help display usage
* -c,--category <arg> select messages by category
* -f,--flow <arg> select messages by flow
* -i,--input <arg> path of input file
* -n,--notcategory <arg> select messages except category
* -o,--output <arg> path of output file
* -s,--section <arg> select messages by section
* -x,--notsection <arg> select messages except section
* </pre>
*
* @param args command line arguments
*/
public static void main(String[] args) {
RepositoryCompressor compressor;
try {
compressor = RepositoryCompressor.parseArgs(args).build();
System.exit(compressor.compress() ? 0 : 1);
} catch (ParseException e) {
System.err.println(e.getMessage());
System.exit(1);
}
}
public static Builder parseArgs(String[] args) throws ParseException {
final Options options = new Options();
options.addOption(Option.builder("i").desc("path of input file").longOpt("input")
.numberOfArgs(1).required().build());
options.addOption(Option.builder("o").desc("path of output file").longOpt("output")
.numberOfArgs(1).required().build());
options.addOption(Option.builder("c").desc("select messages by category").longOpt("category")
.numberOfArgs(1).build());
options.addOption(Option.builder("s").desc("select messages by section").longOpt("section")
.numberOfArgs(1).build());
options.addOption(Option.builder("f").desc("select messages by flow").longOpt("flow")
.numberOfArgs(1).build());
options.addOption(Option.builder("n").desc("select messages except category")
.longOpt("notcategory").numberOfArgs(1).build());
options.addOption(Option.builder("x").desc("select messages except section")
.longOpt("notsection").numberOfArgs(1).build());
options.addOption(Option.builder("?").desc("display usage").longOpt("help").build());
final DefaultParser parser = new DefaultParser();
CommandLine cmd;
final Builder builder = new Builder();
try {
cmd = parser.parse(options, args);
if (cmd.hasOption("?")) {
final HelpFormatter formatter = new HelpFormatter();
formatter.printHelp("RepositoryCompressor", options);
System.exit(0);
}
builder.inputFile = cmd.getOptionValue("i");
builder.outputFile = cmd.getOptionValue("o");
if (cmd.hasOption("c")) {
final String category = cmd.getOptionValue("c");
builder.messagePredicate = new HasCategory(category);
}
if (cmd.hasOption("notcategory")) {
final String category = cmd.getOptionValue("notcategory");
if (builder.messagePredicate == null) {
builder.messagePredicate = new NotCategory(category);
} else {
builder.messagePredicate = builder.messagePredicate.and(new NotCategory(category));
}
}
if (cmd.hasOption("s")) {
final String section = cmd.getOptionValue("s");
if (builder.messagePredicate == null) {
builder.messagePredicate = new HasSection(section, isCategoryInSection);
} else {
builder.messagePredicate =
builder.messagePredicate.and(new HasSection(section, isCategoryInSection));
}
}
if (cmd.hasOption("notsection")) {
final String section = cmd.getOptionValue("notsection");
if (builder.messagePredicate == null) {
builder.messagePredicate = new NotSection(section, isCategoryInSection);
} else {
builder.messagePredicate =
builder.messagePredicate.and(new NotSection(section, isCategoryInSection));
}
}
if (cmd.hasOption("f")) {
final String flow = cmd.getOptionValue("f");
if (builder.messagePredicate == null) {
builder.messagePredicate = new HasFlow(flow);
} else {
builder.messagePredicate = builder.messagePredicate.and(new HasFlow(flow));
}
}
if (builder.messagePredicate == null) {
logger.fatal(
"RepositoryCompressor invalid arguments; Must select one or more selection criteria: category / section / flow");
throw new ParseException(
"Must select one or more selection criteria: category / section / flow");
}
return builder;
} catch (final ParseException e) {
logger.fatal("RepositoryCompressor invalid arguments", e);
throw e;
}
}
static Predicate<? super MessageType> hasFlow() {
return m -> m.getFlow() != null;
}
private final List<BigInteger> componentIdList = new ArrayList<>();
private List<ComponentType> componentList = new ArrayList<>();
private final List<BigInteger> fieldIdList = new ArrayList<>();
private final List<BigInteger> groupIdList = new ArrayList<>();
private List<GroupType> groupList;
private final String inputFile;
private final Predicate<MessageType> messagePredicate;
private final String outputFile;
private final File logFile;
protected RepositoryCompressor(Builder builder) {
this.inputFile = builder.inputFile;
this.outputFile = builder.outputFile;
this.messagePredicate = builder.messagePredicate;
this.logFile = builder.logFile != null ? new File(builder.logFile) : null;
}
public boolean compress() {
try (InputStream is = new FileInputStream(this.inputFile);
OutputStream os = new FileOutputStream(this.outputFile)) {
return compress(is, os, this.messagePredicate);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return false;
}
}
private boolean compress(InputStream is, OutputStream os,
Predicate<? super MessageType> messagePredicate) {
try {
final Repository inRepository = unmarshal(is);
final Categories categories = inRepository.getCategories();
isCategoryInSection.setCategories(categories.getCategory());
final Repository outRepository = new Repository();
inRepository.copyTo(null, outRepository, AttributeCopyStrategy.INSTANCE);
final ElementOrRefinementContainer metadata =
(ElementOrRefinementContainer) inRepository.getMetadata().clone();
final List<JAXBElement<SimpleLiteral>> literals = metadata.getAny();
final ObjectFactory objectFactory = new ObjectFactory();
final SimpleLiteral contributor = new SimpleLiteral();
contributor.getContent().add("RepositoryCompressor");
literals.add(objectFactory.createContributor(contributor));
outRepository.setMetadata(metadata);
if (categories != null) {
outRepository.setCategories((Categories) categories.clone());
}
final Sections sections = inRepository.getSections();
if (sections != null) {
outRepository.setSections((Sections) sections.clone());
}
final Datatypes datatypes = inRepository.getDatatypes();
if (datatypes != null) {
outRepository.setDatatypes((Datatypes) datatypes.clone());
}
final Actors actors = inRepository.getActors();
if (actors != null) {
outRepository.setActors((Actors) actors.clone());
}
final Components components = inRepository.getComponents();
if (components != null) {
final Components inComponents = (Components) components.clone();
componentList = inComponents.getComponent();
}
final Groups groups = inRepository.getGroups();
if (groups != null) {
final Groups inGroups = (Groups) groups.clone();
groupList = inGroups.getGroup();
}
final Messages messages = inRepository.getMessages();
final List<MessageType> messageList;
if (messages != null) {
final Messages inMessages = (Messages) messages.clone();
messageList = inMessages.getMessage();
} else {
messageList = Collections.emptyList();
}
final List<MessageType> filteredMessages =
messageList.stream().filter(messagePredicate).collect(Collectors.toList());
filteredMessages.forEach(m -> walk(m.getStructure().getComponentRefOrGroupRefOrFieldRef()));
final List<BigInteger> distinctFieldIds =
fieldIdList.stream().distinct().collect(Collectors.toList());
final Fields inFields = (Fields) inRepository.getFields().clone();
final List<FieldType> fieldsWithFlow = inFields.getField().stream()
.filter(f -> distinctFieldIds.contains(f.getId())).collect(Collectors.toList());
final Fields outFields = new Fields();
outFields.getField().addAll(fieldsWithFlow);
outRepository.setFields(outFields);
final List<String> typeList =
fieldsWithFlow.stream().map(FieldType::getType).distinct().collect(Collectors.toList());
final CodeSets inCodeSets = (CodeSets) inRepository.getCodeSets().clone();
final List<CodeSetType> codeSetsWithFlow = inCodeSets.getCodeSet().stream()
.filter(cs -> typeList.contains(cs.getName())).collect(Collectors.toList());
final CodeSets outCodeSets = new CodeSets();
outCodeSets.getCodeSet().addAll(codeSetsWithFlow);
outRepository.setCodeSets(outCodeSets);
final List<BigInteger> distinctComponentsIds =
componentIdList.stream().distinct().collect(Collectors.toList());
final List<ComponentType> componentsWithFlow = componentList.stream()
.filter(c -> distinctComponentsIds.contains(c.getId())).collect(Collectors.toList());
final Components outComponents = new Components();
outComponents.getComponent().addAll(componentsWithFlow);
outRepository.setComponents(outComponents);
final List<BigInteger> distinctGroupIds =
groupIdList.stream().distinct().collect(Collectors.toList());
final List<GroupType> groupWithFlow = groupList.stream()
.filter(c -> distinctGroupIds.contains(c.getId())).collect(Collectors.toList());
final Groups outGroups = new Groups();
outGroups.getGroup().addAll(groupWithFlow);
outRepository.setGroups(outGroups);
final Messages outMessages = new Messages();
outMessages.getMessage().addAll(filteredMessages);
outRepository.setMessages(outMessages);
marshal(outRepository, os);
return true;
} catch (JAXBException e) {
logger.fatal("RepositoryCompressor failed", e);
return false;
}
}
private ComponentType getComponent(BigInteger id) {
for (final ComponentType component : componentList) {
if (component.getId().equals(id)) {
return component;
}
}
return null;
}
private List<Object> getComponentMembers(BigInteger id) {
final ComponentType component = getComponent(id);
if (component != null) {
return component.getComponentRefOrGroupRefOrFieldRef();
} else {
return null;
}
}
private GroupType getGroup(BigInteger id) {
for (final GroupType group : groupList) {
if (group.getId().equals(id)) {
return group;
}
}
return null;
}
private List<Object> getGroupMembers(BigInteger id) {
final GroupType component = getGroup(id);
if (component != null) {
return component.getComponentRefOrGroupRefOrFieldRef();
} else {
return null;
}
}
private void marshal(Repository jaxbElement, OutputStream os) throws JAXBException {
final JAXBContext jaxbContext = JAXBContext.newInstance(Repository.class);
final Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
jaxbMarshaller.setProperty("jaxb.formatted.output", true);
jaxbMarshaller.marshal(jaxbElement, os);
}
private Repository unmarshal(InputStream is) throws JAXBException {
final JAXBContext jaxbContext = JAXBContext.newInstance(Repository.class);
final Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
return (Repository) jaxbUnmarshaller.unmarshal(is);
}
private void walk(List<Object> list) {
for (final Object obj : list) {
if (obj instanceof GroupRefType) {
final GroupRefType groupRef = (GroupRefType) obj;
final GroupType group = getGroup(groupRef.getId());
if (group == null) {
logger.error("Group missing for groupRef; ID={}", groupRef.getId().intValue());
return;
}
fieldIdList.add(group.getNumInGroup().getId());
groupIdList.add(groupRef.getId());
// recursion on referenced component
walk(getGroupMembers(groupRef.getId()));
} else if (obj instanceof ComponentRefType) {
final ComponentRefType componentRef = (ComponentRefType) obj;
componentIdList.add(componentRef.getId());
// recursion on referenced component
walk(getComponentMembers(componentRef.getId()));
} else if (obj instanceof FieldRefType) {
final FieldRefType fieldRef = (FieldRefType) obj;
fieldIdList.add(fieldRef.getId());
}
}
}
}
|
FIXTradingCommunity/fix-orchestra
|
repository-util/src/main/java/io/fixprotocol/orchestra/transformers/RepositoryCompressor.java
|
Java
|
apache-2.0
| 20,375
|
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#ifndef NATIVECONTROLOBJECT_H_
#define NATIVECONTROLOBJECT_H_
#include "NativeProxyObject.h"
#include <bb/cascades/Color>
#include <bb/cascades/TouchEvent>
#include <bb/cascades/VisualNode>
#include <QRect>
#include <TiCore.h>
class TiV8Event;
class QString;
class TiObject;
class UIViewEventHandler;
class NativeLayoutHandler;
namespace bb
{
namespace cascades
{
class AbsoluteLayoutProperties;
class Container;
class Control;
}
}
/*
* NativeControlObject
*
* Base class for all UI controls that are not dialogs, this class implements
* the Native functionality of Ti.UI.View
*
* This class has dual functionality.
*
* 1. It implements the native View functionality inherited by all Ti classes
* that extend UI.VIew. This is done by managing an internal Container that
* contains the actual control of the derived class.
*
* 2. It also can be instanciated on it's own when using Ti.UI.createView
* In this case it's a pure container and the control_ member remains NULL
* Ti.UI.Window is another such pure container case where the NativePageObject
* has a Page instance that has the container_ from this class as content and
* also a NULL control_.
*/
class NativeControlObject : public NativeProxyObject
{
public:
static NativeControlObject* createView(TiObject* tiObject);
virtual NATIVE_TYPE getObjectType() const;
virtual NAHANDLE getNativeHandle() const;
virtual int initialize();
virtual int addChildNativeObject(NativeObject* obj);
virtual int removeChildNativeObject(NativeObject* obj);
virtual int finishLayout();
virtual void resize(float width, float height);
virtual int getPropertyValue(size_t propertyNumber, TiObject* obj);
virtual int getRect(TiObject* obj);
virtual int getSize(TiObject* obj);
virtual int getZIndex(TiObject* obj);
virtual int setAnchorPoint(TiObject* obj);
virtual int setBackgroundImage(TiObject* obj);
virtual int setBackgroundColor(TiObject* obj);
virtual int setBackgroundDisableColor(TiObject* obj);
virtual int setBottom(TiObject* obj);
virtual int setButtonNames(TiObject* obj);
virtual int setCancel(TiObject* obj);
virtual int setColor(TiObject* obj);
virtual int setContentHeight(TiObject* obj);
virtual int setContentWidth(TiObject* obj);
virtual int setData(TiObject* obj);
virtual int setEnabled(TiObject* obj);
virtual int setEnableZoomControls(TiObject* obj);
virtual int setFont(TiObject* obj);
virtual int setHeight(TiObject* obj);
virtual int setHideLoadIndicator(TiObject* obj);
virtual int setHintText(TiObject* obj);
virtual int setHtml(TiObject* obj);
virtual int setIcon(TiObject* obj);
virtual int setImage(TiObject* obj);
virtual int setKeyboardType(TiObject* obj);
virtual int setLabel(TiObject* obj);
virtual int setLayout(TiObject* obj);
virtual int setLeft(TiObject* obj);
virtual int setLeftImage(TiObject* obj);
virtual int setLoading(TiObject* obj);
virtual int setMax(TiObject* obj);
virtual int setMaxDate(TiObject* obj);
virtual int setMessage(TiObject* obj);
virtual int setMin(TiObject* obj);
virtual int setMinDate(TiObject* obj);
virtual int setOpacity(TiObject* obj);
virtual int setOptions(TiObject* obj);
virtual int setOrientationModes(TiObject* obj);
virtual int setPasswordMask(TiObject* obj);
virtual int setPluginState(TiObject* obj);
virtual int setPropertyValue(size_t propertyNumber, TiObject* obj);
virtual int setRight(TiObject* obj);
virtual int setScalesPageToFit(TiObject* obj);
virtual int setScrollsToTop(TiObject* obj);
virtual int setShowScrollbars(TiObject* obj);
virtual int setSelectedIndex(TiObject* obj);
virtual int setText(TiObject* obj);
virtual int setTextAlign(TiObject* obj);
virtual int setTitle(TiObject* obj);
virtual int setType(TiObject* obj);
virtual int setTop(TiObject* obj);
virtual int setUrl(TiObject* obj);
virtual int setUserAgent(TiObject* obj);
virtual int setValue(TiObject* obj);
virtual int setVisibility(bool visible);
virtual int setVisible(TiObject* obj);
virtual int setWidth(TiObject* obj);
virtual int setWillHandleTouches(TiObject* obj);
virtual int setWindow(TiObject* obj);
virtual int setWordWrap(TiObject* obj);
virtual int startLayout();
virtual int setZIndex(TiObject* obj);
// MapView properties
virtual int setRegion(TiObject* obj);
virtual int setMapType(TiObject* obj);
virtual int setAnnotations(TiObject* obj);
//////////////////////
// Annotation properties
virtual int setPincolor(TiObject* obj);
virtual int setLatitude(TiObject* obj);
virtual int setLongitude(TiObject* obj);
virtual int setSubtitle(TiObject* obj);
virtual int setLeftView(TiObject* obj);
virtual int setRightView(TiObject* obj);
////////////////////////
// Media properties
virtual int getPlaying(TiObject* obj);
virtual int getPaused(TiObject* obj);
virtual int getProgress(TiObject* obj);
virtual int getRecording(TiObject* obj);
virtual int setBitRate(TiObject* obj);
virtual int setRepeatMode(TiObject* obj);
virtual int getVolume(TiObject* obj);
virtual int setVolume(TiObject* obj);
virtual int setAutoPlay(TiObject* obj);
////////////////////////
virtual void focus();
virtual void blur();
static int getColorComponents(TiObject* obj, float* r, float* g, float* b, float* a);
static int getBoolean(TiObject* obj, bool* value);
static int getFloat(TiObject* obj, float* value);
static int getInteger(TiObject* obj, int* value);
static int getStringArray(TiObject* obj, QVector<QString>& value);
static int getMapObject(TiObject* obj, QMap<QString, QString>& props);
static int getObjectArray(TiObject* obj, QVector<NativeObject*>& value);
static int getRegion(TiObject* obj, float* latitude, float* longitude);
static int getPoint(TiObject* obj, float* x, float* y);
static int getDataModel(TiObject* obj, QVector<QVariant>& dataModel);
static int getDateTime(TiObject* obj, QDateTime& dt);
virtual void updateLayout(QRectF rect);
// Tab properties
virtual int setActive(TiObject* obj);
virtual int isActive(TiObject* obj);
virtual int setDescription(TiObject* obj);
// TabGroup properties
virtual int setActiveTab(TiObject* obj);
virtual int getActiveTab(TiObject* obj);
virtual int getTabs(TiObject* obj);
// ScrollableView
virtual int setCurrentPage(TiObject* obj);
virtual int setDisableBounce(TiObject* obj);
virtual int setOverScrollMode(TiObject* obj);
virtual int setOverlayEnabled(TiObject* obj);
virtual int setPagingControlAlpha(TiObject* obj);
virtual int setPagingControlColor(TiObject* obj);
virtual int setPagingControlHeight(TiObject* obj);
virtual int setPagingControlOnTop(TiObject* obj);
virtual int setPagingControlTimeout(TiObject* obj);
virtual int setScrollingEnabled(TiObject* obj);
virtual int setShowPagingControl(TiObject* obj);
virtual int setViews(TiObject* obj);
// ImageButton
virtual int setImagePressed(TiObject* obj);
virtual int setImageDisabled(TiObject* obj);
// Show tab description
virtual int setShowTabsOnActionBar(TiObject* obj);
void addTiViewProxy(Ti::TiViewProxy*);
Ti::Layout::Node* layout() {
return &layoutNode_;
}
bb::cascades::Container* container_;
bool deferWidth_;
bool deferHeight_;
float opacity_;
protected:
explicit NativeControlObject(TiObject* tiObject, NATIVE_TYPE objType = N_TYPE_UNDEFINED);
virtual ~NativeControlObject();
virtual void setContainer(bb::cascades::Container* container);
virtual void setControl(bb::cascades::Control* control);
virtual void setupEvents(TiEventContainerFactory* containerFactory);
int addChildImpl(NativeObject* obj);
int removeChildImpl(NativeObject* obj);
static int setZOrder(bb::cascades::Container* container, bb::cascades::Control* control,
float zindex, bool zindexIsDefined);
struct Ti::Layout::Node layoutNode_;
private:
friend class NativePageObject;
friend class NativeWindowObject; // TODO(josh): we shouldn't have to abuse friends this way.
void addTouchEvent(const char* name, const QObject* source, const char* signal, TiEventContainer* container);
void updateLayoutProperty(Ti::Layout::ValueName name, TiObject* val);
bb::cascades::Control* control_;
bb::cascades::AbsoluteLayoutProperties* layout_;
bb::cascades::Color backgroundColor_;
bb::cascades::Color disabledBackgroundColor_;
NativeLayoutHandler* layoutHandler_;
QRectF rect_;
bool batchUpdating_;
NATIVE_TYPE objType_;
float ppi_; // pixels per inch
int displayWidth_;
int displayHeight_;
float lastWidth_;
float lastHeight_;
enum Ti::Layout::ValueType deferWidthType_;
enum Ti::Layout::ValueType deferHeightType_;
};
// Event handler for Ti.UI.View
class UIViewEventHandler : public QObject {
Q_OBJECT
public:
explicit UIViewEventHandler(const bb::cascades::VisualNode* node) {
QObject::connect(node, SIGNAL(touch(bb::cascades::TouchEvent*)),
this, SLOT(dispatchTouch(bb::cascades::TouchEvent*)));
QObject::connect(node, SIGNAL(destroyed(QObject*)),
this, SLOT(onNodeDestroyed()));
connect(node, SIGNAL(focusedChanged(bool)), SLOT(focusedChanged(bool)));
}
private:
float startPointX;
float startPointY;
signals:
void click(float x, float y);
void touchStart(float x, float y);
void touchMove(float x, float y);
void touchEnd(float x, float y);
void touchCancel(float x, float y);
void focus();
void blur();
private slots:
void dispatchTouch(bb::cascades::TouchEvent* event) {
float x = event->localX(),
y = event->localY();
// TODO(josh): Include coordinates of "click".
switch (event->touchType()) {
case bb::cascades::TouchType::Down:
startPointX = x;
startPointY = y;
emit touchStart(x, y);
break;
case bb::cascades::TouchType::Move:
emit touchMove(x, y);
break;
case bb::cascades::TouchType::Up:
// Give a little slack, otherwise it wont fire on device
if(startPointX > x - 20 && startPointX < x + 20 && startPointY > y - 20 && startPointY < y + 20) {
emit click(x, y);
break;
}
emit touchEnd(x, y);
break;
case bb::cascades::TouchType::Cancel:
emit touchCancel(x, y);
break;
}
}
void focusedChanged(bool focused) {
if (focused) {
emit focus();
} else {
emit blur();
}
}
void onNodeDestroyed() {
// Release this event handler once the node is destroyed.
delete this;
}
};
#endif /* NATIVECONTROLOBJECT_H_ */
|
appcelerator/titanium_mobile_blackberry
|
src/tibb/src/NativeControlObject.h
|
C
|
apache-2.0
| 11,452
|
// This is the main DLL file.
#include "stdafx.h"
#include "SDL2-Reference.h"
|
joefroh/SDLStuff
|
SDLTestSolutions/SDLJoeyTest/SDL2-Reference/SDL2-Reference.cpp
|
C++
|
apache-2.0
| 81
|
FROM tomcat:8.5-alpine
MAINTAINER spring-boot-hello-world.wyona.org
VOLUME /tmp
RUN rm -rf /usr/local/tomcat/webapps/ROOT
COPY target/hello-world-webapp-1.0.0-SNAPSHOT.war /usr/local/tomcat/webapps/ROOT.war
#FROM frolvlad/alpine-oraclejdk8:slim
#MAINTAINER spring-boot-hello-world.wyona.org
#VOLUME /tmp
#ADD target/hello-world-webapp-1.0.0-SNAPSHOT.jar app.jar
#RUN sh -c 'touch /app.jar'
#ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
#EXPOSE 8080
|
wyona/spring-boot-hello-world-rest
|
Dockerfile
|
Dockerfile
|
apache-2.0
| 504
|
class ProfileService {
constructor($http, $state, $rootScope, $q, TabsService, AddressService) {
this.$http = $http
this.$state = $state
this.$rootScope = $rootScope
this.$q = $q
this.TabsService = TabsService
this.AddressService = AddressService
this.username = 'User'
this.profile_set = false
this.profile = {
mobileno: '',
password: '',
first_name: 'User',
last_name: '',
male: true,
female: false,
email_id: '',
referral_id: ''
}
this.credits = {
profile_credits : 0,
promo_credits: 0,
referral_credits : 0
}
this.gender = "M"
}
submitProfile(){
if(this.profile_set){
this.set_user_profile()
}else{
this.TabsService.myaccountTabs(false, false, false, false, false, false, false, false, false, false, true)
}
}
changeGender (male, female){
this.profile.male = male
this.profile.female = female
this.gender = "F"
if (male){
this.gender = "M"
}
}
update_profile(){
this.$http({
url : '/api/profile',
method: 'PUT',
data: {
'mobileno' : this.profile.mobileno,
'client_id' : "5",
'email_id': this.profile.email_id,
'gender': this.gender,
'first_name': this.profile.first_name,
'last_name': this.profile.last_name,
}
}).then((response) =>{
if(response.data.status === 'success'){
this.get_user_profile()
this.profile_set = true
this.$state.go("app.profile")
this.AddressService.getAddresses()
this.TabsService.myaccountTabs(false, false, false, false, false, true, false, false, false, false, false)
}
}, (error)=>{
})
}
set_user_profile(){
this.$http({
url : '/api/profile',
method: 'POST',
data: {
'mobileno' : this.profile.mobileno,
'client_id' : "5",
'email_id': this.profile.email_id,
'gender': this.gender,
'first_name': this.profile.first_name,
'last_name': this.profile.last_name,
}
}).then((response) =>{
if(response.data.status === 'success'){
this.get_user_profile()
this.profile_set = true
this.$state.go("app.profile")
this.AddressService.getAddresses()
this.TabsService.myaccountTabs(false, false, false, false, false, true, false, false, false, false, false)
}
}, (error)=>{
})
}
get_user_profile(){
let mobileno = localStorage.mobileno
this.profile.mobileno = mobileno
this.profile.password = '********'
let client_id = localStorage.client_id
this.$http({
url: `/api/profile?mobileno=${mobileno}&client_id=${client_id}`,
method: 'GET'
}).then((response)=>{
if(response.data.status === 'success'){
this.profile_set = true
let info = response.data.data.personal_info
let saved_address = response.data.data.saved_address
let credits = response.data.data.credits
this.profile = {
email_id : info.email_id,
mobileno : info.mobileno,
first_name : info.first_name,
last_name : info.last_name,
male : true,
female : false,
referral_id : response.data.data.referral_id
}
localStorage.mobileno = info.mobileno
this.credits = {
profile_credits : credits.profile_credits,
promo_credits : credits.promo_credits,
referral_credits : credits.referral_credits
}
this.gender = info.gender
if (this.gender === "F"){
this.profile.male = false
this.profile.female = true
}
this.username = this.profile.first_name
this.AddressService.getAddresses()
}else if(response.data.status === 'failed'){
this.profile_set = false
this.$state.go("app.profile")
this.TabsService.myaccountTabs(false, false, false, false, false, false, false, false, false, true, false)
}
}, (error)=>{
})
}
}
ProfileService.$inject = ['$http', '$state', '$rootScope', '$q', 'TabsService', 'AddressService']
angular.module('zigfo').service('ProfileService', ProfileService)
|
mithuntantri/zigfo
|
client/web/static/js/services/profile_service.js
|
JavaScript
|
apache-2.0
| 4,229
|
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkRescaleIntensityImageFilter_h
#define itkRescaleIntensityImageFilter_h
#include "itkUnaryFunctorImageFilter.h"
#include "itkMath.h"
namespace itk
{
// This functor class applies a linear transformation A.x + B
// to input values.
namespace Functor
{
template< typename TInput, typename TOutput >
class ITK_TEMPLATE_EXPORT IntensityLinearTransform
{
public:
typedef typename NumericTraits< TInput >::RealType RealType;
IntensityLinearTransform()
{
m_Factor = 1.0;
m_Offset = 0.0;
m_Minimum = NumericTraits< TOutput >::NonpositiveMin();
m_Maximum = NumericTraits< TOutput >::max();
#if defined (__GNUC__) && (__GNUC__ == 5) && (__GNUC_MINOR__ == 2) && defined(NDEBUG) && defined(__i386__)
m_EpsilonCompensation = static_cast<RealType>(std::numeric_limits<TOutput>::epsilon());
if (m_EpsilonCompensation == 0)
{
m_EpsilonCompensation = std::numeric_limits<RealType>::epsilon();
}
#endif
}
~IntensityLinearTransform() {}
void SetFactor(RealType a) { m_Factor = a; }
void SetOffset(RealType b) { m_Offset = b; }
void SetMinimum(TOutput min) { m_Minimum = min; }
void SetMaximum(TOutput max) { m_Maximum = max; }
bool operator!=(const IntensityLinearTransform & other) const
{
if ( Math::NotExactlyEquals(m_Factor, other.m_Factor)
|| Math::NotExactlyEquals(m_Offset, other.m_Offset)
|| Math::NotExactlyEquals(m_Maximum, other.m_Maximum)
|| Math::NotExactlyEquals(m_Minimum, other.m_Minimum) )
{
return true;
}
return false;
}
bool operator==(const IntensityLinearTransform & other) const
{
return !( *this != other );
}
inline TOutput operator()(const TInput & x) const
{
#if defined (__GNUC__) && (__GNUC__ == 5) && (__GNUC_MINOR__ == 2) && defined(NDEBUG) && defined(__i386__)
RealType value = static_cast< RealType >( x ) * m_Factor + m_Offset + m_EpsilonCompensation;
TOutput result = static_cast< TOutput >( value ) - static_cast< TOutput >( m_EpsilonCompensation );
#else
RealType value = static_cast< RealType >( x ) * m_Factor + m_Offset;
TOutput result = static_cast< TOutput >( value );
#endif
result = ( result > m_Maximum ) ? m_Maximum : result;
result = ( result < m_Minimum ) ? m_Minimum : result;
return result;
}
private:
RealType m_Factor;
RealType m_Offset;
TOutput m_Maximum;
TOutput m_Minimum;
#if defined (__GNUC__) && (__GNUC__ == 5) && (__GNUC_MINOR__ == 2) && defined(NDEBUG) && defined(__i386__)
RealType m_EpsilonCompensation;
#endif
};
} // end namespace functor
/** \class RescaleIntensityImageFilter
* \brief Applies a linear transformation to the intensity levels of the
* input Image.
*
* RescaleIntensityImageFilter applies pixel-wise a linear transformation
* to the intensity values of input image pixels. The linear transformation
* is defined by the user in terms of the minimum and maximum values that
* the output image should have.
*
* The following equation gives the mapping of the intensity values
*
* \par
* \f[
* outputPixel = ( inputPixel - inputMin) \cdot
* \frac{(outputMax - outputMin )}{(inputMax - inputMin)} + outputMin
* \f]
*
* All computations are performed in the precison of the input pixel's
* RealType. Before assigning the computed value to the output pixel.
*
* NOTE: In this filter the minimum and maximum values of the input image are
* computed internally using the MinimumMaximumImageCalculator. Users are not
* supposed to set those values in this filter. If you need a filter where you
* can set the minimum and maximum values of the input, please use the
* IntensityWindowingImageFilter. If you want a filter that can use a
* user-defined linear transformation for the intensity, then please use the
* ShiftScaleImageFilter.
*
* \sa IntensityWindowingImageFilter
*
* \ingroup IntensityImageFilters MultiThreaded
*
* \ingroup ITKImageIntensity
*
* \wiki
* \wikiexample{ImageProcessing/RescaleIntensityImageFilter,Rescale the intensity values of an image to a specified range}
* \endwiki
*/
template< typename TInputImage, typename TOutputImage = TInputImage >
class ITK_TEMPLATE_EXPORT RescaleIntensityImageFilter:
public
UnaryFunctorImageFilter< TInputImage, TOutputImage,
Functor::IntensityLinearTransform<
typename TInputImage::PixelType,
typename TOutputImage::PixelType > >
{
public:
/** Standard class typedefs. */
typedef RescaleIntensityImageFilter Self;
typedef UnaryFunctorImageFilter<
TInputImage, TOutputImage,
Functor::IntensityLinearTransform<
typename TInputImage::PixelType,
typename TOutputImage::PixelType > > Superclass;
typedef SmartPointer< Self > Pointer;
typedef SmartPointer< const Self > ConstPointer;
typedef typename TOutputImage::PixelType OutputPixelType;
typedef typename TInputImage::PixelType InputPixelType;
typedef typename NumericTraits< InputPixelType >::RealType RealType;
/** Method for creation through the object factory. */
itkNewMacro(Self);
/** Runtime information support. */
itkTypeMacro(RescaleIntensityImageFilter,
UnaryFunctorImageFilter);
itkSetMacro(OutputMinimum, OutputPixelType);
itkSetMacro(OutputMaximum, OutputPixelType);
itkGetConstReferenceMacro(OutputMinimum, OutputPixelType);
itkGetConstReferenceMacro(OutputMaximum, OutputPixelType);
/** Get the Scale and Shift used for the linear transformation
of gray level values.
\warning These Values are only valid after the filter has been updated */
itkGetConstReferenceMacro(Scale, RealType);
itkGetConstReferenceMacro(Shift, RealType);
/** Get the Minimum and Maximum values of the input image.
\warning These Values are only valid after the filter has been updated */
itkGetConstReferenceMacro(InputMinimum, InputPixelType);
itkGetConstReferenceMacro(InputMaximum, InputPixelType);
/** Process to execute before entering the multithreaded section */
void BeforeThreadedGenerateData() ITK_OVERRIDE;
/** Print internal ivars */
void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
#ifdef ITK_USE_CONCEPT_CHECKING
// Begin concept checking
itkConceptMacro( InputHasNumericTraitsCheck,
( Concept::HasNumericTraits< InputPixelType > ) );
itkConceptMacro( OutputHasNumericTraitsCheck,
( Concept::HasNumericTraits< OutputPixelType > ) );
itkConceptMacro( RealTypeMultiplyOperatorCheck,
( Concept::MultiplyOperator< RealType > ) );
itkConceptMacro( RealTypeAdditiveOperatorsCheck,
( Concept::AdditiveOperators< RealType > ) );
// End concept checking
#endif
protected:
RescaleIntensityImageFilter();
virtual ~RescaleIntensityImageFilter() {}
private:
ITK_DISALLOW_COPY_AND_ASSIGN(RescaleIntensityImageFilter);
RealType m_Scale;
RealType m_Shift;
InputPixelType m_InputMinimum;
InputPixelType m_InputMaximum;
OutputPixelType m_OutputMinimum;
OutputPixelType m_OutputMaximum;
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
#include "itkRescaleIntensityImageFilter.hxx"
#endif
#endif
|
PlutoniumHeart/ITK
|
Modules/Filtering/ImageIntensity/include/itkRescaleIntensityImageFilter.h
|
C
|
apache-2.0
| 8,043
|
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.redshift.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeAccountAttributes" target="_top">AWS
* API Documentation</a>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeAccountAttributesResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable {
/**
* <p>
* A list of attributes assigned to an account.
* </p>
*/
private com.amazonaws.internal.SdkInternalList<AccountAttribute> accountAttributes;
/**
* <p>
* A list of attributes assigned to an account.
* </p>
*
* @return A list of attributes assigned to an account.
*/
public java.util.List<AccountAttribute> getAccountAttributes() {
if (accountAttributes == null) {
accountAttributes = new com.amazonaws.internal.SdkInternalList<AccountAttribute>();
}
return accountAttributes;
}
/**
* <p>
* A list of attributes assigned to an account.
* </p>
*
* @param accountAttributes
* A list of attributes assigned to an account.
*/
public void setAccountAttributes(java.util.Collection<AccountAttribute> accountAttributes) {
if (accountAttributes == null) {
this.accountAttributes = null;
return;
}
this.accountAttributes = new com.amazonaws.internal.SdkInternalList<AccountAttribute>(accountAttributes);
}
/**
* <p>
* A list of attributes assigned to an account.
* </p>
* <p>
* <b>NOTE:</b> This method appends the values to the existing list (if any). Use
* {@link #setAccountAttributes(java.util.Collection)} or {@link #withAccountAttributes(java.util.Collection)} if
* you want to override the existing values.
* </p>
*
* @param accountAttributes
* A list of attributes assigned to an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAccountAttributesResult withAccountAttributes(AccountAttribute... accountAttributes) {
if (this.accountAttributes == null) {
setAccountAttributes(new com.amazonaws.internal.SdkInternalList<AccountAttribute>(accountAttributes.length));
}
for (AccountAttribute ele : accountAttributes) {
this.accountAttributes.add(ele);
}
return this;
}
/**
* <p>
* A list of attributes assigned to an account.
* </p>
*
* @param accountAttributes
* A list of attributes assigned to an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAccountAttributesResult withAccountAttributes(java.util.Collection<AccountAttribute> accountAttributes) {
setAccountAttributes(accountAttributes);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccountAttributes() != null)
sb.append("AccountAttributes: ").append(getAccountAttributes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeAccountAttributesResult == false)
return false;
DescribeAccountAttributesResult other = (DescribeAccountAttributesResult) obj;
if (other.getAccountAttributes() == null ^ this.getAccountAttributes() == null)
return false;
if (other.getAccountAttributes() != null && other.getAccountAttributes().equals(this.getAccountAttributes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAccountAttributes() == null) ? 0 : getAccountAttributes().hashCode());
return hashCode;
}
@Override
public DescribeAccountAttributesResult clone() {
try {
return (DescribeAccountAttributesResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}
|
aws/aws-sdk-java
|
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/DescribeAccountAttributesResult.java
|
Java
|
apache-2.0
| 5,507
|
<?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
namespace Magento\Framework\Object;
class MapperTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Magento\Framework\Object\Mapper
*/
protected $mapper;
/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
protected $fromMock;
/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
protected $toMock;
protected function setUp()
{
$this->fromMock = $this->getMock('Magento\Framework\Object', [], [], '', false);
$this->toMock = $this->getMock('Magento\Framework\Object', [], [], '', false);
$this->mapper = new \Magento\Framework\Object\Mapper();
}
public function testAccumulateByMapWhenToIsArrayFromIsObject()
{
$map['key'] = 'map_value';
$to['key'] = 'from_value';
$default['new_key'] = 'default_value';
$this->fromMock->expects($this->once())->method('hasData')->with('key')->will($this->returnValue(true));
$this->fromMock->expects($this->once())->method('getData')->with('key')->will($this->returnValue('from_value'));
$expected['key'] = 'from_value';
$expected['map_value'] = 'from_value';
$expected['new_key'] = 'default_value';
$this->assertEquals($expected, $this->mapper->accumulateByMap($this->fromMock, $to, $map, $default));
}
public function testAccumulateByMapWhenToAndFromAreObjects()
{
$from = [
$this->fromMock,
'getData',
];
$to = [
$this->toMock,
'setData',
];
$default = [0];
$map['key'] = ['value'];
$this->fromMock->expects($this->once())->method('hasData')->with('key')->will($this->returnValue(false));
$this->fromMock->expects($this->once())->method('getData')->with('key')->will($this->returnValue(true));
$this->assertEquals($this->toMock, $this->mapper->accumulateByMap($from, $to, $map, $default));
}
public function testAccumulateByMapWhenFromIsArrayToIsObject()
{
$map['key'] = 'map_value';
$from['key'] = 'from_value';
$default['new_key'] = 'default_value';
$this->toMock->expects($this->exactly(2))->method('setData');
$this->assertEquals($this->toMock, $this->mapper->accumulateByMap($from, $this->toMock, $map, $default));
}
public function testAccumulateByMapFromAndToAreArrays()
{
$from['value'] = 'from_value';
$map[false] = 'value';
$to['key'] = 'to_value';
$default['new_key'] = 'value';
$expected['key'] = 'to_value';
$expected['value'] = 'from_value';
$expected['new_key'] = 'value';
$this->assertEquals($expected, $this->mapper->accumulateByMap($from, $to, $map, $default));
}
}
|
webadvancedservicescom/magento
|
dev/tests/unit/testsuite/Magento/Framework/Object/MapperTest.php
|
PHP
|
apache-2.0
| 2,869
|
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.woltage.irssiconnectbot.util;
import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.woltage.irssiconnectbot.bean.HostBean;
import org.woltage.irssiconnectbot.bean.PortForwardBean;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.util.Log;
import com.trilead.ssh2.KnownHosts;
/**
* Contains information about various SSH hosts, include public hostkey if known
* from previous sessions.
*
* @author jsharkey
*/
public class HostDatabase extends RobustSQLiteOpenHelper {
public final static String TAG = "ConnectBot.HostDatabase";
public final static String DB_NAME = "hosts";
public final static int DB_VERSION = 22;
public final static String TABLE_HOSTS = "hosts";
public final static String FIELD_HOST_NICKNAME = "nickname";
public final static String FIELD_HOST_PROTOCOL = "protocol";
public final static String FIELD_HOST_USERNAME = "username";
public final static String FIELD_HOST_HOSTNAME = "hostname";
public final static String FIELD_HOST_PORT = "port";
public final static String FIELD_HOST_HOSTKEYALGO = "hostkeyalgo";
public final static String FIELD_HOST_HOSTKEY = "hostkey";
public final static String FIELD_HOST_LASTCONNECT = "lastconnect";
public final static String FIELD_HOST_COLOR = "color";
public final static String FIELD_HOST_USEKEYS = "usekeys";
public final static String FIELD_HOST_USEAUTHAGENT = "useauthagent";
public final static String FIELD_HOST_POSTLOGIN = "postlogin";
public final static String FIELD_HOST_PUBKEYID = "pubkeyid";
public final static String FIELD_HOST_WANTSESSION = "wantsession";
public final static String FIELD_HOST_DELKEY = "delkey";
public final static String FIELD_HOST_FONTSIZE = "fontsize";
public final static String FIELD_HOST_COMPRESSION = "compression";
public final static String FIELD_HOST_ENCODING = "encoding";
public final static String FIELD_HOST_STAYCONNECTED = "stayconnected";
public final static String TABLE_PORTFORWARDS = "portforwards";
public final static String FIELD_PORTFORWARD_HOSTID = "hostid";
public final static String FIELD_PORTFORWARD_NICKNAME = "nickname";
public final static String FIELD_PORTFORWARD_TYPE = "type";
public final static String FIELD_PORTFORWARD_SOURCEPORT = "sourceport";
public final static String FIELD_PORTFORWARD_DESTADDR = "destaddr";
public final static String FIELD_PORTFORWARD_DESTPORT = "destport";
public final static String TABLE_COLORS = "colors";
public final static String FIELD_COLOR_SCHEME = "scheme";
public final static String FIELD_COLOR_NUMBER = "number";
public final static String FIELD_COLOR_VALUE = "value";
public final static String TABLE_COLOR_DEFAULTS = "colorDefaults";
public final static String FIELD_COLOR_FG = "fg";
public final static String FIELD_COLOR_BG = "bg";
public final static int DEFAULT_FG_COLOR = 7;
public final static int DEFAULT_BG_COLOR = 0;
public final static String COLOR_RED = "red";
public final static String COLOR_GREEN = "green";
public final static String COLOR_BLUE = "blue";
public final static String COLOR_GRAY = "gray";
public final static String PORTFORWARD_LOCAL = "local";
public final static String PORTFORWARD_REMOTE = "remote";
public final static String PORTFORWARD_DYNAMIC4 = "dynamic4";
public final static String PORTFORWARD_DYNAMIC5 = "dynamic5";
public final static String DELKEY_DEL = "del";
public final static String DELKEY_BACKSPACE = "backspace";
public final static String AUTHAGENT_NO = "no";
public final static String AUTHAGENT_CONFIRM = "confirm";
public final static String AUTHAGENT_YES = "yes";
public final static String ENCODING_DEFAULT = Charset.defaultCharset().name();
public final static long PUBKEYID_NEVER = -2;
public final static long PUBKEYID_ANY = -1;
public static final int DEFAULT_COLOR_SCHEME = 0;
// Table creation strings
public static final String CREATE_TABLE_COLOR_DEFAULTS =
"CREATE TABLE " + TABLE_COLOR_DEFAULTS
+ " (" + FIELD_COLOR_SCHEME + " INTEGER NOT NULL, "
+ FIELD_COLOR_FG + " INTEGER NOT NULL DEFAULT " + DEFAULT_FG_COLOR + ", "
+ FIELD_COLOR_BG + " INTEGER NOT NULL DEFAULT " + DEFAULT_BG_COLOR + ")";
public static final String CREATE_TABLE_COLOR_DEFAULTS_INDEX =
"CREATE INDEX " + TABLE_COLOR_DEFAULTS + FIELD_COLOR_SCHEME + "index ON "
+ TABLE_COLOR_DEFAULTS + " (" + FIELD_COLOR_SCHEME + ");";
private static final String WHERE_SCHEME_AND_COLOR = FIELD_COLOR_SCHEME + " = ? AND "
+ FIELD_COLOR_NUMBER + " = ?";
static {
addTableName(TABLE_HOSTS);
addTableName(TABLE_PORTFORWARDS);
addIndexName(TABLE_PORTFORWARDS + FIELD_PORTFORWARD_HOSTID + "index");
addTableName(TABLE_COLORS);
addIndexName(TABLE_COLORS + FIELD_COLOR_SCHEME + "index");
addTableName(TABLE_COLOR_DEFAULTS);
addIndexName(TABLE_COLOR_DEFAULTS + FIELD_COLOR_SCHEME + "index");
}
public static final Object[] dbLock = new Object[0];
public HostDatabase(Context context) {
super(context, DB_NAME, null, DB_VERSION);
getWritableDatabase().close();
}
@Override
public void onCreate(SQLiteDatabase db) {
super.onCreate(db);
db.execSQL("CREATE TABLE " + TABLE_HOSTS
+ " (_id INTEGER PRIMARY KEY, "
+ FIELD_HOST_NICKNAME + " TEXT, "
+ FIELD_HOST_PROTOCOL + " TEXT DEFAULT 'ssh', "
+ FIELD_HOST_USERNAME + " TEXT, "
+ FIELD_HOST_HOSTNAME + " TEXT, "
+ FIELD_HOST_PORT + " INTEGER, "
+ FIELD_HOST_HOSTKEYALGO + " TEXT, "
+ FIELD_HOST_HOSTKEY + " BLOB, "
+ FIELD_HOST_LASTCONNECT + " INTEGER, "
+ FIELD_HOST_COLOR + " TEXT, "
+ FIELD_HOST_USEKEYS + " TEXT, "
+ FIELD_HOST_USEAUTHAGENT + " TEXT, "
+ FIELD_HOST_POSTLOGIN + " TEXT, "
+ FIELD_HOST_PUBKEYID + " INTEGER DEFAULT " + PUBKEYID_ANY + ", "
+ FIELD_HOST_DELKEY + " TEXT DEFAULT '" + DELKEY_DEL + "', "
+ FIELD_HOST_FONTSIZE + " INTEGER, "
+ FIELD_HOST_WANTSESSION + " TEXT DEFAULT '" + Boolean.toString(true) + "', "
+ FIELD_HOST_COMPRESSION + " TEXT DEFAULT '" + Boolean.toString(false) + "', "
+ FIELD_HOST_ENCODING + " TEXT DEFAULT '" + ENCODING_DEFAULT + "', "
+ FIELD_HOST_STAYCONNECTED + " TEXT)");
db.execSQL("CREATE TABLE " + TABLE_PORTFORWARDS
+ " (_id INTEGER PRIMARY KEY, "
+ FIELD_PORTFORWARD_HOSTID + " INTEGER, "
+ FIELD_PORTFORWARD_NICKNAME + " TEXT, "
+ FIELD_PORTFORWARD_TYPE + " TEXT NOT NULL DEFAULT " + PORTFORWARD_LOCAL + ", "
+ FIELD_PORTFORWARD_SOURCEPORT + " INTEGER NOT NULL DEFAULT 8080, "
+ FIELD_PORTFORWARD_DESTADDR + " TEXT, "
+ FIELD_PORTFORWARD_DESTPORT + " TEXT)");
db.execSQL("CREATE INDEX " + TABLE_PORTFORWARDS + FIELD_PORTFORWARD_HOSTID + "index ON "
+ TABLE_PORTFORWARDS + " (" + FIELD_PORTFORWARD_HOSTID + ");");
db.execSQL("CREATE TABLE " + TABLE_COLORS
+ " (_id INTEGER PRIMARY KEY, "
+ FIELD_COLOR_NUMBER + " INTEGER, "
+ FIELD_COLOR_VALUE + " INTEGER, "
+ FIELD_COLOR_SCHEME + " INTEGER)");
db.execSQL("CREATE INDEX " + TABLE_COLORS + FIELD_COLOR_SCHEME + "index ON "
+ TABLE_COLORS + " (" + FIELD_COLOR_SCHEME + ");");
db.execSQL(CREATE_TABLE_COLOR_DEFAULTS);
db.execSQL(CREATE_TABLE_COLOR_DEFAULTS_INDEX);
}
@Override
public void onRobustUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) throws SQLiteException {
// Versions of the database before the Android Market release will be
// shot without warning.
if (oldVersion <= 9) {
db.execSQL("DROP TABLE IF EXISTS " + TABLE_HOSTS);
onCreate(db);
return;
}
switch (oldVersion) {
case 10:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_PUBKEYID + " INTEGER DEFAULT " + PUBKEYID_ANY);
case 11:
db.execSQL("CREATE TABLE " + TABLE_PORTFORWARDS
+ " (_id INTEGER PRIMARY KEY, "
+ FIELD_PORTFORWARD_HOSTID + " INTEGER, "
+ FIELD_PORTFORWARD_NICKNAME + " TEXT, "
+ FIELD_PORTFORWARD_TYPE + " TEXT NOT NULL DEFAULT " + PORTFORWARD_LOCAL + ", "
+ FIELD_PORTFORWARD_SOURCEPORT + " INTEGER NOT NULL DEFAULT 8080, "
+ FIELD_PORTFORWARD_DESTADDR + " TEXT, "
+ FIELD_PORTFORWARD_DESTPORT + " INTEGER)");
case 12:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_WANTSESSION + " TEXT DEFAULT '" + Boolean.toString(true) + "'");
case 13:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_COMPRESSION + " TEXT DEFAULT '" + Boolean.toString(false) + "'");
case 14:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_ENCODING + " TEXT DEFAULT '" + ENCODING_DEFAULT + "'");
case 15:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_PROTOCOL + " TEXT DEFAULT 'ssh'");
case 16:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_DELKEY + " TEXT DEFAULT '" + DELKEY_DEL + "'");
case 17:
db.execSQL("CREATE INDEX " + TABLE_PORTFORWARDS + FIELD_PORTFORWARD_HOSTID + "index ON "
+ TABLE_PORTFORWARDS + " (" + FIELD_PORTFORWARD_HOSTID + ");");
// Add colors
db.execSQL("CREATE TABLE " + TABLE_COLORS
+ " (_id INTEGER PRIMARY KEY, "
+ FIELD_COLOR_NUMBER + " INTEGER, "
+ FIELD_COLOR_VALUE + " INTEGER, "
+ FIELD_COLOR_SCHEME + " INTEGER)");
db.execSQL("CREATE INDEX " + TABLE_COLORS + FIELD_COLOR_SCHEME + "index ON "
+ TABLE_COLORS + " (" + FIELD_COLOR_SCHEME + ");");
case 18:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_USEAUTHAGENT + " TEXT DEFAULT '" + AUTHAGENT_NO + "'");
case 19:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_STAYCONNECTED + " TEXT");
case 20:
db.execSQL("ALTER TABLE " + TABLE_HOSTS
+ " ADD COLUMN " + FIELD_HOST_FONTSIZE + " INTEGER");
case 21:
db.execSQL("DROP TABLE " + TABLE_COLOR_DEFAULTS);
db.execSQL(CREATE_TABLE_COLOR_DEFAULTS);
db.execSQL(CREATE_TABLE_COLOR_DEFAULTS_INDEX);
}
}
/**
* Touch a specific host to update its "last connected" field.
* @param nickname Nickname field of host to update
*/
public void touchHost(HostBean host) {
long now = System.currentTimeMillis() / 1000;
ContentValues values = new ContentValues();
values.put(FIELD_HOST_LASTCONNECT, now);
synchronized (dbLock) {
SQLiteDatabase db = this.getWritableDatabase();
db.update(TABLE_HOSTS, values, "_id = ?", new String[] { String.valueOf(host.getId()) });
}
}
/**
* Create a new host using the given parameters.
*/
public HostBean saveHost(HostBean host) {
long id;
synchronized (dbLock) {
SQLiteDatabase db = this.getWritableDatabase();
id = db.insert(TABLE_HOSTS, null, host.getValues());
}
host.setId(id);
return host;
}
/**
* Update a field in a host record.
*/
public boolean updateFontSize(HostBean host) {
long id = host.getId();
if (id < 0)
return false;
ContentValues updates = new ContentValues();
updates.put(FIELD_HOST_FONTSIZE, host.getFontSize());
synchronized (dbLock) {
SQLiteDatabase db = getWritableDatabase();
db.update(TABLE_HOSTS, updates, "_id = ?",
new String[] { String.valueOf(id) });
}
return true;
}
/**
* Delete a specific host by its <code>_id</code> value.
*/
public void deleteHost(HostBean host) {
if (host.getId() < 0)
return;
synchronized (dbLock) {
SQLiteDatabase db = this.getWritableDatabase();
db.delete(TABLE_HOSTS, "_id = ?", new String[] { String.valueOf(host.getId()) });
}
}
/**
* Return a cursor that contains information about all known hosts.
* @param sortColors If true, sort by color, otherwise sort by nickname.
*/
public List<HostBean> getHosts(boolean sortColors) {
String sortField = sortColors ? FIELD_HOST_COLOR : FIELD_HOST_NICKNAME;
List<HostBean> hosts;
synchronized (dbLock) {
SQLiteDatabase db = this.getReadableDatabase();
Cursor c = db.query(TABLE_HOSTS, null, null, null, null, null, sortField + " ASC");
hosts = createHostBeans(c);
c.close();
}
return hosts;
}
/**
* @param hosts
* @param c
*/
private List<HostBean> createHostBeans(Cursor c) {
List<HostBean> hosts = new LinkedList<HostBean>();
final int COL_ID = c.getColumnIndexOrThrow("_id"),
COL_NICKNAME = c.getColumnIndexOrThrow(FIELD_HOST_NICKNAME),
COL_PROTOCOL = c.getColumnIndexOrThrow(FIELD_HOST_PROTOCOL),
COL_USERNAME = c.getColumnIndexOrThrow(FIELD_HOST_USERNAME),
COL_HOSTNAME = c.getColumnIndexOrThrow(FIELD_HOST_HOSTNAME),
COL_PORT = c.getColumnIndexOrThrow(FIELD_HOST_PORT),
COL_LASTCONNECT = c.getColumnIndexOrThrow(FIELD_HOST_LASTCONNECT),
COL_COLOR = c.getColumnIndexOrThrow(FIELD_HOST_COLOR),
COL_USEKEYS = c.getColumnIndexOrThrow(FIELD_HOST_USEKEYS),
COL_USEAUTHAGENT = c.getColumnIndexOrThrow(FIELD_HOST_USEAUTHAGENT),
COL_POSTLOGIN = c.getColumnIndexOrThrow(FIELD_HOST_POSTLOGIN),
COL_PUBKEYID = c.getColumnIndexOrThrow(FIELD_HOST_PUBKEYID),
COL_WANTSESSION = c.getColumnIndexOrThrow(FIELD_HOST_WANTSESSION),
COL_DELKEY = c.getColumnIndexOrThrow(FIELD_HOST_DELKEY),
COL_FONTSIZE = c.getColumnIndexOrThrow(FIELD_HOST_FONTSIZE),
COL_COMPRESSION = c.getColumnIndexOrThrow(FIELD_HOST_COMPRESSION),
COL_ENCODING = c.getColumnIndexOrThrow(FIELD_HOST_ENCODING),
COL_STAYCONNECTED = c.getColumnIndexOrThrow(FIELD_HOST_STAYCONNECTED);
while (c.moveToNext()) {
HostBean host = new HostBean();
host.setId(c.getLong(COL_ID));
host.setNickname(c.getString(COL_NICKNAME));
host.setProtocol(c.getString(COL_PROTOCOL));
host.setUsername(c.getString(COL_USERNAME));
host.setHostname(c.getString(COL_HOSTNAME));
host.setPort(c.getInt(COL_PORT));
host.setLastConnect(c.getLong(COL_LASTCONNECT));
host.setColor(c.getString(COL_COLOR));
host.setUseKeys(Boolean.valueOf(c.getString(COL_USEKEYS)));
host.setUseAuthAgent(c.getString(COL_USEAUTHAGENT));
host.setPostLogin(c.getString(COL_POSTLOGIN));
host.setPubkeyId(c.getLong(COL_PUBKEYID));
host.setWantSession(Boolean.valueOf(c.getString(COL_WANTSESSION)));
host.setDelKey(c.getString(COL_DELKEY));
host.setFontSize(c.getInt(COL_FONTSIZE));
host.setCompression(Boolean.valueOf(c.getString(COL_COMPRESSION)));
host.setEncoding(c.getString(COL_ENCODING));
host.setStayConnected(Boolean.valueOf(c.getString(COL_STAYCONNECTED)));
hosts.add(host);
}
return hosts;
}
/**
* @param c
* @return
*/
private HostBean getFirstHostBean(Cursor c) {
HostBean host = null;
List<HostBean> hosts = createHostBeans(c);
if (hosts.size() > 0)
host = hosts.get(0);
c.close();
return host;
}
/**
* @param nickname
* @param protocol
* @param username
* @param hostname
* @param hostname2
* @param port
* @return
*/
public HostBean findHost(Map<String, String> selection) {
StringBuilder selectionBuilder = new StringBuilder();
Iterator<Entry<String, String>> i = selection.entrySet().iterator();
List<String> selectionValuesList = new LinkedList<String>();
int n = 0;
while (i.hasNext()) {
Entry<String, String> entry = i.next();
if (entry.getValue() == null)
continue;
if (n++ > 0)
selectionBuilder.append(" AND ");
selectionBuilder.append(entry.getKey())
.append(" = ?");
selectionValuesList.add(entry.getValue());
}
String selectionValues[] = new String[selectionValuesList.size()];
selectionValuesList.toArray(selectionValues);
selectionValuesList = null;
HostBean host;
synchronized (dbLock) {
SQLiteDatabase db = getReadableDatabase();
Cursor c = db.query(TABLE_HOSTS, null,
selectionBuilder.toString(),
selectionValues,
null, null, null);
host = getFirstHostBean(c);
}
return host;
}
/**
* @param hostId
* @return
*/
public HostBean findHostById(long hostId) {
HostBean host;
synchronized (dbLock) {
SQLiteDatabase db = getReadableDatabase();
Cursor c = db.query(TABLE_HOSTS, null,
"_id = ?", new String[] { String.valueOf(hostId) },
null, null, null);
host = getFirstHostBean(c);
}
return host;
}
/**
* Record the given hostkey into database under this nickname.
* @param hostname
* @param port
* @param hostkeyalgo
* @param hostkey
*/
public void saveKnownHost(String hostname, int port, String hostkeyalgo, byte[] hostkey) {
ContentValues values = new ContentValues();
values.put(FIELD_HOST_HOSTKEYALGO, hostkeyalgo);
values.put(FIELD_HOST_HOSTKEY, hostkey);
synchronized (dbLock) {
SQLiteDatabase db = getReadableDatabase();
db.update(TABLE_HOSTS, values,
FIELD_HOST_HOSTNAME + " = ? AND " + FIELD_HOST_PORT + " = ?",
new String[] { hostname, String.valueOf(port) });
Log.d(TAG, String.format("Finished saving hostkey information for '%s'", hostname));
}
}
/**
* Build list of known hosts for Trilead library.
* @return
*/
public KnownHosts getKnownHosts() {
KnownHosts known = new KnownHosts();
synchronized (dbLock) {
SQLiteDatabase db = this.getReadableDatabase();
Cursor c = db.query(TABLE_HOSTS, new String[] { FIELD_HOST_HOSTNAME,
FIELD_HOST_PORT, FIELD_HOST_HOSTKEYALGO, FIELD_HOST_HOSTKEY },
null, null, null, null, null);
if (c != null) {
int COL_HOSTNAME = c.getColumnIndexOrThrow(FIELD_HOST_HOSTNAME),
COL_PORT = c.getColumnIndexOrThrow(FIELD_HOST_PORT),
COL_HOSTKEYALGO = c.getColumnIndexOrThrow(FIELD_HOST_HOSTKEYALGO),
COL_HOSTKEY = c.getColumnIndexOrThrow(FIELD_HOST_HOSTKEY);
while (c.moveToNext()) {
String hostname = c.getString(COL_HOSTNAME),
hostkeyalgo = c.getString(COL_HOSTKEYALGO);
int port = c.getInt(COL_PORT);
byte[] hostkey = c.getBlob(COL_HOSTKEY);
if (hostkeyalgo == null || hostkeyalgo.length() == 0) continue;
if (hostkey == null || hostkey.length == 0) continue;
try {
known.addHostkey(new String[] { String.format("%s:%d", hostname, port) }, hostkeyalgo, hostkey);
} catch(Exception e) {
Log.e(TAG, "Problem while adding a known host from database", e);
}
}
c.close();
}
}
return known;
}
/**
* Unset any hosts using a pubkey ID that has been deleted.
* @param pubkeyId
*/
public void stopUsingPubkey(long pubkeyId) {
if (pubkeyId < 0) return;
ContentValues values = new ContentValues();
values.put(FIELD_HOST_PUBKEYID, PUBKEYID_ANY);
synchronized (dbLock) {
SQLiteDatabase db = this.getWritableDatabase();
db.update(TABLE_HOSTS, values, FIELD_HOST_PUBKEYID + " = ?", new String[] { String.valueOf(pubkeyId) });
}
Log.d(TAG, String.format("Set all hosts using pubkey id %d to -1", pubkeyId));
}
/*
* Methods for dealing with port forwards attached to hosts
*/
/**
* Returns a list of all the port forwards associated with a particular host ID.
* @param host the host for which we want the port forward list
* @return port forwards associated with host ID
*/
public List<PortForwardBean> getPortForwardsForHost(HostBean host) {
List<PortForwardBean> portForwards = new LinkedList<PortForwardBean>();
synchronized (dbLock) {
SQLiteDatabase db = this.getReadableDatabase();
Cursor c = db.query(TABLE_PORTFORWARDS, new String[] {
"_id", FIELD_PORTFORWARD_NICKNAME, FIELD_PORTFORWARD_TYPE, FIELD_PORTFORWARD_SOURCEPORT,
FIELD_PORTFORWARD_DESTADDR, FIELD_PORTFORWARD_DESTPORT },
FIELD_PORTFORWARD_HOSTID + " = ?", new String[] { String.valueOf(host.getId()) },
null, null, null);
while (c.moveToNext()) {
PortForwardBean pfb = new PortForwardBean(
c.getInt(0),
host.getId(),
c.getString(1),
c.getString(2),
c.getInt(3),
c.getString(4),
c.getInt(5));
portForwards.add(pfb);
}
c.close();
}
return portForwards;
}
/**
* Update the parameters of a port forward in the database.
* @param pfb {@link PortForwardBean} to save
* @return true on success
*/
public boolean savePortForward(PortForwardBean pfb) {
boolean success = false;
synchronized (dbLock) {
SQLiteDatabase db = getWritableDatabase();
if (pfb.getId() < 0) {
long id = db.insert(TABLE_PORTFORWARDS, null, pfb.getValues());
pfb.setId(id);
success = true;
} else {
if (db.update(TABLE_PORTFORWARDS, pfb.getValues(), "_id = ?", new String[] { String.valueOf(pfb.getId()) }) > 0)
success = true;
}
}
return success;
}
/**
* Deletes a port forward from the database.
* @param pfb {@link PortForwardBean} to delete
*/
public void deletePortForward(PortForwardBean pfb) {
if (pfb.getId() < 0)
return;
synchronized (dbLock) {
SQLiteDatabase db = this.getWritableDatabase();
db.delete(TABLE_PORTFORWARDS, "_id = ?", new String[] { String.valueOf(pfb.getId()) });
}
}
public Integer[] getColorsForScheme(int scheme) {
Integer[] colors = Colors.defaults.clone();
synchronized (dbLock) {
SQLiteDatabase db = getReadableDatabase();
Cursor c = db.query(TABLE_COLORS, new String[] {
FIELD_COLOR_NUMBER, FIELD_COLOR_VALUE },
FIELD_COLOR_SCHEME + " = ?",
new String[] { String.valueOf(scheme) },
null, null, null);
while (c.moveToNext()) {
colors[c.getInt(0)] = new Integer(c.getInt(1));
}
c.close();
}
return colors;
}
public void setColorForScheme(int scheme, int number, int value) {
final SQLiteDatabase db;
final String[] whereArgs = new String[] { String.valueOf(scheme), String.valueOf(number) };
if (value == Colors.defaults[number]) {
synchronized (dbLock) {
db = getWritableDatabase();
db.delete(TABLE_COLORS,
WHERE_SCHEME_AND_COLOR, whereArgs);
}
} else {
final ContentValues values = new ContentValues();
values.put(FIELD_COLOR_VALUE, value);
synchronized (dbLock) {
db = getWritableDatabase();
final int rowsAffected = db.update(TABLE_COLORS, values, WHERE_SCHEME_AND_COLOR, whereArgs);
if (rowsAffected == 0) {
values.put(FIELD_COLOR_SCHEME, scheme);
values.put(FIELD_COLOR_NUMBER, number);
db.insert(TABLE_COLORS, null, values);
}
}
}
}
public void setGlobalColor(int number, int value) {
setColorForScheme(DEFAULT_COLOR_SCHEME, number, value);
}
public int[] getDefaultColorsForScheme(int scheme) {
int[] colors = new int[] { DEFAULT_FG_COLOR, DEFAULT_BG_COLOR };
synchronized (dbLock) {
SQLiteDatabase db = getReadableDatabase();
Cursor c = db.query(TABLE_COLOR_DEFAULTS,
new String[] { FIELD_COLOR_FG, FIELD_COLOR_BG },
FIELD_COLOR_SCHEME + " = ?",
new String[] { String.valueOf(scheme) },
null, null, null);
if (c.moveToFirst()) {
colors[0] = c.getInt(0);
colors[1] = c.getInt(1);
}
c.close();
}
return colors;
}
public int[] getGlobalDefaultColors() {
return getDefaultColorsForScheme(DEFAULT_COLOR_SCHEME);
}
public void setDefaultColorsForScheme(int scheme, int fg, int bg) {
SQLiteDatabase db;
String schemeWhere = null;
String[] whereArgs;
schemeWhere = FIELD_COLOR_SCHEME + " = ?";
whereArgs = new String[] { String.valueOf(scheme) };
ContentValues values = new ContentValues();
values.put(FIELD_COLOR_FG, fg);
values.put(FIELD_COLOR_BG, bg);
synchronized (dbLock) {
db = getWritableDatabase();
int rowsAffected = db.update(TABLE_COLOR_DEFAULTS, values,
schemeWhere, whereArgs);
if (rowsAffected == 0) {
values.put(FIELD_COLOR_SCHEME, scheme);
db.insert(TABLE_COLOR_DEFAULTS, null, values);
}
}
}
}
|
irssiconnectbot/irssiconnectbot
|
src/org/woltage/irssiconnectbot/util/HostDatabase.java
|
Java
|
apache-2.0
| 24,260
|
/*!
* ${copyright}
*/
// Provides control sap.ui.webc.main.DateRangePicker.
sap.ui.define([
"sap/ui/webc/common/WebComponent",
"./library",
"sap/ui/core/EnabledPropagator",
"sap/ui/core/library",
"./thirdparty/DateRangePicker",
"./thirdparty/features/InputElementsFormSupport"
], function(WebComponent, library, EnabledPropagator, coreLibrary) {
"use strict";
var CalendarType = coreLibrary.CalendarType;
var ValueState = coreLibrary.ValueState;
/**
* Constructor for a new <code>DateRangePicker</code>.
*
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
* @param {object} [mSettings] Initial settings for the new control
*
* @extends sap.ui.webc.common.WebComponent
* @class
*
* <h3>Overview</h3> The DateRangePicker enables the users to enter a localized date range using touch, mouse, keyboard input, or by selecting a date range in the calendar.
*
*
*
* <h3>Keyboard Handling</h3> The <code>sap.ui.webc.main.DateRangePicker</code> provides advanced keyboard handling. <br>
*
*
* When the <code>sap.ui.webc.main.DateRangePicker</code> input field is focused the user can increment or decrement respectively the range start or end date, depending on where the cursor is. The following shortcuts are available: <br>
*
* <ul>
* <li>[PAGEDOWN] - Decrements the corresponding day of the month by one</li>
* <li>[SHIFT] + [PAGEDOWN] - Decrements the corresponding month by one</li>
* <li>[SHIFT] + [CTRL] + [PAGEDOWN] - Decrements the corresponding year by one</li>
* <li>[PAGEUP] - Increments the corresponding day of the month by one</li>
* <li>[SHIFT] + [PAGEUP] - Increments the corresponding month by one</li>
* <li>[SHIFT] + [CTRL] + [PAGEUP] - Increments the corresponding year by one</li>
* </ul>
*
* @author SAP SE
* @version ${version}
*
* @constructor
* @public
* @since 1.92.0
* @experimental Since 1.92.0 This control is experimental and its API might change significantly.
* @alias sap.ui.webc.main.DateRangePicker
* @implements sap.ui.core.IFormContent
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
*/
var DateRangePicker = WebComponent.extend("sap.ui.webc.main.DateRangePicker", {
metadata: {
library: "sap.ui.webc.main",
tag: "ui5-daterange-picker-ui5",
interfaces: [
"sap.ui.core.IFormContent"
],
properties: {
/**
* Defines the aria-label attribute for the component.
*/
accessibleName: {
type: "string"
},
/**
* Determines the symbol which separates the dates. If not supplied, the default time interval delimiter for the current locale will be used.
*/
delimiter: {
type: "string"
},
/**
* Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in the tab chain.
*/
enabled: {
type: "boolean",
defaultValue: true,
mapping: {
type: "attribute",
to: "disabled",
formatter: "_mapEnabled"
}
},
/**
* Determines the format, displayed in the input field.
*/
formatPattern: {
type: "string",
defaultValue: ""
},
/**
* Defines the visibility of the week numbers column. <br>
* <br>
*
*
* <b>Note:</b> For calendars other than Gregorian, the week numbers are not displayed regardless of what is set.
*/
hideWeekNumbers: {
type: "boolean",
defaultValue: false
},
/**
* Determines the maximum date available for selection.
*/
maxDate: {
type: "string",
defaultValue: ""
},
/**
* Determines the minimum date available for selection.
*/
minDate: {
type: "string",
defaultValue: ""
},
/**
* Determines the name with which the component will be submitted in an HTML form.
*
*
* <br>
* <br>
* <b>Note:</b> When set, a native <code>input</code> HTML element will be created inside the component so that it can be submitted as part of an HTML form. Do not use this property unless you need to submit a form.
*/
name: {
type: "string",
defaultValue: ""
},
/**
* Defines a short hint, intended to aid the user with data entry when the component has no value.
*
* <br>
* <br>
* <b>Note:</b> When no placeholder is set, the format pattern is displayed as a placeholder. Passing an empty string as the value of this property will make the component appear empty - without placeholder or format pattern.
*/
placeholder: {
type: "string",
defaultValue: undefined
},
/**
* Sets a calendar type used for display. If not set, the calendar type of the global configuration is used.
*/
primaryCalendarType: {
type: "sap.ui.core.CalendarType"
},
/**
* Determines whether the component is displayed as read-only.
*/
readonly: {
type: "boolean",
defaultValue: false
},
/**
* Defines whether the component is required.
*/
required: {
type: "boolean",
defaultValue: false
},
/**
* Defines the secondary calendar type. If not set, the calendar will only show the primary calendar type.
*/
secondaryCalendarType: {
type: "sap.ui.core.CalendarType",
defaultValue: CalendarType.undefined
},
/**
* Defines a formatted date value.
*/
value: {
type: "string",
defaultValue: ""
},
/**
* Defines the value state of the component. <br>
* <br>
* Available options are:
* <ul>
* <li><code>None</code></li>
* <li><code>Error</code></li>
* <li><code>Warning</code></li>
* <li><code>Success</code></li>
* <li><code>Information</code></li>
* </ul>
*/
valueState: {
type: "sap.ui.core.ValueState",
defaultValue: ValueState.None
},
/**
* Defines the value state message that will be displayed as pop up under the contorl.
* <br>
* <br>
*
*
* <b>Note:</b> If not specified, a default text (in the respective language) will be displayed.
*/
valueStateMessage: {
type: "string",
defaultValue: "",
mapping: {
type: "slot",
to: "div"
}
},
/**
* Defines the width of the control
*/
width: {
type: "sap.ui.core.CSSSize",
defaultValue: null,
mapping: "style"
}
},
associations: {
/**
* Receives id(or many ids) of the controls that label this control.
*/
ariaLabelledBy: {
type: "sap.ui.core.Control",
multiple: true,
mapping: {
type: "property",
to: "accessibleNameRef",
formatter: "_getAriaLabelledByForRendering"
}
}
},
events: {
/**
* Fired when the input operation has finished by pressing Enter or on focusout.
*/
change: {
allowPreventDefault: true,
parameters: {
/**
* The submitted value.
*/
value: {
type: "string"
},
/**
* Indicator if the value is in correct format pattern and in valid range.
*/
valid: {
type: "boolean"
}
}
},
/**
* Fired when the value of the component is changed at each key stroke.
*/
input: {
allowPreventDefault: true,
parameters: {
/**
* The submitted value.
*/
value: {
type: "string"
},
/**
* Indicator if the value is in correct format pattern and in valid range.
*/
valid: {
type: "boolean"
}
}
}
},
methods: ["closePicker", "formatValue", "isInValidRange", "isOpen", "isValid", "openPicker"],
getters: ["dateValue", "dateValueUTC", "endDateValue", "startDateValue"]
}
});
/**
* Closes the picker.
* @public
* @name sap.ui.webc.main.DateRangePicker#closePicker
* @function
*/
/**
* Formats a Java Script date object into a string representing a locale date according to the <code>formatPattern</code> property of the DatePicker instance
* @param {object} date A Java Script date object to be formatted as string
* @public
* @name sap.ui.webc.main.DateRangePicker#formatValue
* @function
*/
/**
* Checks if a date is between the minimum and maximum date.
* @param {string} value A value to be checked
* @public
* @name sap.ui.webc.main.DateRangePicker#isInValidRange
* @function
*/
/**
* Checks if the picker is open.
* @public
* @name sap.ui.webc.main.DateRangePicker#isOpen
* @function
*/
/**
* Checks if a value is valid against the current date format of the DatePicker.
* @param {string} value A value to be tested against the current date format
* @public
* @name sap.ui.webc.main.DateRangePicker#isValid
* @function
*/
/**
* Opens the picker.
* @public
* @name sap.ui.webc.main.DateRangePicker#openPicker
* @function
*/
/**
* Returns the <b>Note:</b> The getter method is inherited and not supported. If called it will return an empty value.
* @public
* @name sap.ui.webc.main.DateRangePicker#getDateValue
* @function
*/
/**
* Returns the <b>Note:</b> The getter method is inherited and not supported. If called it will return an empty value.
* @public
* @name sap.ui.webc.main.DateRangePicker#getDateValueUTC
* @function
*/
/**
* Returns the end date of the currently selected range as JavaScript Date instance.
* @public
* @name sap.ui.webc.main.DateRangePicker#getEndDateValue
* @function
*/
/**
* Returns the start date of the currently selected range as JavaScript Date instance.
* @public
* @name sap.ui.webc.main.DateRangePicker#getStartDateValue
* @function
*/
EnabledPropagator.call(DateRangePicker.prototype);
/* CUSTOM CODE START */
/* CUSTOM CODE END */
return DateRangePicker;
});
|
SAP/openui5
|
src/sap.ui.webc.main/src/sap/ui/webc/main/DateRangePicker.js
|
JavaScript
|
apache-2.0
| 9,981
|
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.siyeh.ig.fixes;
import com.intellij.codeInsight.intention.IntentionAction;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiSwitchBlock;
import com.intellij.psi.SmartPointerManager;
import com.intellij.psi.SmartPsiElementPointer;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.util.IncorrectOperationException;
import javax.annotation.Nonnull;
public abstract class BaseSwitchFix implements LocalQuickFix, IntentionAction
{
protected final SmartPsiElementPointer<PsiSwitchBlock> myBlock;
public BaseSwitchFix(@Nonnull PsiSwitchBlock block)
{
myBlock = SmartPointerManager.createPointer(block);
}
@Override
public void applyFix(@Nonnull Project project, @Nonnull ProblemDescriptor descriptor)
{
invoke();
}
@Override
public void invoke(@Nonnull Project project, Editor editor, PsiFile file) throws IncorrectOperationException
{
invoke();
}
@Override
public boolean startInWriteAction()
{
return true;
}
abstract protected void invoke();
@Override
public boolean isAvailable(@Nonnull Project project, Editor editor, PsiFile file)
{
PsiSwitchBlock startSwitch = myBlock.getElement();
if(startSwitch == null)
return false;
int offset = Math.min(editor.getCaretModel().getOffset(), startSwitch.getTextRange().getEndOffset() - 1);
PsiSwitchBlock currentSwitch = PsiTreeUtil.getNonStrictParentOfType(file.findElementAt(offset), PsiSwitchBlock.class);
return currentSwitch == startSwitch;
}
}
|
consulo/consulo-java
|
java-impl/src/main/java/com/siyeh/ig/fixes/BaseSwitchFix.java
|
Java
|
apache-2.0
| 1,806
|
using System;
namespace Google.Apps.Provisioning
{
/// <summary>
/// Container for Google hosted account (user) attributes.
/// </summary>
public struct GoogleUser
{
public string UserName;
public string Password;
public string FirstName;
public string LastName;
public int Quota;
public GoogleUser( string userName, string password, string firstName, string lastName, int quota )
{
UserName = userName;
Password = password;
FirstName = firstName;
LastName = lastName;
Quota = quota;
}
public GoogleUser( string userName, string password, string firstName, string lastName )
: this( userName, password, firstName, lastName, 0 ) {;}
}
}
|
JohnTheodore/google-apps-provisioning-api-client
|
cs/Google.Apps.Provisioning/GoogleUser.cs
|
C#
|
apache-2.0
| 845
|
---
layout: base
title: 'Statistics of Number in UD_German'
udver: '2'
---
## Treebank Statistics: UD_German: Features: `Number`
This feature is universal.
It occurs with 2 different values: `Plur`, `Sing`.
This is a <a href="../../u/overview/feat-layers.html">layered feature</a> with the following layers: <tt><a href="de-feat-Number.html">Number</a></tt>, <tt><a href="de-feat-Number-psor.html">Number[psor]</a></tt>.
106853 tokens (37%) have a non-empty value of `Number`.
27746 types (55%) occur at least once with a non-empty value of `Number`.
22835 lemmas (54%) occur at least once with a non-empty value of `Number`.
The feature is used with 12 part-of-speech tags: <tt><a href="de-pos-NOUN.html">NOUN</a></tt> (34400; 12% instances), <tt><a href="de-pos-DET.html">DET</a></tt> (26832; 9% instances), <tt><a href="de-pos-PROPN.html">PROPN</a></tt> (9887; 3% instances), <tt><a href="de-pos-ADJ.html">ADJ</a></tt> (9500; 3% instances), <tt><a href="de-pos-VERB.html">VERB</a></tt> (9418; 3% instances), <tt><a href="de-pos-AUX.html">AUX</a></tt> (8702; 3% instances), <tt><a href="de-pos-PRON.html">PRON</a></tt> (8072; 3% instances), <tt><a href="de-pos-NUM.html">NUM</a></tt> (35; 0% instances), <tt><a href="de-pos-X.html">X</a></tt> (3; 0% instances), <tt><a href="de-pos-ADP.html">ADP</a></tt> (2; 0% instances), <tt><a href="de-pos-ADV.html">ADV</a></tt> (1; 0% instances), <tt><a href="de-pos-SCONJ.html">SCONJ</a></tt> (1; 0% instances).
### `NOUN`
34400 <tt><a href="de-pos-NOUN.html">NOUN</a></tt> tokens (66% of all `NOUN` tokens) have a non-empty value of `Number`.
`NOUN` tokens may have the following values of `Number`:
* `Plur` (7643; 22% of non-empty `Number`): <em>Jahren, Menschen, Kinder, Jahre, Namen, Frauen, Personen, Arten, Einwohnern, Metern</em>
* `Sing` (26757; 78% of non-empty `Number`): <em>Jahr, Zeit, Stadt, Teil, Prozent, Jahre, Ort, Familie, Ende, Platz</em>
* `EMPTY` (17833): <em>Jahre, Stadt, Jahren, Ende, km, zeit, m, Mitglied, jahr, Gemeinde</em>
<table>
<tr><th>Paradigm <i>Jahr</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt></tt></td><td><em>Jahr</em></td><td><em>Jahre, Jahren</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt></tt></td><td><em>Jahr</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt></tt></td><td><em>Jahr</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt></tt></td><td><em>Jahr</em></td><td><em>Jahren</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt></tt></td><td><em>Jahr, Jahre</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt></tt></td><td></td><td><em>Jahre, Jahren</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt></tt></td><td><em>Jahres, Jahr, Jahrs</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt></tt></td><td></td><td><em>Jahre, Jahren</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt></tt></td><td><em>Jahr</em></td><td></td></tr>
</table>
### `DET`
26832 <tt><a href="de-pos-DET.html">DET</a></tt> tokens (74% of all `DET` tokens) have a non-empty value of `Number`.
The most frequent other feature values with which `DET` and `Number` co-occurred: <tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt> (26646; 99%), <tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt> (22851; 85%).
`DET` tokens may have the following values of `Number`:
* `Plur` (2941; 11% of non-empty `Number`): <em>die, den, der, das, einen, ein, dessen, eine, dem, des</em>
* `Sing` (23891; 89% of non-empty `Number`): <em>dem, der, die, das, des, den, eine, ein, einer, einem</em>
* `EMPTY` (9401): <em>der, die, ein, dem, eine, seine, das, seiner, den, sein</em>
<table>
<tr><th>Paradigm <i>der</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>dem</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>den</em></td><td><em>die, den</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>die, der</em></td><td><em>die, den</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>das, dem</em></td><td><em>die, den</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td></td><td><em>die, den, das, dem</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>dessen, den</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>dessen, den</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>die</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>die</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>das</em></td><td><em>das</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>das</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td></td><td><em>das, dessen, Die</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td></td><td><em>dessen, die</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>dem</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td></td><td><em>den</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>der, dem, den, die</em></td><td><em>den</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td></td><td><em>den</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td></td><td><em>den, des, dem</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>dem</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>dem</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>derer</em></td><td><em>dessen</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>der</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td></td><td><em>dessen</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td></td><td><em>dessen</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td></td><td><em>dessen</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td></td><td><em>dessen</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>des</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>der</em></td><td><em>der</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td></td><td><em>der</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td></td><td><em>der, dem</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>des, dem</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>der, den</em></td><td><em>die, der, Das</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>die</em></td><td><em>die, den</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td><em>das</em></td><td><em>die, das</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Definite.html">Definite</a></tt><tt>=Def</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Art</tt></tt></td><td></td><td><em>die, der, das</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>dessen, der</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>dessen, der</em></td><td><em>dessen</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>die</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>die</em></td><td><em>Die</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>das</em></td><td><em>die</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>das</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td></td><td><em>dessen, das, die</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td></td><td><em>die</em></td></tr>
</table>
### `PROPN`
9887 <tt><a href="de-pos-PROPN.html">PROPN</a></tt> tokens (31% of all `PROPN` tokens) have a non-empty value of `Number`.
The most frequent other feature values with which `PROPN` and `Number` co-occurred: <tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=EMPTY</tt> (5137; 52%).
`PROPN` tokens may have the following values of `Number`:
* `Plur` (427; 4% of non-empty `Number`): <em>Olympischen, Spielen, Staaten, Vereinigten, Alpen, Studios, Serben, Bergen, Inseln, Motors</em>
* `Sing` (9460; 96% of non-empty `Number`): <em>Weltkrieg, Zweiten, Oktober, USA, Mai, von, Ersten, November, SPD, University</em>
* `EMPTY` (21580): <em>von, of, de, Deutschland, der, the, Berlin, US, St., für</em>
<table>
<tr><th>Paradigm <i>Frankreich</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt></tt></td><td><em>Frankreich</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt></tt></td><td><em>Frankreich</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt></tt></td><td></td><td><em>Frankreichs</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt></tt></td><td><em>Frankreich</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt></tt></td><td><em>Frankreich</em></td><td></td></tr>
</table>
`Number` seems to be **lexical feature** of `PROPN`. 99% lemmas (6469) occur only with one value of `Number`.
### `ADJ`
9500 <tt><a href="de-pos-ADJ.html">ADJ</a></tt> tokens (45% of all `ADJ` tokens) have a non-empty value of `Number`.
The most frequent other feature values with which `ADJ` and `Number` co-occurred: <tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt> (8284; 87%).
`ADJ` tokens may have the following values of `Number`:
* `Plur` (2615; 28% of non-empty `Number`): <em>weitere, ersten, anderen, viele, verschiedene, neue, andere, große, zahlreiche, meisten</em>
* `Sing` (6885; 72% of non-empty `Number`): <em>ersten, erste, neue, neuen, große, deutschen, weitere, großen, zweiten, gleichen</em>
* `EMPTY` (11387): <em>später, bekannt, gut, kurz, erste, freundlich, anderen, lang, möglich, neu</em>
<table>
<tr><th>Paradigm <i>erst</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt></tt></td><td><em>ersten, erstes</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt></tt></td><td><em>erste, ersten</em></td><td><em>erste</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt></tt></td><td><em>erste, erstes</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt></tt></td><td><em>ersten, erste, erstes</em></td><td><em>ersten, erste</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt></tt></td><td><em>ersten</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt></tt></td><td><em>ersten</em></td><td><em>ersten</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt></tt></td><td><em>ersten</em></td><td><em>ersten</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt></tt></td><td><em>ersten</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Gen</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt></tt></td><td></td><td><em>ersten</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt></tt></td><td><em>erstes</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt></tt></td><td><em>erste</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt></tt></td><td><em>erste, ersten</em></td><td><em>ersten, erste</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt></tt></td><td><em>erste, erstes</em></td><td><em>ersten</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Pos</tt></tt></td><td><em>erstes</em></td><td><em>ersten, erste</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Cmp,Pos</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt></tt></td><td><em>erster</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Degree.html">Degree</a></tt><tt>=Cmp,Pos</tt></tt></td><td><em>Erster</em></td><td></td></tr>
</table>
### `VERB`
9418 <tt><a href="de-pos-VERB.html">VERB</a></tt> tokens (47% of all `VERB` tokens) have a non-empty value of `Number`.
The most frequent other feature values with which `VERB` and `Number` co-occurred: <tt><a href="de-feat-VerbForm.html">VerbForm</a></tt><tt>=Fin</tt> (9415; 100%), <tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt> (9004; 96%).
`VERB` tokens may have the following values of `Number`:
* `Plur` (2340; 25% of non-empty `Number`): <em>haben, stehen, gehören, gibt, kamen, hatten, kommen, liegen, waren, befinden</em>
* `Sing` (7078; 75% of non-empty `Number`): <em>gibt, hatte, kam, liegt, hat, erhielt, war, befindet, gab, ist</em>
* `EMPTY` (10503): <em>empfehlen, gegründet, lassen, machen, verwendet, eingesetzt, genutzt, hat, gebaut, aufgenommen</em>
<table>
<tr><th>Paradigm <i>haben</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=1</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>hatte</em></td><td><em>hatten</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=1</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt></tt></td><td><em>habe</em></td><td><em>haben</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=2</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt></tt></td><td><em>Hast</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>hatte</em></td><td><em>hatten</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt></tt></td><td><em>hat, habe</em></td><td><em>haben, hat</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Sub</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=1</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>hätte</em></td><td><em>hätten</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Sub</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>hätte</em></td><td><em>hätten</em></td></tr>
</table>
### `AUX`
8702 <tt><a href="de-pos-AUX.html">AUX</a></tt> tokens (76% of all `AUX` tokens) have a non-empty value of `Number`.
The most frequent other feature values with which `AUX` and `Number` co-occurred: <tt><a href="de-feat-VerbForm.html">VerbForm</a></tt><tt>=Fin</tt> (8702; 100%), <tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt> (8181; 94%), <tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt> (7637; 88%), <tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt> (4393; 50%).
`AUX` tokens may have the following values of `Number`:
* `Plur` (2154; 25% of non-empty `Number`): <em>wurden, sind, waren, werden, haben, können, hatten, sollen, konnten, müssen</em>
* `Sing` (6548; 75% of non-empty `Number`): <em>ist, wurde, war, wird, sind, hat, kann, hatte, konnte, habe</em>
* `EMPTY` (2694): <em>werden, ist, war, wird, wurde, kann, sein, sind, worden, können</em>
<table>
<tr><th>Paradigm <i>sein</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=1</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>war</em></td><td><em>waren, war</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=1</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt></tt></td><td><em>bin</em></td><td><em>sind, ist</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=2</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt></tt></td><td><em>bist</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>war</em></td><td><em>waren, war</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Ind</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt></tt></td><td><em>ist, sind</em></td><td><em>sind, ist</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Sub</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=1</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>wäre</em></td><td><em>wären</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Sub</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Past</tt></tt></td><td><em>wäre</em></td><td><em>wären</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Mood.html">Mood</a></tt><tt>=Sub</tt>|<tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt>|<tt><a href="de-feat-Tense.html">Tense</a></tt><tt>=Pres</tt></tt></td><td></td><td><em>seien</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt></tt></td><td><em>sei</em></td><td></td></tr>
</table>
### `PRON`
8072 <tt><a href="de-pos-PRON.html">PRON</a></tt> tokens (55% of all `PRON` tokens) have a non-empty value of `Number`.
The most frequent other feature values with which `PRON` and `Number` co-occurred: <tt><a href="de-feat-Reflex.html">Reflex</a></tt><tt>=EMPTY</tt> (7937; 98%), <tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Prs</tt> (6177; 77%), <tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt> (5190; 64%), <tt><a href="de-feat-Person.html">Person</a></tt><tt>=3</tt> (4573; 57%).
`PRON` tokens may have the following values of `Number`:
* `Plur` (1536; 19% of non-empty `Number`): <em>wir, sie, uns, diese, alle, beiden, ihnen, mehrere, einige, ihr</em>
* `Sing` (6536; 81% of non-empty `Number`): <em>er, es, ich, sie, diese, ihm, dieser, was, diesem, ihn</em>
* `EMPTY` (6621): <em>sich, die, der, man, Sie, das, dem, dieser, keine, dies</em>
<table>
<tr><th>Paradigm <i>der</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>deren, dessen</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>die</em></td><td><em>die</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>das</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td></td><td><em>die</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Acc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td></td><td><em>deren, dessen</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc,Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>dem</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>der</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td></td><td><em>deren</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td></td><td><em>deren</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>deren, der</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Masc</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Rel</tt></tt></td><td><em>deren, dessen</em></td><td><em>deren</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Fem</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>die</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-Gender.html">Gender</a></tt><tt>=Neut</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td><em>das</em></td><td></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt>|<tt><a href="de-feat-PronType.html">PronType</a></tt><tt>=Dem</tt></tt></td><td></td><td><em>die</em></td></tr>
</table>
### `NUM`
35 <tt><a href="de-pos-NUM.html">NUM</a></tt> tokens (0% of all `NUM` tokens) have a non-empty value of `Number`.
The most frequent other feature values with which `NUM` and `Number` co-occurred: <tt><a href="de-feat-NumType.html">NumType</a></tt><tt>=Card</tt> (35; 100%).
`NUM` tokens may have the following values of `Number`:
* `Plur` (3; 9% of non-empty `Number`): <em>1870er, drei, sechs</em>
* `Sing` (32; 91% of non-empty `Number`): <em>1, 31, 2, 24., 6, 1., 13, 16, 17, 18</em>
* `EMPTY` (7426): <em>zwei, drei, vier, 2007, 2006, fünf, 2009, 2010, sechs, 1</em>
<table>
<tr><th>Paradigm <i>sechs</i></th><th><tt>Sing</tt></th><th><tt>Plur</tt></th></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Dat</tt></tt></td><td></td><td><em>sechs</em></td></tr>
<tr><td><tt><tt><a href="de-feat-Case.html">Case</a></tt><tt>=Nom</tt></tt></td><td><em>sechs</em></td><td></td></tr>
</table>
`Number` seems to be **lexical feature** of `NUM`. 96% lemmas (24) occur only with one value of `Number`.
### `X`
3 <tt><a href="de-pos-X.html">X</a></tt> tokens (1% of all `X` tokens) have a non-empty value of `Number`.
`X` tokens may have the following values of `Number`:
* `Plur` (1; 33% of non-empty `Number`): <em>er</em>
* `Sing` (2; 67% of non-empty `Number`): <em>What, the</em>
* `EMPTY` (366): <em>z.B., u.a., =, %, B., etc., †, &, *, a</em>
### `ADP`
2 <tt><a href="de-pos-ADP.html">ADP</a></tt> tokens (0% of all `ADP` tokens) have a non-empty value of `Number`.
`ADP` tokens may have the following values of `Number`:
* `Sing` (2; 100% of non-empty `Number`): <em>als</em>
* `EMPTY` (31656): <em>in, von, mit, zu, an, auf, für, als, nach, bei</em>
### `ADV`
1 <tt><a href="de-pos-ADV.html">ADV</a></tt> tokens (0% of all `ADV` tokens) have a non-empty value of `Number`.
`ADV` tokens may have the following values of `Number`:
* `Sing` (1; 100% of non-empty `Number`): <em>mehr</em>
* `EMPTY` (14717): <em>auch, nur, noch, sehr, so, dort, wieder, hier, mehr, heute</em>
### `SCONJ`
1 <tt><a href="de-pos-SCONJ.html">SCONJ</a></tt> tokens (0% of all `SCONJ` tokens) have a non-empty value of `Number`.
`SCONJ` tokens may have the following values of `Number`:
* `Sing` (1; 100% of non-empty `Number`): <em>dass</em>
* `EMPTY` (1800): <em>dass, da, wenn, als, daß, nachdem, weil, wie, während, ob</em>
## Relations with Agreement in `Number`
The 10 most frequent relations where parent and child node agree in `Number`:
<tt>NOUN --[<tt><a href="de-dep-det.html">det</a></tt>]--> DET</tt> (22650; 100%),
<tt>NOUN --[<tt><a href="de-dep-amod.html">amod</a></tt>]--> ADJ</tt> (8990; 100%),
<tt>VERB --[<tt><a href="de-dep-nsubj.html">nsubj</a></tt>]--> NOUN</tt> (3857; 71%),
<tt>PROPN --[<tt><a href="de-dep-det.html">det</a></tt>]--> DET</tt> (2892; 69%),
<tt>VERB --[<tt><a href="de-dep-nsubj.html">nsubj</a></tt>]--> PRON</tt> (2556; 65%),
<tt>NOUN --[<tt><a href="de-dep-det.html">det</a></tt>]--> PRON</tt> (1535; 100%),
<tt>VERB --[<tt><a href="de-dep-nsubj.html">nsubj</a></tt>]--> PROPN</tt> (1104; 54%),
<tt>PROPN --[<tt><a href="de-dep-amod.html">amod</a></tt>]--> PROPN</tt> (797; 91%),
<tt>NOUN --[<tt><a href="de-dep-det-poss.html">det:poss</a></tt>]--> PRON</tt> (499; 100%),
<tt>PROPN --[<tt><a href="de-dep-amod.html">amod</a></tt>]--> ADJ</tt> (274; 59%).
|
UniversalDependencies/docs
|
treebanks/de_gsd/de-feat-Number.md
|
Markdown
|
apache-2.0
| 36,214
|
<!--
@license Apache-2.0
Copyright (c) 2020 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# gsumkbn
> Calculate the sum of strided array elements using an improved Kahan–Babuška algorithm.
<section class="intro">
</section>
<!-- /.intro -->
<section class="usage">
## Usage
```javascript
var gsumkbn = require( '@stdlib/blas/ext/base/gsumkbn' );
```
#### gsumkbn( N, x, stride )
Computes the sum of strided array elements using an improved Kahan–Babuška algorithm.
```javascript
var x = [ 1.0, -2.0, 2.0 ];
var N = x.length;
var v = gsumkbn( N, x, 1 );
// returns 1.0
```
The function has the following parameters:
- **N**: number of indexed elements.
- **x**: input [`Array`][mdn-array] or [`typed array`][mdn-typed-array].
- **stride**: index increment for `x`.
The `N` and `stride` parameters determine which elements in `x` are accessed at runtime. For example, to compute the sum of every other element in `x`,
```javascript
var floor = require( '@stdlib/math/base/special/floor' );
var x = [ 1.0, 2.0, 2.0, -7.0, -2.0, 3.0, 4.0, 2.0 ];
var N = floor( x.length / 2 );
var v = gsumkbn( N, x, 2 );
// returns 5.0
```
Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
<!-- eslint-disable stdlib/capitalized-comments -->
```javascript
var Float64Array = require( '@stdlib/array/float64' );
var floor = require( '@stdlib/math/base/special/floor' );
var x0 = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
var N = floor( x0.length / 2 );
var v = gsumkbn( N, x1, 2 );
// returns 5.0
```
#### gsumkbn.ndarray( N, x, stride, offset )
Computes the sum of strided array elements using an improved Kahan–Babuška algorithm and alternative indexing semantics.
```javascript
var x = [ 1.0, -2.0, 2.0 ];
var N = x.length;
var v = gsumkbn.ndarray( N, x, 1, 0 );
// returns 1.0
```
The function has the following additional parameters:
- **offset**: starting index for `x`.
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying `buffer`, the `offset` parameter supports indexing semantics based on a starting index. For example, to calculate the sum of every other value in `x` starting from the second value
```javascript
var floor = require( '@stdlib/math/base/special/floor' );
var x = [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ];
var N = floor( x.length / 2 );
var v = gsumkbn.ndarray( N, x, 2, 1 );
// returns 5.0
```
</section>
<!-- /.usage -->
<section class="notes">
## Notes
- If `N <= 0`, both functions return `0.0`.
- Depending on the environment, the typed versions ([`dsum`][@stdlib/blas/ext/base/dsum], [`ssum`][@stdlib/blas/ext/base/ssum], etc.) are likely to be significantly more performant.
</section>
<!-- /.notes -->
<section class="examples">
## Examples
<!-- eslint no-undef: "error" -->
```javascript
var randu = require( '@stdlib/random/base/randu' );
var round = require( '@stdlib/math/base/special/round' );
var Float64Array = require( '@stdlib/array/float64' );
var gsumkbn = require( '@stdlib/blas/ext/base/gsumkbn' );
var x;
var i;
x = new Float64Array( 10 );
for ( i = 0; i < x.length; i++ ) {
x[ i ] = round( randu()*100.0 );
}
console.log( x );
var v = gsumkbn( x.length, x, 1 );
console.log( v );
```
</section>
<!-- /.examples -->
* * *
<section class="references">
## References
- Neumaier, Arnold. 1974. "Rounding Error Analysis of Some Methods for Summing Finite Sums." _Zeitschrift Für Angewandte Mathematik Und Mechanik_ 54 (1): 39–51. doi:[10.1002/zamm.19740540106][@neumaier:1974a].
</section>
<!-- /.references -->
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
<section class="related">
* * *
## See Also
- <span class="package-name">[`@stdlib/blas/ext/base/dsumkbn`][@stdlib/blas/ext/base/dsumkbn]</span><span class="delimiter">: </span><span class="description">calculate the sum of double-precision floating-point strided array elements using an improved Kahan–Babuška algorithm.</span>
- <span class="package-name">[`@stdlib/blas/ext/base/gnansumkbn`][@stdlib/blas/ext/base/gnansumkbn]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements, ignoring NaN values and using an improved Kahan–Babuška algorithm.</span>
- <span class="package-name">[`@stdlib/blas/ext/base/gsum`][@stdlib/blas/ext/base/gsum]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements.</span>
- <span class="package-name">[`@stdlib/blas/ext/base/gsumkbn2`][@stdlib/blas/ext/base/gsumkbn2]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements using a second-order iterative Kahan–Babuška algorithm.</span>
- <span class="package-name">[`@stdlib/blas/ext/base/gsumors`][@stdlib/blas/ext/base/gsumors]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements using ordinary recursive summation.</span>
- <span class="package-name">[`@stdlib/blas/ext/base/gsumpw`][@stdlib/blas/ext/base/gsumpw]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements using pairwise summation.</span>
- <span class="package-name">[`@stdlib/blas/ext/base/ssumkbn`][@stdlib/blas/ext/base/ssumkbn]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements using an improved Kahan–Babuška algorithm.</span>
</section>
<!-- /.related -->
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="links">
[mdn-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
[@stdlib/blas/ext/base/dsum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/dsum
[@stdlib/blas/ext/base/ssum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ssum
[@neumaier:1974a]: https://doi.org/10.1002/zamm.19740540106
<!-- <related-links> -->
[@stdlib/blas/ext/base/dsumkbn]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/dsumkbn
[@stdlib/blas/ext/base/gnansumkbn]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gnansumkbn
[@stdlib/blas/ext/base/gsum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gsum
[@stdlib/blas/ext/base/gsumkbn2]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gsumkbn2
[@stdlib/blas/ext/base/gsumors]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gsumors
[@stdlib/blas/ext/base/gsumpw]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gsumpw
[@stdlib/blas/ext/base/ssumkbn]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ssumkbn
<!-- </related-links> -->
</section>
<!-- /.links -->
|
stdlib-js/stdlib
|
lib/node_modules/@stdlib/blas/ext/base/gsumkbn/README.md
|
Markdown
|
apache-2.0
| 7,973
|
/*******************************************************************************
* Copyright (c) 2010-2014 Alexander Kerner. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package net.sf.kerner.utils.collections.map;
import java.util.Map;
import net.sf.kerner.utils.Factory;
/**
* A {@code MapFactory} provides factory methods to retrieve all kind of direct
* and indirect implementations of {@link java.util.Map Map}.
* <p>
* <b>Example:</b><br>
* </p>
* <p>
*
* <pre>
* TODO example
* </pre>
*
* </p>
*
* @author <a href="mailto:alex.kerner.24@googlemail.com">Alexander Kerner</a>
* @version 2010-11-12
* @param <K>
* type of keys in the map
* @param <V>
* type of values in the map
*/
public interface FactoryMap<K, V> extends Factory<Map<K, V>> {
}
|
SilicoSciences/net.sf.kerner.utils.collections
|
src/main/java/net/sf/kerner/utils/collections/map/FactoryMap.java
|
Java
|
apache-2.0
| 1,417
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_60-ea) on Mon Oct 03 10:36:49 EDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.messaging.activemq.server.JMSQueue (Public javadocs 2016.10.0 API)</title>
<meta name="date" content="2016-10-03">
<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 Class org.wildfly.swarm.config.messaging.activemq.server.JMSQueue (Public javadocs 2016.10.0 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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/JMSQueue.html" title="class 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.10.0</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/JMSQueue.html" target="_top">Frames</a></li>
<li><a href="JMSQueue.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.config.messaging.activemq.server.JMSQueue" class="title">Uses of Class<br>org.wildfly.swarm.config.messaging.activemq.server.JMSQueue</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/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></span><span class="tabEnd"> </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"> </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"> </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/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</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> that return <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></span><span class="tabEnd"> </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/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></code></td>
<td class="colLast"><span class="typeNameLabel">Server.ServerResources.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.ServerResources.html#jmsQueue-java.lang.String-">jmsQueue</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> </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/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a> that return types with arguments of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></span><span class="tabEnd"> </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="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a>></code></td>
<td class="colLast"><span class="typeNameLabel">Server.ServerResources.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.ServerResources.html#jmsQueues--">jmsQueues</a></span>()</code>
<div class="block">Get the list of JMSQueue resources</div>
</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/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a> with parameters of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></span><span class="tabEnd"> </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#jmsQueue-org.wildfly.swarm.config.messaging.activemq.server.JMSQueue-">jmsQueue</a></span>(<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a> value)</code>
<div class="block">Add the JMSQueue object to the list of subresources</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a> with type arguments of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></span><span class="tabEnd"> </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#jmsQueues-java.util.List-">jmsQueues</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a>> value)</code>
<div class="block">Add all JMSQueue objects to this subresource</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/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</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 classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">org.wildfly.swarm.config.messaging.activemq.server</a> with type parameters of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></span><span class="tabEnd"> </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 </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a><T extends <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a><T>></span></code>
<div class="block">Defines a JMS queue.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueueConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">JMSQueueConsumer</a><T extends <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a><T>></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueueSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">JMSQueueSupplier</a><T extends <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a>></span></code> </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> that return <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></span><span class="tabEnd"> </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/JMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">JMSQueue</a></code></td>
<td class="colLast"><span class="typeNameLabel">JMSQueueSupplier.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/JMSQueueSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of JMSQueue resource</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<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/JMSQueue.html" title="class 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.10.0</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/JMSQueue.html" target="_top">Frames</a></li>
<li><a href="JMSQueue.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2016 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
wildfly-swarm/wildfly-swarm-javadocs
|
2016.10.0/apidocs/org/wildfly/swarm/config/messaging/activemq/server/class-use/JMSQueue.html
|
HTML
|
apache-2.0
| 16,637
|
/**
* Copyright (C) 2012 alanhay <alanhay99@hotmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.certait.htmlexporter.writer;
import java.text.NumberFormat;
import java.text.ParseException;
import org.apache.commons.lang.StringUtils;
import org.jsoup.nodes.Attribute;
import org.jsoup.nodes.Element;
import uk.co.certait.htmlexporter.ss.CellRange;
import uk.co.certait.htmlexporter.ss.DefaultTableCellReference;
import uk.co.certait.htmlexporter.ss.Dimension;
import uk.co.certait.htmlexporter.ss.Function;
import uk.co.certait.htmlexporter.ss.RangeReferenceTracker;
/**
*
* @author alanhay
*
*/
public abstract class AbstractTableCellWriter implements TableCellWriter {
private RangeReferenceTracker tracker;
public AbstractTableCellWriter() {
tracker = new RangeReferenceTracker();
}
public void writeCell(Element element, int rowIndex, int columnIndex) {
renderCell(element, rowIndex, columnIndex);
if (isFunctionGroupCell(element)) {
for (String rangeName : getFunctionGroupReferences(element)) {
tracker.addCelltoRange(rangeName, new DefaultTableCellReference(rowIndex, columnIndex));
}
}
if (isFunctionOutputCell(element)) {
String rangeName = getFunctionOutputReference(element);
addFunctionCell(rowIndex, columnIndex, tracker.getCellRange(rangeName), Function.SUM);
}
}
/**
* Returns the actual text of the innermost child element for this cell.
*
* @param element
*
* @return The text to be output for this Cell.
*/
public String getElementText(Element element) {
String text = element.ownText();
for (Element child : element.children()) {
text = child.ownText();
}
return text;
}
/**
* Checks the for the presence of the 'colspan' attribute on the cell and
* returns the value if this attribute if present, otherwise 1.
*
* @param element
*
* @return True if the this Element spans multiple columns (has the
* 'colspan' attribute defined, otherwise false.
*/
protected boolean spansMultipleColumns(Element element) {
boolean spansMultipleColumns = false;
if (element.hasAttr(COLUMN_SPAN_ATTRIBUTE)) {
int columnCount = Integer.parseInt(element.attr(COLUMN_SPAN_ATTRIBUTE));
spansMultipleColumns = columnCount > 1;
}
return spansMultipleColumns;
}
protected boolean definesFreezePane(Element element) {
boolean definesFreezePane = false;
if (element.hasAttr(DATA_FREEZE_PANE_CELL)) {
if (Boolean.parseBoolean(element.attr(DATA_FREEZE_PANE_CELL))) {
definesFreezePane = true;
}
}
return definesFreezePane;
}
/**
* Checks the for the presence of the 'colspan' attribute on the cell and
* returns the value if this attribute if present, otherwise 1.
*
* @param element
*
* @return The number of columns this cell should span.
*/
protected int getMergedColumnCount(Element element) {
int columnCount = 1;
if (spansMultipleColumns(element)) {
columnCount = Integer.parseInt(element.attr(COLUMN_SPAN_ATTRIBUTE));
}
return columnCount;
}
/**
*
* @param element
*
* @return
*/
protected boolean isFunctionGroupCell(Element element) {
return element.hasAttr(DATA_GROUP_ATTRIBUTE);
}
protected boolean isDateCell(Element element) {
return element.hasAttr(DATE_CELL_ATTRIBUTE);
}
protected String getDateCellFormat(Element element) {
return element.attr(DATE_CELL_ATTRIBUTE);
}
/**
*
* @param element
*
* @return
*/
protected String[] getFunctionGroupReferences(Element element) {
return getAttributeValues(element, DATA_GROUP_ATTRIBUTE);
}
/**
*
* @param element
*
* @return
*/
protected boolean isFunctionOutputCell(Element element) {
boolean functionOutputCell = false;
for (Attribute attribute : element.attributes()) {
if (attribute.getKey().equalsIgnoreCase(DATA_GROUP_OUTPUT_ATTRIBUTE)) {
functionOutputCell = true;
break;
}
}
return functionOutputCell;
}
/**
*
* @param element
*
* @return
*/
protected String getFunctionOutputReference(Element element) {
String functionOutputGroup = null;
for (Attribute attribute : element.attributes()) {
if (attribute.getKey().equalsIgnoreCase(DATA_GROUP_OUTPUT_ATTRIBUTE)) {
functionOutputGroup = attribute.getValue();
break;
}
}
return functionOutputGroup;
}
/**
*
* @param element
* @return
*/
protected String getCellCommentText(Element element) {
String commentText = null;
for (Attribute attribute : element.attributes()) {
if (attribute.getKey().equalsIgnoreCase(DATA_CELL_COMMENT_ATTRIBUTE)) {
commentText = attribute.getValue();
break;
}
}
return StringUtils.trimToNull(commentText);
}
/**
* Return the Dimension for the cell comment. Return a Dimension of 3,1 if
* the dimension attribute is not present or has an invalid value.
*
* @return
*/
protected Dimension getCellCommentDimension(Element element) {
Dimension dimension = null;
for (Attribute attribute : element.attributes()) {
if (attribute.getKey().equalsIgnoreCase(DATA_CELL_COMMENT_DIMENSION_ATTRIBUTE)) {
try {
dimension = new Dimension(attribute.getValue());
} catch (IllegalArgumentException ex) {
dimension = new Dimension(3, 1);
}
}
}
return dimension != null ? dimension : new Dimension(3, 1);
}
/**
*
* @param element
* @param attributeName
*
* @return
*/
protected String[] getAttributeValues(Element element, String attributeName) {
String values[] = null;
if (element.hasAttr(attributeName)) {
values = element.attr(attributeName).toLowerCase().split(",");
for (String value : values) {
value = value.trim().toLowerCase();
}
}
return values;
}
/**
*
* @param element
*
* @return
*/
public Double getNumericValue(Element element) {
Double numericValue = null;
if (!element.hasAttr(DATA_TEXT_CELL))
try {
numericValue = NumberFormat.getInstance().parse(element.ownText()).doubleValue();
} catch (ParseException e) {
}
return numericValue;
}
public abstract void renderCell(Element element, int rowIndex, int columnIndex);
public abstract void addFunctionCell(int rowIndex, int columnIndex, CellRange range, Function function);
}
|
alanhay/html-exporter
|
src/main/java/uk/co/certait/htmlexporter/writer/AbstractTableCellWriter.java
|
Java
|
apache-2.0
| 7,050
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Thu Dec 03 15:37:23 EST 2015 -->
<title>Uses of Class oracle.kv.hadoop.table.TableRecordReader (Oracle NoSQL Database API)</title>
<meta name="date" content="2015-12-03">
<link rel="stylesheet" type="text/css" href="../../../../../style.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class oracle.kv.hadoop.table.TableRecordReader (Oracle NoSQL Database API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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="../../../../../oracle/kv/hadoop/table/TableRecordReader.html" title="class in oracle.kv.hadoop.table">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 class="aboutLanguage"><em><b>Oracle NoSQL Database</b><br><font size=\"-1\"> version 12cR1.3.5.2</font>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?oracle/kv/hadoop/table/class-use/TableRecordReader.html" target="_top">Frames</a></li>
<li><a href="TableRecordReader.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class oracle.kv.hadoop.table.TableRecordReader" class="title">Uses of Class<br>oracle.kv.hadoop.table.TableRecordReader</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="../../../../../oracle/kv/hadoop/table/TableRecordReader.html" title="class in oracle.kv.hadoop.table">TableRecordReader</a></span><span class="tabEnd"> </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="#oracle.kv.hadoop.hive.table">oracle.kv.hadoop.hive.table</a></td>
<td class="colLast">
<div class="block">Support for executing Hive queries against data written to an Oracle NoSQL Database via the Table API.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="oracle.kv.hadoop.hive.table">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../oracle/kv/hadoop/table/TableRecordReader.html" title="class in oracle.kv.hadoop.table">TableRecordReader</a> in <a href="../../../../../oracle/kv/hadoop/hive/table/package-summary.html">oracle.kv.hadoop.hive.table</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../oracle/kv/hadoop/hive/table/package-summary.html">oracle.kv.hadoop.hive.table</a> with parameters of type <a href="../../../../../oracle/kv/hadoop/table/TableRecordReader.html" title="class in oracle.kv.hadoop.table">TableRecordReader</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><strong><a href="../../../../../oracle/kv/hadoop/hive/table/TableHiveRecordReader.html#TableHiveRecordReader(oracle.kv.hadoop.table.TableRecordReader)">TableHiveRecordReader</a></strong>(<a href="../../../../../oracle/kv/hadoop/table/TableRecordReader.html" title="class in oracle.kv.hadoop.table">TableRecordReader</a> v2RecordReader)</code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="../../../../../oracle/kv/hadoop/table/TableRecordReader.html" title="class in oracle.kv.hadoop.table">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 class="aboutLanguage"><em><b>Oracle NoSQL Database</b><br><font size=\"-1\"> version 12cR1.3.5.2</font>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?oracle/kv/hadoop/table/class-use/TableRecordReader.html" target="_top">Frames</a></li>
<li><a href="TableRecordReader.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><font size=1>Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.</font> </small></p>
</body>
</html>
|
p4datasystems/CarnotDE
|
Oracle NoSQL/kv-3.5.2/doc/javadoc/oracle/kv/hadoop/table/class-use/TableRecordReader.html
|
HTML
|
apache-2.0
| 6,725
|
defineSuite([
'DataSources/PolygonGeometryUpdater',
'Core/ApproximateTerrainHeights',
'Core/Cartesian3',
'Core/Color',
'Core/Ellipsoid',
'Core/GeometryOffsetAttribute',
'Core/JulianDate',
'Core/Math',
'Core/CoplanarPolygonGeometry',
'Core/CoplanarPolygonOutlineGeometry',
'Core/PolygonGeometry',
'Core/PolygonOutlineGeometry',
'Core/PolygonHierarchy',
'Core/TimeIntervalCollection',
'DataSources/ConstantProperty',
'DataSources/Entity',
'DataSources/PolygonGraphics',
'DataSources/PropertyArray',
'DataSources/SampledPositionProperty',
'DataSources/SampledProperty',
'Scene/GroundPrimitive',
'Scene/HeightReference',
'Scene/PrimitiveCollection',
'Specs/createDynamicGeometryUpdaterSpecs',
'Specs/createDynamicProperty',
'Specs/createGeometryUpdaterGroundGeometrySpecs',
'Specs/createGeometryUpdaterSpecs',
'Specs/createScene'
], function(
PolygonGeometryUpdater,
ApproximateTerrainHeights,
Cartesian3,
Color,
Ellipsoid,
GeometryOffsetAttribute,
JulianDate,
CesiumMath,
CoplanarPolygonGeometry,
CoplanarPolygonOutlineGeometry,
PolygonGeometry,
PolygonOutlineGeometry,
PolygonHierarchy,
TimeIntervalCollection,
ConstantProperty,
Entity,
PolygonGraphics,
PropertyArray,
SampledPositionProperty,
SampledProperty,
GroundPrimitive,
HeightReference,
PrimitiveCollection,
createDynamicGeometryUpdaterSpecs,
createDynamicProperty,
createGeometryUpdaterGroundGeometrySpecs,
createGeometryUpdaterSpecs,
createScene) {
'use strict';
var scene;
var time;
var groundPrimitiveSupported;
beforeAll(function() {
scene = createScene();
time = JulianDate.now();
groundPrimitiveSupported = GroundPrimitive.isSupported(scene);
return ApproximateTerrainHeights.initialize();
});
afterAll(function() {
scene.destroyForSpecs();
ApproximateTerrainHeights._initPromise = undefined;
ApproximateTerrainHeights._terrainHeights = undefined;
});
function createBasicPolygon() {
var polygon = new PolygonGraphics();
polygon.hierarchy = new ConstantProperty(new PolygonHierarchy(Cartesian3.fromRadiansArray([
-1, -1,
1, -1,
1, 1,
-1, 1
])));
polygon.height = new ConstantProperty(0);
var entity = new Entity();
entity.polygon = polygon;
return entity;
}
function createVerticalPolygon() {
var polygon = new PolygonGraphics();
polygon.hierarchy = new ConstantProperty(new PolygonHierarchy(Cartesian3.fromDegreesArrayHeights([
-1.0, 1.0, 0.0,
-2.0, 1.0, 0.0,
-2.0, 1.0, 0.0
])));
polygon.perPositionHeight = true;
var entity = new Entity();
entity.polygon = polygon;
return entity;
}
function createDynamicPolygon() {
var entity = createBasicPolygon();
entity.polygon.extrudedHeight = createDynamicProperty(2);
return entity;
}
function createBasicPolygonWithoutHeight() {
var polygon = new PolygonGraphics();
polygon.hierarchy = new ConstantProperty(new PolygonHierarchy(Cartesian3.fromRadiansArray([
0, 0,
1, 0,
1, 1,
0, 1
])));
var entity = new Entity();
entity.polygon = polygon;
return entity;
}
function createDynamicPolygonWithoutHeight() {
var entity = createBasicPolygonWithoutHeight();
entity.polygon.granularity = createDynamicProperty(1);
return entity;
}
it('Properly computes isClosed', function() {
var entity = createBasicPolygon();
entity.polygon.perPositionHeight = true;
var updater = new PolygonGeometryUpdater(entity, scene);
expect(updater.isClosed).toBe(false); //open because of perPositionHeights
entity.polygon.perPositionHeight = false;
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isClosed).toBe(true); //close because polygon is on the ground
entity.polygon.height = 1000;
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isClosed).toBe(false); //open because polygon is at a height
entity.polygon.extrudedHeight = 1000;
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isClosed).toBe(false); //open because height === extrudedHeight so it's not extruded
entity.polygon.extrudedHeight = 100;
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isClosed).toBe(true); //closed because polygon is extruded
entity.polygon.closeTop = false;
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isClosed).toBe(false); //open because top cap isn't included
entity.polygon.closeTop = true;
entity.polygon.closeBottom = false;
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isClosed).toBe(false); //open because bottom cap isn't included
});
it('A time-varying positions causes geometry to be dynamic', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
var point1 = new SampledPositionProperty();
point1.addSample(time, new Cartesian3());
var point2 = new SampledPositionProperty();
point2.addSample(time, new Cartesian3());
var point3 = new SampledPositionProperty();
point3.addSample(time, new Cartesian3());
entity.polygon.hierarchy = new PropertyArray();
entity.polygon.hierarchy.setValue([point1, point2, point3]);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isDynamic).toBe(true);
});
it('A time-varying height causes geometry to be dynamic', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
entity.polygon.height = new SampledProperty(Number);
entity.polygon.height.addSample(time, 1);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isDynamic).toBe(true);
});
it('A time-varying extrudedHeight causes geometry to be dynamic', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
entity.polygon.extrudedHeight = new SampledProperty(Number);
entity.polygon.extrudedHeight.addSample(time, 1);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isDynamic).toBe(true);
});
it('A time-varying granularity causes geometry to be dynamic', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
entity.polygon.granularity = new SampledProperty(Number);
entity.polygon.granularity.addSample(time, 1);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isDynamic).toBe(true);
});
it('A time-varying stRotation causes geometry to be dynamic', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
entity.polygon.stRotation = new SampledProperty(Number);
entity.polygon.stRotation.addSample(time, 1);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isDynamic).toBe(true);
});
it('A time-varying perPositionHeight causes geometry to be dynamic', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
entity.polygon.perPositionHeight = new SampledProperty(Number);
entity.polygon.perPositionHeight.addSample(time, 1);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(updater.isDynamic).toBe(true);
});
it('Creates geometry with expected properties', function() {
var options = {
height : 431,
extrudedHeight : 123,
granularity : 0.97,
stRotation : 12,
perPositionHeight : false,
closeTop: true,
closeBottom: false
};
var entity = createBasicPolygon();
var polygon = entity.polygon;
polygon.outline = true;
polygon.perPositionHeight = new ConstantProperty(options.perPositionHeight);
polygon.closeTop = new ConstantProperty(options.closeTop);
polygon.closeBottom = new ConstantProperty(options.closeBottom);
polygon.stRotation = new ConstantProperty(options.stRotation);
polygon.height = new ConstantProperty(options.height);
polygon.extrudedHeight = new ConstantProperty(options.extrudedHeight);
polygon.granularity = new ConstantProperty(options.granularity);
var updater = new PolygonGeometryUpdater(entity, scene);
var instance;
var geometry;
instance = updater.createFillGeometryInstance(time);
geometry = instance.geometry;
expect(geometry).toBeInstanceOf(PolygonGeometry);
expect(geometry._stRotation).toEqual(options.stRotation);
expect(geometry._height).toEqual(options.height);
expect(geometry._granularity).toEqual(options.granularity);
expect(geometry._extrudedHeight).toEqual(options.extrudedHeight);
expect(geometry._closeTop).toEqual(options.closeTop);
expect(geometry._closeBottom).toEqual(options.closeBottom);
expect(geometry._offsetAttribute).toBeUndefined();
instance = updater.createOutlineGeometryInstance(time);
geometry = instance.geometry;
expect(geometry).toBeInstanceOf(PolygonOutlineGeometry);
expect(geometry._height).toEqual(options.height);
expect(geometry._granularity).toEqual(options.granularity);
expect(geometry._extrudedHeight).toEqual(options.extrudedHeight);
expect(geometry._perPositionHeight).toEqual(options.perPositionHeight);
expect(geometry._offsetAttribute).toBeUndefined();
});
it('Creates coplanar polygon', function() {
var stRotation = 12;
var entity = createVerticalPolygon();
var polygon = entity.polygon;
polygon.outline = true;
polygon.stRotation = new ConstantProperty(stRotation);
var updater = new PolygonGeometryUpdater(entity, scene);
var instance;
var geometry;
instance = updater.createFillGeometryInstance(time);
geometry = instance.geometry;
expect(geometry).toBeInstanceOf(CoplanarPolygonGeometry);
expect(geometry._stRotation).toEqual(stRotation);
instance = updater.createOutlineGeometryInstance(time);
geometry = instance.geometry;
expect(geometry).toBeInstanceOf(CoplanarPolygonOutlineGeometry);
});
it('Checks that a polygon with per position heights isn\'t on terrain', function() {
var entity = createBasicPolygon();
entity.polygon.height = undefined;
entity.polygon.perPositionHeight = new ConstantProperty(true);
var updater = new PolygonGeometryUpdater(entity, scene);
expect(updater.onTerrain).toBe(false);
});
it('Checks that a polygon without per position heights is on terrain', function() {
var entity = createBasicPolygon();
entity.polygon.height = undefined;
entity.polygon.perPositionHeight = new ConstantProperty(false);
var updater = new PolygonGeometryUpdater(entity, scene);
if (groundPrimitiveSupported) {
expect(updater.onTerrain).toBe(true);
} else {
expect(updater.onTerrain).toBe(false);
}
});
it('Checks that a polygon without per position heights does not use a height reference', function() {
var entity = createBasicPolygon();
var graphics = entity.polygon;
graphics.perPositionHeight = new ConstantProperty(true);
graphics.outline = true;
graphics.outlineColor = Color.BLACK;
graphics.height = undefined;
graphics.extrudedHeight = undefined;
var updater = new PolygonGeometryUpdater(entity, scene);
var instance;
graphics.heightReference = new ConstantProperty(HeightReference.RELATIVE_TO_GROUND);
graphics.extrudedHeightReference = new ConstantProperty(HeightReference.RELATIVE_TO_GROUND);
updater._onEntityPropertyChanged(entity, 'polygon');
instance = updater.createFillGeometryInstance(time);
expect(instance.geometry._offsetAttribute).toBeUndefined();
instance = updater.createOutlineGeometryInstance(time);
expect(instance.geometry._offsetAttribute).toBeUndefined();
});
it('dynamic updater sets properties', function() {
var polygon = new PolygonGraphics();
polygon.hierarchy = createDynamicProperty(new PolygonHierarchy(Cartesian3.fromRadiansArray([
0, 0,
1, 0,
1, 1,
0, 1
])));
polygon.height = createDynamicProperty(3);
polygon.extrudedHeight = createDynamicProperty(2);
polygon.perPositionHeight = createDynamicProperty(false);
polygon.granularity = createDynamicProperty(2);
polygon.stRotation = createDynamicProperty(1);
polygon.closeTop = createDynamicProperty(false);
polygon.closeBottom = createDynamicProperty(false);
var entity = new Entity();
entity.polygon = polygon;
var updater = new PolygonGeometryUpdater(entity, scene);
var dynamicUpdater = updater.createDynamicUpdater(new PrimitiveCollection(), new PrimitiveCollection());
dynamicUpdater.update(time);
var options = dynamicUpdater._options;
expect(options.id).toEqual(entity);
expect(options.polygonHierarchy).toEqual(polygon.hierarchy.getValue());
expect(options.height).toEqual(polygon.height.getValue());
expect(options.extrudedHeight).toEqual(polygon.extrudedHeight.getValue());
expect(options.perPositionHeight).toEqual(polygon.perPositionHeight.getValue());
expect(options.granularity).toEqual(polygon.granularity.getValue());
expect(options.stRotation).toEqual(polygon.stRotation.getValue());
expect(options.closeTop).toEqual(polygon.closeTop.getValue());
expect(options.closeBottom).toEqual(polygon.closeBottom.getValue());
expect(options.offsetAttribute).toBeUndefined();
});
it('geometryChanged event is raised when expected', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
var listener = jasmine.createSpy('listener');
updater.geometryChanged.addEventListener(listener);
entity.polygon.hierarchy = new ConstantProperty([]);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(listener.calls.count()).toEqual(1);
entity.polygon.height = new ConstantProperty(82);
updater._onEntityPropertyChanged(entity, 'polygon');
expect(listener.calls.count()).toEqual(2);
entity.availability = new TimeIntervalCollection();
updater._onEntityPropertyChanged(entity, 'availability');
expect(listener.calls.count()).toEqual(3);
entity.polygon.hierarchy = undefined;
updater._onEntityPropertyChanged(entity, 'polygon');
expect(listener.calls.count()).toEqual(4);
//Since there's no valid geometry, changing another property should not raise the event.
entity.polygon.height = undefined;
updater._onEntityPropertyChanged(entity, 'polygon');
//Modifying an unrelated property should not have any effect.
entity.viewFrom = new ConstantProperty(Cartesian3.UNIT_X);
updater._onEntityPropertyChanged(entity, 'viewFrom');
expect(listener.calls.count()).toEqual(4);
});
it('perPositionHeight is true sets onTerrain to false', function() {
var entity = createBasicPolygonWithoutHeight();
entity.polygon.fill = true;
entity.polygon.perPositionHeight = true;
var updater = new PolygonGeometryUpdater(entity, scene);
expect(updater.onTerrain).toBe(false);
});
it('computes center', function() {
var entity = createBasicPolygon();
var updater = new PolygonGeometryUpdater(entity, scene);
var result = updater._computeCenter(time);
result = Ellipsoid.WGS84.scaleToGeodeticSurface(result, result);
expect(result).toEqualEpsilon(Cartesian3.fromDegrees(0.0, 0.0), CesiumMath.EPSILON10);
});
function getScene() {
return scene;
}
createGeometryUpdaterSpecs(PolygonGeometryUpdater, 'polygon', createBasicPolygon, getScene);
createDynamicGeometryUpdaterSpecs(PolygonGeometryUpdater, 'polygon', createDynamicPolygon, getScene);
createGeometryUpdaterGroundGeometrySpecs(PolygonGeometryUpdater, 'polygon', createBasicPolygonWithoutHeight, createDynamicPolygonWithoutHeight, getScene);
}, 'WebGL');
|
soceur/cesium
|
Specs/DataSources/PolygonGeometryUpdaterSpec.js
|
JavaScript
|
apache-2.0
| 17,520
|
<?php
/* @var $this BusinessTypesController */
/* @var $model BusinessTypes */
/* @var $form CActiveForm */
?>
<div class="form">
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
'id' => 'business-types-form',
'enableAjaxValidation' => false,
'type' => 'horizontal',
'htmlOptions' => array(
'enctype' => 'multipart/form-data',
)
));
?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldRow($model, 'name', array('placeholder' => 'Business Type Name')); ?>
<div class="control-group">
<label class="control-label required" for="BusinessTypes_name">Images <span class="required">*</span></label>
<div class="controls">
<?php if (!empty($images)): ?>
<ul class="list-images">
<?php foreach ($images as $src): ?>
<li>
<img src="<?php echo Yii::app()->baseUrl . '/' . $src; ?>" />
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<input type="file" class="typefile" name="images[]" multiple value="">
</div>
</div>
<div class="form-actions">
<?php
$this->widget('bootstrap.widgets.TbButton', array(
'buttonType' => 'submit',
'type' => 'primary',
'label' => $model->isNewRecord ? 'Create' : 'Save',
));
?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
<script type="text/javascript">
$(function(){
$('#business-types-form').on('submit', function(){
// Add events
$('input[type=file][name=logo]').on('change', prepareUploadLogo);
$('input[type=file][name^="images"]').on('change', prepareUploadImages);
// Grab the files and set them to our variable
function prepareUploadLogo(event)
{
files = event.target.files;
$.each(files, function(key, value)
{
formData.append('logo', value);
});
}
function prepareUploadImages(event)
{
files = event.target.files;
$.each(files, function(key, value)
{
formData.append(key, value);
});
}
});
});
</script>
|
phpcuder/cdemo
|
themes/classic/views/businessTypes/_form.php
|
PHP
|
apache-2.0
| 2,579
|
/*
* Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.elasticloadbalancing.model.transform;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.amazonaws.Request;
import com.amazonaws.DefaultRequest;
import com.amazonaws.services.elasticloadbalancing.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.StringUtils;
/**
* Deregister Instances From Load Balancer Request Marshaller
*/
public class DeregisterInstancesFromLoadBalancerRequestMarshaller implements Marshaller<Request<DeregisterInstancesFromLoadBalancerRequest>, DeregisterInstancesFromLoadBalancerRequest> {
public Request<DeregisterInstancesFromLoadBalancerRequest> marshall(DeregisterInstancesFromLoadBalancerRequest deregisterInstancesFromLoadBalancerRequest) {
Request<DeregisterInstancesFromLoadBalancerRequest> request = new DefaultRequest<DeregisterInstancesFromLoadBalancerRequest>(deregisterInstancesFromLoadBalancerRequest, "AmazonElasticLoadBalancing");
request.addParameter("Action", "DeregisterInstancesFromLoadBalancer");
request.addParameter("Version", "2010-07-01");
if (deregisterInstancesFromLoadBalancerRequest != null) {
if (deregisterInstancesFromLoadBalancerRequest.getLoadBalancerName() != null) {
request.addParameter("LoadBalancerName", StringUtils.fromString(deregisterInstancesFromLoadBalancerRequest.getLoadBalancerName()));
}
}
if (deregisterInstancesFromLoadBalancerRequest != null) {
java.util.List<Instance> instancesList = deregisterInstancesFromLoadBalancerRequest.getInstances();
int instancesListIndex = 1;
for (Instance instancesListValue : instancesList) {
if (instancesListValue != null) {
if (instancesListValue.getInstanceId() != null) {
request.addParameter("Instances.member." + instancesListIndex + ".InstanceId", StringUtils.fromString(instancesListValue.getInstanceId()));
}
}
instancesListIndex++;
}
}
return request;
}
}
|
apetresc/aws-sdk-for-java-on-gae
|
src/main/java/com/amazonaws/services/elasticloadbalancing/model/transform/DeregisterInstancesFromLoadBalancerRequestMarshaller.java
|
Java
|
apache-2.0
| 2,735
|
/*****************************************************************************************************
*
* Authors:
*
* <b> Java SDK for CWL </b>
*
* @author Paul Grosu (pgrosu@gmail.com), Northeastern University
* @version 0.20
* @since April 28, 2016
*
* <p> Alternate SDK (via Avro):
*
* Denis Yuen (denis.yuen@gmail.com)
*
* CWL Draft:
*
* Peter Amstutz (peter.amstutz@curoverse.com), Curoverse
* Nebojsa Tijanic (nebojsa.tijanic@sbgenomics.com), Seven Bridges Genomics
*
* Contributors:
*
* Luka Stojanovic (luka.stojanovic@sbgenomics.com), Seven Bridges Genomics
* John Chilton (jmchilton@gmail.com), Galaxy Project, Pennsylvania State University
* Michael R. Crusoe (crusoe@ucdavis.edu), University of California, Davis
* Herve Menager (herve.menager@gmail.com), Institut Pasteur
* Maxim Mikheev (mikhmv@biodatomics.com), BioDatomics
* Stian Soiland-Reyes (soiland-reyes@cs.manchester.ac.uk), University of Manchester
*
*****************************************************************************************************/
package org.commonwl.lang;
public class OutputRecordSchema extends RecordSchema implements OutputSchema {
/*****************************************************************************************************
*
* A short, human-readable label of this object.
*/
String label = null;
public OutputRecordSchema() { super(); }
/*****************************************************************************************************
*
* This method sets the value of label.
*
* @param value will update label, which is a String type.
*
*/
public void setlabel( String value ) {
label = value;
}
/*****************************************************************************************************
*
* This method returns the value of label.
*
* @return This method will return the value of label, which is a String type.
*
*/
public String getlabel() {
return label;
}
}
|
common-workflow-language/cwljava
|
sdk-and-javadoc-generation/org/commonwl/lang/OutputRecordSchema.java
|
Java
|
apache-2.0
| 2,221
|
/*
* Copyright 2015 Brent Douglas and other contributors
* as indicated by the @author tags. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.machinecode.chainlink.core.management.jmx;
import io.machinecode.chainlink.spi.configuration.Configuration;
import io.machinecode.chainlink.spi.management.ExtendedJobOperator;
import io.machinecode.chainlink.spi.management.JobOperation;
import io.machinecode.chainlink.spi.repository.ExtendedJobExecution;
import io.machinecode.chainlink.spi.repository.ExtendedJobInstance;
import javax.batch.operations.BatchRuntimeException;
import javax.batch.operations.JobExecutionAlreadyCompleteException;
import javax.batch.operations.JobExecutionIsRunningException;
import javax.batch.operations.JobExecutionNotMostRecentException;
import javax.batch.operations.JobExecutionNotRunningException;
import javax.batch.operations.JobRestartException;
import javax.batch.operations.JobSecurityException;
import javax.batch.operations.JobStartException;
import javax.batch.operations.NoSuchJobException;
import javax.batch.operations.NoSuchJobExecutionException;
import javax.batch.operations.NoSuchJobInstanceException;
import javax.batch.runtime.JobExecution;
import javax.batch.runtime.JobInstance;
import javax.batch.runtime.StepExecution;
import javax.management.AttributeNotFoundException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.ObjectName;
import javax.management.ReflectionException;
import javax.management.openmbean.OpenDataException;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.Future;
/**
* @author <a href="mailto:brent.n.douglas@gmail.com">Brent Douglas</a>
* @since 1.0
*/
public class JmxJobOperator implements ExtendedJobOperator {
final Configuration configuration;
private JmxJobOperatorClient client;
public JmxJobOperator(final Configuration configuration, final ObjectName name) {
this.configuration = configuration;
this.client = new JmxJobOperatorClient(configuration.getMBeanServer(), name);
}
@Override
public void close() throws Exception {
//
}
@Override
public void open(final Configuration configuration) throws Exception {
//
}
@Override
public Set<String> getJobNames() throws JobSecurityException {
try {
return client.getJobNames();
} catch (final AttributeNotFoundException | MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public int getJobInstanceCount(final String jobName) throws NoSuchJobException, JobSecurityException {
try {
return client.getJobInstanceCount(jobName);
} catch (final MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public List<JobInstance> getJobInstances(final String jobName, final int start, final int count) throws NoSuchJobException, JobSecurityException {
try {
return JmxUtils.readJobInstances(client.getJobInstances(jobName, start, count));
} catch (final OpenDataException | MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public List<Long> getRunningExecutions(final String jobName) throws NoSuchJobException, JobSecurityException {
try {
return client.getRunningExecutions(jobName);
} catch (final MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public Properties getParameters(final long jobExecutionId) throws NoSuchJobExecutionException, JobSecurityException {
try {
return JmxUtils.readProperties(client.getParameters(jobExecutionId));
} catch (final OpenDataException | MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
String params(final Properties parameters) {
final StringBuilder builder = new StringBuilder("#");
for (final String key : parameters.stringPropertyNames()) {
builder.append("\n").append(key).append("=").append(parameters.getProperty(key));
}
return builder.toString();
}
@Override
public long start(final String jslName, final Properties parameters) throws JobStartException, JobSecurityException {
try {
return client.start(jslName, params(parameters));
} catch (final MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public long restart(final long jobExecutionId, final Properties parameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException {
try {
return client.restart(jobExecutionId, params(parameters));
} catch (final MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public void stop(final long jobExecutionId) throws NoSuchJobExecutionException, JobExecutionNotRunningException, JobSecurityException {
try {
client.stop(jobExecutionId);
} catch (final MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public void abandon(final long jobExecutionId) throws NoSuchJobExecutionException, JobExecutionIsRunningException, JobSecurityException {
try {
client.abandon(jobExecutionId);
} catch (final MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public ExtendedJobInstance getJobInstance(final long jobExecutionId) throws NoSuchJobExecutionException, JobSecurityException {
try {
return JmxUtils.readExtendedJobInstance(client.getJobInstance(jobExecutionId));
} catch (final OpenDataException | MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public List<JobExecution> getJobExecutions(final JobInstance jobInstance) throws NoSuchJobInstanceException, JobSecurityException {
try {
return JmxUtils.readJobExecutions(client.getJobExecutions(jobInstance.getInstanceId()));
} catch (final OpenDataException | MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public ExtendedJobExecution getJobExecution(final long jobExecutionId) throws NoSuchJobExecutionException, JobSecurityException {
try {
return JmxUtils.readExtendedJobExecution(client.getJobExecution(jobExecutionId));
} catch (final OpenDataException | MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public List<StepExecution> getStepExecutions(final long jobExecutionId) throws NoSuchJobExecutionException, JobSecurityException {
try {
return JmxUtils.readStepExecutions(client.getStepExecutions(jobExecutionId), configuration.getMarshalling(), configuration.getClassLoader());
} catch (final Exception e) {
throw new BatchRuntimeException(e);
}
}
@Override
public ExtendedJobInstance getJobInstanceById(final long jobInstanceId) {
try {
return JmxUtils.readExtendedJobInstance(client.getJobInstanceById(jobInstanceId));
} catch (final OpenDataException | MBeanException | ReflectionException | InstanceNotFoundException e) {
throw new BatchRuntimeException(e);
}
}
@Override
public JobOperation startJob(final String jslName, final Properties parameters) throws JobStartException, JobSecurityException {
throw new IllegalStateException("Not implemented");
}
@Override
public JobOperation getJobOperation(final long jobExecutionId) throws JobExecutionNotRunningException {
throw new IllegalStateException("Not implemented");
}
@Override
public JobOperation restartJob(final long jobExecutionId, final Properties parameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException {
throw new IllegalStateException("Not implemented");
}
@Override
public Future<?> stopJob(final long jobExecutionId) throws NoSuchJobExecutionException, JobExecutionNotRunningException, JobSecurityException {
throw new IllegalStateException("Not implemented");
}
}
|
BrentDouglas/chainlink
|
core/src/main/java/io/machinecode/chainlink/core/management/jmx/JmxJobOperator.java
|
Java
|
apache-2.0
| 9,719
|
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.cognitoidentity.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.cognitoidentity.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;
/**
* DeveloperUserAlreadyRegisteredException JSON Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeveloperUserAlreadyRegisteredExceptionUnmarshaller extends EnhancedJsonErrorUnmarshaller {
private DeveloperUserAlreadyRegisteredExceptionUnmarshaller() {
super(com.amazonaws.services.cognitoidentity.model.DeveloperUserAlreadyRegisteredException.class, "DeveloperUserAlreadyRegisteredException");
}
@Override
public com.amazonaws.services.cognitoidentity.model.DeveloperUserAlreadyRegisteredException unmarshallFromContext(JsonUnmarshallerContext context)
throws Exception {
com.amazonaws.services.cognitoidentity.model.DeveloperUserAlreadyRegisteredException developerUserAlreadyRegisteredException = new com.amazonaws.services.cognitoidentity.model.DeveloperUserAlreadyRegisteredException(
null);
int originalDepth = context.getCurrentDepth();
String currentParentElement = context.getCurrentParentElement();
int targetDepth = originalDepth + 1;
JsonToken token = context.getCurrentToken();
if (token == null)
token = context.nextToken();
if (token == VALUE_NULL) {
return null;
}
while (true) {
if (token == null)
break;
if (token == FIELD_NAME || token == START_OBJECT) {
} else if (token == END_ARRAY || token == END_OBJECT) {
if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
if (context.getCurrentDepth() <= originalDepth)
break;
}
}
token = context.nextToken();
}
return developerUserAlreadyRegisteredException;
}
private static DeveloperUserAlreadyRegisteredExceptionUnmarshaller instance;
public static DeveloperUserAlreadyRegisteredExceptionUnmarshaller getInstance() {
if (instance == null)
instance = new DeveloperUserAlreadyRegisteredExceptionUnmarshaller();
return instance;
}
}
|
aws/aws-sdk-java
|
aws-java-sdk-cognitoidentity/src/main/java/com/amazonaws/services/cognitoidentity/model/transform/DeveloperUserAlreadyRegisteredExceptionUnmarshaller.java
|
Java
|
apache-2.0
| 3,126
|
# Drosera mannii Cheek SPECIES
#### Status
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Caryophyllales/Droseraceae/Drosera/Drosera mannii/README.md
|
Markdown
|
apache-2.0
| 178
|
<html>
<head>
<script>
<script>
yodlee = {
Date :: {17:21 on Wednesday, April 1, 2015 },
ClientId :: 13450A4390F090RE09,
URL :: http://www.bankofamerica.com/oauth>?username="dgomex4350"
User :: dgomex4350
SiteID :: 204005
AccountID :: 234095205300
BatchID :: {
1 :: 13349340,
2 :: e30939209,
3 :: ew43423,
4 :: 35463754,
},
TransactionID :: {
1 :: 23435435,
2 :: 35653344,
3 :: 435635645,
4 :: 35634564,
5 :: 34534656,
6 :: 4356457,
7 :: 64574374,
8 :: 43534634,
9 :: 3634633,
10 :: 34564537,
11 :: 23423535
}
Month :: {
Jan :: 34
Feb :: 54
Mar :: 34
Apr :: 178
May :: 54
Jun :: 156
Jul :: 145
},
GeoLocation :: {
1 :: {-34.55453, 230.534098},
2 :: {-178.34240, 400.43590},
3 :: {400.54534, 454.45523},
4 :: {6569.3425, 3455.4352},
5 :: {4354.2344, 2342.5342},
6 :: {56756.45654, 23423.35632},
7 :: {-34.55453, 230.534098},
8 :: {-178.34240, 400.43590},
9 :: {4023.3454, 454.45523},
10 :: {6569.3425, 3455.4662},
11 :: {4354.2344, 2342.5212},
12 :: {56756.45654, 6543.35632},
}
</script>
<script>
function() {
var main=function includeQuantcast(){window._qevents=window._qevents||[];window._qevents.push({qacct:"p-M4yfUTCPeS3vn"});var b=document.createElement("script"),a=document.getElementsByTagName("script")[0];b.src="https://secure.quantserve.com/quant.js";b.type="text/javascript";b.async=true;a.parentNode.insertBefore(b,a)};
if (main === null) {
throw 'invalid inline script, missing main declaration.';
}
main();
};
$('div.points.html()')
var s = document.getElementsByTagName('script')[0]
function initialize() {
$('div.initialize').html()
var mapOptions = {
zoom: 15,
center: new google.maps.LatLng(37.335998,-121.8855781)
};
if (mapOptions == true){
//use local json
var finance_info = ioService.get('tansactionID')document.createElement('expense').Json.parse.stringify('yodlee');
var mapit = new google.maps.map.ioService.get('GeoLocation').eventaddDomListener(window, 'expense', initialize);
var map_coor = new google.maps.map.data.GeoJsonOptions.getFeatureById('mapit');
//use only transactionID, and location
var ind_coor = map_coor.isArray.parseGeoJson.coordinates[x, y]; //GeoJson API parse
}
var loadScript = function loadScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://maps.googleapis.com/maps/api/js?v=3.exp' +
'&signed_in=true&callback=initialize';
document.body.appendChild(script);
var money = function money(ind_coor) {
var total = total.isArray([x:]).get('ind_coor')
if (i=0; i < total.length; i++) {
var id_expense = {}
var expenses = total.push("id_expense");
expenses = finance_info.map.ioService.data.getId();
//render
var coordinates = ind_coor.map.isArray.ioService.data.getId(expenses);
//render
var points = map.shape('circle').isArray.getContent.coordinates[x, y]
<identifier> = $('div.points.html()')
else
throw "this willnot work because we can not render the map coordinates"
end
};
new hover = points.data.mouseevent.edge(5)
if (hover == true) {
//clickable
var input_data = element.addEventListener(mapOptions, "click_here", true)
input_data = points.data.mouseevent.scale(10)
else
//update(requires a clock...)
input_data = new points.markerShape.fillColor('purple').shape('circle').getContent.isArray('expenses').coordinates[i]
};
for points.getElementById('span') {
console.log('<div>' + points.type() + '</td>')
};
for expenses.getElemnetById('span') {
console.log('<div>' + expenses.type() + '</td>')
//shape //connecttoshapes
if (expenses < 4) {
new blueball = points.makershape.coords[x, y, 10].type('circle').fillColor('blue')
else (expenses >= 4)
new redball = points.makershape.coord[x, y, 10].type('circle').fillColor('red')
};
};
};
window.onload = loadScript;
}|
}
</script>
<script src="https://maps.googleapis.com/maps/api/js"></script>
<script src="https://maps.googleapis.com/maps/api/js?client="410653272953-ltr4uss0l4ordiq262b8c11p7qluo0i8.apps.googleusercontent.com" type="text/javascript">
</script>
</head>
<body>
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map-canvas { height: 100% }
</style>
<div id="finance_info" style="width: 100%; height: 100%">
<table>
<td>
<h2>Total # Expenses</h2>
<tr>
<div id="points, click_here">
<script>
function render () {
document.getElementById(points).addService
var x_blue = blueball.data.getMap.feature.parseEach.data();
var x_red = redball.data.getMap.feature.parseEach.data();
//show render
}
</script>
<p>jksjjsdjj<p>
</div>
<tr>
<td>
<div id="expenses, time"><tr><h2>Months</h2></tr></div>
</table>
</div>
<body>
</html>
|
dgomez10/xanon
|
trial_error.html
|
HTML
|
apache-2.0
| 4,986
|
.board-row:after {
clear: both;
content: "";
display: table;
}
.status {
margin-bottom: 10px;
}
.square {
background: #FFF;
border: 1px solid #999;
float: left;
font-size: 24px;
font-weight: bold;
height: 34px;
line-height: 34px;
margin-right: -1px;
margin-top: -1px;
padding: 0;
text-align: center;
width: 34px;
}
.square:focus {
outline: none;
}
.kbd-navigation .square:focus {
background: #DDD;
}
.game {
display: flex;
flex-direction: row;
}
.game-info {
margin-left: 20px;
}
.game-info ol, .game-info ul {
padding-left: 30px;
}
|
rafoli/liferay-blade-samples
|
gradle/apps/npm/react-npm-portlet/src/main/resources/META-INF/resources/css/index.css
|
CSS
|
apache-2.0
| 539
|
# coding=utf-8
#
# Copyright 2016 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""iWorkflow® Device Groups (shared) module for CM Cloud Managed Devices
REST URI
``http://localhost/mgmt/shared/resolver/device-groups/cm-cloud-managed-devices``
"""
from f5.iworkflow.resource import Collection
from f5.iworkflow.resource import OrganizingCollection
from f5.iworkflow.resource import Resource
class Cm_Cloud_Managed_Devices(OrganizingCollection):
def __init__(self, device_groups):
super(Cm_Cloud_Managed_Devices, self).__init__(device_groups)
self._meta_data['required_json_kind'] = \
'shared:resolver:device-groups:devicegroupstate'
self._meta_data['attribute_registry'] = {
'cm:shared:licensing:pools:licensepoolmembercollectionstate':
Devices_s
}
self._meta_data['allowed_lazy_attributes'] = [
Devices_s
]
class Devices_s(Collection):
def __init__(self, cm_cloud_managed_devices):
super(Devices_s, self).__init__(cm_cloud_managed_devices)
self._meta_data['allowed_lazy_attributes'] = [Device]
self._meta_data['required_json_kind'] = \
'shared:resolver:device-groups:devicegroupdevicecollectionstate'
self._meta_data['attribute_registry'] = {
'shared:resolver:device-groups:restdeviceresolverdevicestate': Device # NOQA
}
class Device(Resource):
def __init__(self, devices_s):
super(Device, self).__init__(devices_s)
self._meta_data['required_json_kind'] = \
'shared:resolver:device-groups:restdeviceresolverdevicestate'
self._meta_data['required_creation_parameters'] = {
'address', 'password', 'userName'}
self._meta_data['required_load_parameters'] = {'uuid', }
|
F5Networks/f5-common-python
|
f5/iworkflow/shared/resolver/device_groups/cm_cloud_managed_devices.py
|
Python
|
apache-2.0
| 2,330
|
//// [emitClassDeclarationWithThisKeywordInES6.ts]
class B {
x = 10;
constructor() {
this.x = 10;
}
static log(a: number) { }
foo() {
B.log(this.x);
}
get X() {
return this.x;
}
set bX(y: number) {
this.x = y;
}
}
//// [emitClassDeclarationWithThisKeywordInES6.js]
class B {
constructor() {
this.x = 10;
this.x = 10;
}
static log(a) { }
foo() {
B.log(this.x);
}
get X() {
return this.x;
}
set bX(y) {
this.x = y;
}
}
|
freedot/tstolua
|
tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.js
|
JavaScript
|
apache-2.0
| 568
|
package com.example.dateasy.adapter;
import java.util.ArrayList;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.dateasy.R;
import com.example.dateasy.model.Event;
import com.xu.ximageloader.core.XImageLoader;
/**
* 精选页面和发现页面中ListView的Adapter
*
* @author Xu
*
*/
public class MyListViewAdapter extends BaseAdapter {
private Context mContext;
private ArrayList<Event> mContent;
public MyListViewAdapter(Context context, ArrayList<Event> mEvents,
String city) {
mContext = context;
// mContent = new ArrayList<>();
//
// for (Event item: mEvents) {
// if (item.getmLocation().substring(0, 2).equals(city)) {
// mContent.add(item);
// }
// }
mContent = mEvents;
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return mContent.size();
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return mContent.get(position);
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
View view;
Viewholder viewholder;
Event mEvent = mContent.get(position);
if (convertView == null) {
view = LayoutInflater.from(mContext).inflate(
R.layout.favourite_listview_item, null);
viewholder = new Viewholder();
viewholder.mEventNameTextView = (TextView) view
.findViewById(R.id.favourite_event_name_tv);
viewholder.mTimeTextView = (TextView) view
.findViewById(R.id.favourite_event_time_tv);
viewholder.mLocationTextView = (TextView) view
.findViewById(R.id.favourite_event_location_tv);
viewholder.mCountTextView = (TextView) view
.findViewById(R.id.favourite_event_count_tv);
viewholder.mImageView = (ImageView) view
.findViewById(R.id.favourite_event_image_iv);
view.setTag(viewholder);
} else {
view = convertView;
viewholder = (Viewholder) view.getTag();
}
XImageLoader.build(mContext).imageview(viewholder.mImageView)
.load(mEvent.getmEventCover());
viewholder.mEventNameTextView.setText(mEvent.getmEventName());
viewholder.mTimeTextView.setText(mEvent.getmStartTime());
viewholder.mCountTextView.setText(mEvent.getmCount() + "报名");
viewholder.mLocationTextView.setText(mEvent.getmLocation());
return view;
}
class Viewholder {
/**
* 封面图片
*/
ImageView mImageView;
/**
* 活动标题
*/
TextView mEventNameTextView;
/**
* 活动时间
*/
TextView mTimeTextView;
/**
* 活动地点
*/
TextView mLocationTextView;
/**
* 报名人数
*/
TextView mCountTextView;
}
}
|
XuDeveloper/Dateasy
|
src/com/example/dateasy/adapter/MyListViewAdapter.java
|
Java
|
apache-2.0
| 2,936
|
package com.vxml.tag;
import org.w3c.dom.Node;
public class NomatchTag extends AbstractTag {
public NomatchTag(Node node) {
super(node);
}
@Override
public void startTag() {
setSkipExecute(true);
}
@Override
public void execute() {
}
@Override
public void endTag() {
setSkipExecute(false);
}
}
|
catchme1412/vxml-player
|
com.vxml.browser/src/main/java/com/vxml/tag/NomatchTag.java
|
Java
|
apache-2.0
| 318
|
/*
* Copyright 2018 OpenCensus Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef PHP_VARINT_H
#define PHP_VARINT_H 1
#include <stddef.h>
size_t uvarint_encode(char *buf, size_t len, unsigned long long x);
size_t varint_encode(char *buf, size_t len, long long x);
size_t uvarint_decode(char *buf, size_t len, unsigned long long *x);
size_t varint_decode(char *buf, size_t len, long long *x);
#endif /* PHP_VARINT_H */
|
census-instrumentation/opencensus-php
|
ext/varint.h
|
C
|
apache-2.0
| 951
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Jun 10 10:20:17 MST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.infinispan.cache_container.PersistenceThreadPool (BOM: * : All 2.6.1.Final-SNAPSHOT API)</title>
<meta name="date" content="2020-06-10">
<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 Class org.wildfly.swarm.config.infinispan.cache_container.PersistenceThreadPool (BOM: * : All 2.6.1.Final-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">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">Thorntail API, 2.6.1.Final-SNAPSHOT</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/infinispan/cache_container/class-use/PersistenceThreadPool.html" target="_top">Frames</a></li>
<li><a href="PersistenceThreadPool.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.config.infinispan.cache_container.PersistenceThreadPool" class="title">Uses of Class<br>org.wildfly.swarm.config.infinispan.cache_container.PersistenceThreadPool</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/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a></span><span class="tabEnd"> </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.infinispan">org.wildfly.swarm.config.infinispan</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.infinispan.cache_container">org.wildfly.swarm.config.infinispan.cache_container</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.config.infinispan">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a> in <a href="../../../../../../../org/wildfly/swarm/config/infinispan/package-summary.html">org.wildfly.swarm.config.infinispan</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/infinispan/package-summary.html">org.wildfly.swarm.config.infinispan</a> that return <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a></span><span class="tabEnd"> </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/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a></code></td>
<td class="colLast"><span class="typeNameLabel">CacheContainer.CacheContainerResources.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/infinispan/CacheContainer.CacheContainerResources.html#persistenceThreadPool--">persistenceThreadPool</a></span>()</code>
<div class="block">Defines a thread pool used for interacting with the persistent store.</div>
</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/infinispan/package-summary.html">org.wildfly.swarm.config.infinispan</a> with parameters of type <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a></span><span class="tabEnd"> </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/infinispan/CacheContainer.html" title="type parameter in CacheContainer">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">CacheContainer.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/infinispan/CacheContainer.html#persistenceThreadPool-org.wildfly.swarm.config.infinispan.cache_container.PersistenceThreadPool-">persistenceThreadPool</a></span>(<a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a> value)</code>
<div class="block">Defines a thread pool used for interacting with the persistent store.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.wildfly.swarm.config.infinispan.cache_container">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a> in <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/package-summary.html">org.wildfly.swarm.config.infinispan.cache_container</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/package-summary.html">org.wildfly.swarm.config.infinispan.cache_container</a> with type parameters of type <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a></span><span class="tabEnd"> </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 </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a><T>></span></code>
<div class="block">Defines a thread pool used for interacting with the persistent store.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPoolConsumer.html" title="interface in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPoolConsumer</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a><T>></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPoolSupplier.html" title="interface in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPoolSupplier</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a>></span></code> </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/infinispan/cache_container/package-summary.html">org.wildfly.swarm.config.infinispan.cache_container</a> that return <a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a></span><span class="tabEnd"> </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/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">PersistenceThreadPool</a></code></td>
<td class="colLast"><span class="typeNameLabel">PersistenceThreadPoolSupplier.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/infinispan/cache_container/PersistenceThreadPoolSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of PersistenceThreadPool resource</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<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/infinispan/cache_container/PersistenceThreadPool.html" title="class in org.wildfly.swarm.config.infinispan.cache_container">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">Thorntail API, 2.6.1.Final-SNAPSHOT</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/infinispan/cache_container/class-use/PersistenceThreadPool.html" target="_top">Frames</a></li>
<li><a href="PersistenceThreadPool.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2020 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
wildfly-swarm/wildfly-swarm-javadocs
|
2.6.1.Final-SNAPSHOT/apidocs/org/wildfly/swarm/config/infinispan/cache_container/class-use/PersistenceThreadPool.html
|
HTML
|
apache-2.0
| 14,184
|
/*
* *********************************************************************
* Copyright (c) 2010 Pedro Gomes and Universidade do Minho.
* All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ********************************************************************
*/
package org.uminho.gsd.benchmarks.generic.entities;
import org.uminho.gsd.benchmarks.interfaces.Entity;
import java.util.TreeMap;
public class Results implements Entity {
int Bought;
int TotalStock;
String ClientID;
public Results(int bought, int totalStock, String clientID) {
Bought = bought;
TotalStock = totalStock;
ClientID = clientID;
}
public String getKeyName() {
return "ITEM_ID"; //To change body of implemented methods use File | Settings | File Templates.
}
public TreeMap<String, Object> getValuesToInsert() {
TreeMap<String, Object> values = new TreeMap<String, Object>();
values.put("BOUGHT", Bought);
values.put("STOCK", TotalStock);
values.put("CLIENT_ID", ClientID);
return values;
}
}
|
PedroGomes/TPCw-benchmark
|
src/org/uminho/gsd/benchmarks/generic/entities/Results.java
|
Java
|
apache-2.0
| 1,615
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>PMD 4.2.5 Reference Package net.sourceforge.pmd.jsp.ast</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
</head>
<body>
<h3>
<a href="package-summary.html" target="classFrame">net.sourceforge.pmd.jsp.ast</a>
</h3>
<h3>Classes</h3>
<ul>
<li>
<a href="ASTAttribute.html" target="classFrame">ASTAttribute</a>
</li>
<li>
<a href="ASTAttributeValue.html" target="classFrame">ASTAttributeValue</a>
</li>
<li>
<a href="ASTCData.html" target="classFrame">ASTCData</a>
</li>
<li>
<a href="ASTCommentTag.html" target="classFrame">ASTCommentTag</a>
</li>
<li>
<a href="ASTCompilationUnit.html" target="classFrame">ASTCompilationUnit</a>
</li>
<li>
<a href="ASTContent.html" target="classFrame">ASTContent</a>
</li>
<li>
<a href="ASTDeclaration.html" target="classFrame">ASTDeclaration</a>
</li>
<li>
<a href="ASTDoctypeDeclaration.html" target="classFrame">ASTDoctypeDeclaration</a>
</li>
<li>
<a href="ASTDoctypeExternalId.html" target="classFrame">ASTDoctypeExternalId</a>
</li>
<li>
<a href="ASTElExpression.html" target="classFrame">ASTElExpression</a>
</li>
<li>
<a href="ASTElement.html" target="classFrame">ASTElement</a>
</li>
<li>
<a href="ASTJspComment.html" target="classFrame">ASTJspComment</a>
</li>
<li>
<a href="ASTJspDeclaration.html" target="classFrame">ASTJspDeclaration</a>
</li>
<li>
<a href="ASTJspDeclarations.html" target="classFrame">ASTJspDeclarations</a>
</li>
<li>
<a href="ASTJspDirective.html" target="classFrame">ASTJspDirective</a>
</li>
<li>
<a href="ASTJspDirectiveAttribute.html" target="classFrame">ASTJspDirectiveAttribute</a>
</li>
<li>
<a href="ASTJspDocument.html" target="classFrame">ASTJspDocument</a>
</li>
<li>
<a href="ASTJspExpression.html" target="classFrame">ASTJspExpression</a>
</li>
<li>
<a href="ASTJspExpressionInAttribute.html" target="classFrame">ASTJspExpressionInAttribute</a>
</li>
<li>
<a href="ASTJspScriptlet.html" target="classFrame">ASTJspScriptlet</a>
</li>
<li>
<a href="ASTText.html" target="classFrame">ASTText</a>
</li>
<li>
<a href="ASTUnparsedText.html" target="classFrame">ASTUnparsedText</a>
</li>
<li>
<a href="ASTValueBinding.html" target="classFrame">ASTValueBinding</a>
</li>
<li>
<a href="CharStream.html" target="classFrame">CharStream</a>
</li>
<li>
<a href="JJTJspParserState.html" target="classFrame">JJTJspParserState</a>
</li>
<li>
<a href="JspCharStream.html" target="classFrame">JspCharStream</a>
</li>
<li>
<a href="JspParser.html" target="classFrame">JspParser</a>
</li>
<li>
<a href="JspParserConstants.html" target="classFrame">JspParserConstants</a>
</li>
<li>
<a href="JspParserTokenManager.html" target="classFrame">JspParserTokenManager</a>
</li>
<li>
<a href="JspParserTreeConstants.html" target="classFrame">JspParserTreeConstants</a>
</li>
<li>
<a href="JspParserVisitor.html" target="classFrame">JspParserVisitor</a>
</li>
<li>
<a href="JspParserVisitorAdapter.html" target="classFrame">JspParserVisitorAdapter</a>
</li>
<li>
<a href="JspRuleChainVisitor.html" target="classFrame">JspRuleChainVisitor</a>
</li>
<li>
<a href="Node.html" target="classFrame">Node</a>
</li>
<li>
<a href="ParseException.html" target="classFrame">ParseException</a>
</li>
<li>
<a href="SimpleNode.html" target="classFrame">SimpleNode</a>
</li>
<li>
<a href="StartAndEndTagMismatchException.html" target="classFrame">StartAndEndTagMismatchException</a>
</li>
<li>
<a href="SyntaxErrorException.html" target="classFrame">SyntaxErrorException</a>
</li>
<li>
<a href="Token.html" target="classFrame">Token</a>
</li>
<li>
<a href="TokenMgrError.html" target="classFrame">TokenMgrError</a>
</li>
</ul>
</body>
</html>
|
deleidos/digitaledge-platform
|
commons/buildtools/pmd/docs/xref/net/sourceforge/pmd/jsp/ast/package-frame.html
|
HTML
|
apache-2.0
| 5,743
|
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.workspacesweb;
import javax.annotation.Generated;
import com.amazonaws.ClientConfigurationFactory;
import com.amazonaws.annotation.NotThreadSafe;
import com.amazonaws.client.builder.AwsAsyncClientBuilder;
import com.amazonaws.client.AwsAsyncClientParams;
/**
* Fluent builder for {@link com.amazonaws.services.workspacesweb.AmazonWorkSpacesWebAsync}. Use of the builder is
* preferred over using constructors of the client class.
**/
@NotThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public final class AmazonWorkSpacesWebAsyncClientBuilder extends AwsAsyncClientBuilder<AmazonWorkSpacesWebAsyncClientBuilder, AmazonWorkSpacesWebAsync> {
private static final ClientConfigurationFactory CLIENT_CONFIG_FACTORY = new ClientConfigurationFactory();;
/**
* @return Create new instance of builder with all defaults set.
*/
public static AmazonWorkSpacesWebAsyncClientBuilder standard() {
return new AmazonWorkSpacesWebAsyncClientBuilder();
}
/**
* @return Default async client using the {@link com.amazonaws.auth.DefaultAWSCredentialsProviderChain} and
* {@link com.amazonaws.regions.DefaultAwsRegionProviderChain} chain
*/
public static AmazonWorkSpacesWebAsync defaultClient() {
return standard().build();
}
private AmazonWorkSpacesWebAsyncClientBuilder() {
super(CLIENT_CONFIG_FACTORY);
}
/**
* Construct an asynchronous implementation of AmazonWorkSpacesWebAsync using the current builder configuration.
*
* @param params
* Current builder configuration represented as a parameter object.
* @return Fully configured implementation of AmazonWorkSpacesWebAsync.
*/
@Override
protected AmazonWorkSpacesWebAsync build(AwsAsyncClientParams params) {
return new AmazonWorkSpacesWebAsyncClient(params);
}
}
|
aws/aws-sdk-java
|
aws-java-sdk-workspacesweb/src/main/java/com/amazonaws/services/workspacesweb/AmazonWorkSpacesWebAsyncClientBuilder.java
|
Java
|
apache-2.0
| 2,496
|
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.shield.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.shield.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;
/**
* DescribeEmergencyContactSettingsResult JSON Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeEmergencyContactSettingsResultJsonUnmarshaller implements Unmarshaller<DescribeEmergencyContactSettingsResult, JsonUnmarshallerContext> {
public DescribeEmergencyContactSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {
DescribeEmergencyContactSettingsResult describeEmergencyContactSettingsResult = new DescribeEmergencyContactSettingsResult();
int originalDepth = context.getCurrentDepth();
String currentParentElement = context.getCurrentParentElement();
int targetDepth = originalDepth + 1;
JsonToken token = context.getCurrentToken();
if (token == null)
token = context.nextToken();
if (token == VALUE_NULL) {
return describeEmergencyContactSettingsResult;
}
while (true) {
if (token == null)
break;
if (token == FIELD_NAME || token == START_OBJECT) {
if (context.testExpression("EmergencyContactList", targetDepth)) {
context.nextToken();
describeEmergencyContactSettingsResult.setEmergencyContactList(new ListUnmarshaller<EmergencyContact>(EmergencyContactJsonUnmarshaller
.getInstance())
.unmarshall(context));
}
} else if (token == END_ARRAY || token == END_OBJECT) {
if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
if (context.getCurrentDepth() <= originalDepth)
break;
}
}
token = context.nextToken();
}
return describeEmergencyContactSettingsResult;
}
private static DescribeEmergencyContactSettingsResultJsonUnmarshaller instance;
public static DescribeEmergencyContactSettingsResultJsonUnmarshaller getInstance() {
if (instance == null)
instance = new DescribeEmergencyContactSettingsResultJsonUnmarshaller();
return instance;
}
}
|
aws/aws-sdk-java
|
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/transform/DescribeEmergencyContactSettingsResultJsonUnmarshaller.java
|
Java
|
apache-2.0
| 3,168
|
package Unison::Utilities::Cluster;
use CBT::debug;
CBT::debug::identify_file() if ($CBT::debug::trace_uses);
use strict;
use warnings;
use base 'Exporter';
our @EXPORT = ();
our @EXPORT_OK = qw( cluster_data);
use Algorithm::Cluster qw/kcluster/;
sub new {
my $self = {};
bless $self;
$self->{param}->{npass} = 10;
$self->{param}->{transpose} = 0;
$self->{param}->{npass} = 10;
$self->{param}->{method} = 'a';
$self->{param}->{dist} = 'e';
$self->setParam(@_);
if ( !defined( $self->{param}->{nclusters} ) ) {
warn "number of clusters not set, will use default value of 4";
$self->{param}->{nclusters} = 4;
}
if ( !defined( $self->{param}->{algorithm} ) ) {
warn "Algorithm not set, will use default k-cluster";
$self->{param}->{algorithm} = "kclust";
}
return $self;
}
## method: setParam(parameters)
## sets clustering parameters in hash-style key=>value
## format
sub setParam {
my $self = shift;
my %param = @_;
foreach my $p ( keys %param ) {
$self->{param}->{$p} = $param{$p}
if ( defined $param{$p} && $param{$p} ne "" );
}
}
##
## Cluster values stored in a hash
## return 2D array of clusters
##
sub cluster_2dhash {
my ( $self, $scores ) = @_;
my ( @data, @mask, @weight );
my ( $clusters, $centroids, $error, $found, $cluster_arr );
my (%data_by_cluster);
my $k = 0;
foreach my $i ( keys %$scores ) {
foreach my $j ( keys %{ $$scores{$i} } ) {
if ( defined( $$scores{$i}{$j} ) ) {
$data[$k] = [ $$scores{$i}{$j} ];
${ $mask[$k] }[0] = 1;
$k++;
}
}
}
@weight = (1.0);
#------------------
# Define the params we want to pass to kcluster
my %params = (
nclusters => $self->{param}->{nclusters},
transpose => $self->{param}->{transpose},
npass => $self->{param}->{npass},
method => $self->{param}->{method},
dist => $self->{param}->{dist},
data => \@data,
mask => \@mask,
weight => \@weight,
);
( $clusters, $centroids, $error, $found ) = kcluster(%params);
my $i = 0;
foreach ( @{$clusters} ) {
push @{ $data_by_cluster{$_} }, @{ $data[$i] };
++$i;
}
$i = 0;
foreach ( @{$centroids} ) {
my @min_max = sort { $a <=> $b } @{ $data_by_cluster{$i} };
push @$cluster_arr, [@min_max];
++$i;
}
$self->{cluster_arr} = $cluster_arr;
return $cluster_arr;
}
##
## sort the ranges
## return the association
## based on the sorted range
## the input value belongs to
##
sub get_association {
my ( $self, $score, $order ) = @_;
my $sc;
if ( $order == -1 ) {
@$sc = sort { $$b[0] <=> $$a[0] } @{ $self->{cluster_arr} };
}
else {
@$sc = sort { $$a[0] <=> $$b[0] } @{ $self->{cluster_arr} };
}
foreach my $i ( 0 .. $self->{param}->{nclusters} - 1 ) {
return ${ $self->{param}->{associate} }[$i]
if ( $score <= $$sc[$i][ $#{ $$sc[$i] } ] and $score >= $$sc[$i][0] );
}
return ${ $self->{param}->{associate} }[ $self->{param}->{nclusters} ];
}
1;
|
unison/unison
|
perl5/Unison/Utilities/Cluster.pm
|
Perl
|
apache-2.0
| 3,268
|
<?php
/*
* @name Helpers.trait.php
* @copyright (c) 2013 sinan eker
* @required:
* Helpers.namespace.php
*/
namespace Helpers\traits;
trait Helpers
{
/*
* @param [int $count = 0]
* @return void
* @exception InvalidArgumentException when $count = 0
* @description
* * This function throws a InvalidArgumentException if the $count param is 0.
* * It can be used to check if a function has at least one parameter given.
*/
private static function noArgsException($count = 0)
{
if (ARGUMENTS_EXCEPTION === false)
{
return void;
} else if ($count === 0){
throw new \InvalidArgumentException("Not enaught arguments given!");
}
}
/*
* @param [mixed &$var]
* @return array $dump | string $dump
* @exception InvalidArgumentException when no arguments are given
* @description
* * The function is like the var_dump function, except this function returns the result of the var_dump using output buffering (ob).
* * When you pass just one parameter to the function, it will only return the dump string not the one dump string in a array.
* * Passing two parameters or more to the function will return a array with the dump strings.
*/
private static function varDump()
{
$args = func_get_args();
$count = count($args);
static::noArgsException($count);
$i = 0;
$dump = [];
while ($i < $count)
{
ob_start();
var_dump($args[$i]);
$dump[$i] = ob_get_clean();
++$i;
}
if (count($dump) === 1)
{
return $dump[0];
}
return $dump;
}
/*
* @name contains
* @param [string $haystack, string | array $needle]
* @return bool $str_contains
* @exception
* * \InvalidArgumentException when $haystack isn't a string
* * \InvalidArgumentException when $needle isn't a array or string
*/
private static function contains($haystack, $needle)
{
if (!is_string($haystack))
{
throw new \InvalidArgumentException("\$haystack must be a string!");
}
foreach ((array) $needle as $x)
{
if (strpos($haystack, $x) !== false)
{
return true;
}
}
return false;
}
/*
* @name getMainNamespaceName
* @param [string $namespace = __NAMESPACE__]
* @return string $main_namespace
*/
private static function getMainNamespaceName($namespace = __NAMESPACE__)
{
if (!static::contains($namespace, "\\"))
{
return $namespace;
} else {
$exp = explode(BACKSLASH, $namespace);
return $exp[0];
}
}
/*
* @example
* * var_dump( Helpers::getAllArrayValuesExcept(1, [0 => true, 1 => "foo", 2 => "bar"]) );
* * array(2) {
* * [0]=>
* * bool(true)
* * [1]=>
* * string(3) "bar"
* * }
*/
private static function getAllArrayValuesExcept($key, array $array)
{
$newArray = [];
foreach ($array as $k => $val)
{
if ($k === $key)
{
continue;
}
$newArray[] = $val;
}
return $newArray;
}
/*
* @name appendArray
* @param [array $appendTo, array &$arrays]
* @return array $appendTo | void
* @exception InvalidArgumentException @see \Helpers\Helpers::noArgsException
* @example
* * var_dump( Helpers::appendArray(["first" => "foo", "second" => "bar"], ["third" => "baz"], ["fourth" => "bat"]) );
* * /*
* * array(4) {
* * ["first"]=>
* * string(3) "foo"
* * ["second"]=>
* * string(3) "bar"
* * ["third"]=>
* * string(3) "baz"
* * ["fourth"]=>
* * string(3) "bat"
* * }
* *
*/
private static function appendArray()
{
$args = func_get_args();
if (count($args) < 2)
{
static::noArgsException();
}
return array_merge($args[0], call_user_func_array("array_merge", static::getAllArrayValuesExcept(0, $args)));
}
/*
* @name shiftKeyUp
* @param [array $array]
* @return array $newArray
* @description
* * This function shifts every array key up by 1.
* * Before doing that the array will be converted to a numerical array.
*/
private static function shiftKeyUp(array $array)
{
$array = array_values($array); // convert to numerical array
$newArray = [];
$i = 0;
while ($i < count($array))
{
$newArray[$i+1] = $array[$i];
++$i;
}
return $newArray;
}
/*
* @name exceptionToJson
* @param [(Exception $e, array &$add]
* @return string $json_string
*/
private static function exceptionToJson(\Exception $e)
{
$args = func_get_args();
$exception = [
$e->getMessage()."\n",
$e->getFile()."\n",
$e->getCode()."\n",
$e->getLine()."\n",
"trace" => []
];
$trace = $e->getTrace();
$i = 0;
while ($i < count($trace))
{
$exception["trace"][$i] = $trace[$i];
++$i;
}
$i = 0;
while ($i < 4)
{
$exception[$i] = str_replace(['"', "\n"], ["'", ""], $exception[$i]);
++$i;
}
$json_array = array_combine(["message","file","code","line","trace"], array_values($exception));
if (count($args) > 1)
{
$arg = static::shiftKeyUp( static::getAllArrayValuesExcept(0, $args) ); // shift key up to reserve key one for the first argument | getting all other function arguments
$arg[0] = $json_array; // first function parameter
$json_array = call_user_func_array([ "\Helpers\Helpers", "appendArray" ], $arg);
}
return json_encode($json_array);
}
/*
* @name referenceValues
* @param [array $arr]
* @description:
* * * This is a very useful function. It converts 'normal' array values to reference values.
* * * When you are trying to pass parameters to e.g. mysqli_bind via call_user_func_array a error occures in PHP 5.3 / 5.3.
* * * The error is like "Warning: Parameter 2 to mysqli_stmt::bind_param() expected to be a reference, value given ..."
*/
private static function referenceValues(array $arr)
{
$refs = [];
foreach ($arr as $key => $value)
{
$refs[$key] = &$arr[$key]; // to reference
}
return $refs;
}
/*
private static function getInbetweenStrings($start, $end, $str)
{
$matches = [];
$regex = "/$start([a-zA-Z0-9_]*)$end/";
preg_match_all($regex, $str, $matches);
return $matches[1];
}
*/
}
|
SinanEker/corx
|
traits/Helpers.trait.php
|
PHP
|
apache-2.0
| 7,110
|
package com.thayer.idsservice.test;
import org.quartz.Scheduler;
import org.quartz.SchedulerFactory;
import org.quartz.Trigger;
import org.quartz.impl.StdSchedulerFactory;
public class JDBCJobStoreRunner {
public static void main(String args[]) {
try {
SchedulerFactory schedulerFactory = new StdSchedulerFactory();
Scheduler scheduler = schedulerFactory.getScheduler();
// ①获取调度器中所有的触发器组
String[] triggerGroups = scheduler.getTriggerGroupNames();
// ②重新恢复在tgroup1组中,名为trigger1_1触发器的运行
for (int i = 0; i < triggerGroups.length; i++) {
String[] triggers = scheduler.getTriggerNames(triggerGroups[i]);
for (int j = 0; j < triggers.length; j++) {
Trigger tg = scheduler.getTrigger(triggers[j], triggerGroups[i]);
System.out.println(tg.getName());
}
}
scheduler.start();
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
lingdongrushui/International-Distribution-System
|
ids/test/com/thayer/idsservice/test/JDBCJobStoreRunner.java
|
Java
|
apache-2.0
| 959
|
# Marasmius pseudocupressiformis var. pseudocupressiformis VARIETY
#### Status
ACCEPTED
#### According to
Index Fungorum
#### Published in
Fieldiana, Bot. 21: 53 (1989)
#### Original name
Marasmius pseudocupressiformis var. pseudocupressiformis
### Remarks
null
|
mdoering/backbone
|
life/Fungi/Basidiomycota/Agaricomycetes/Agaricales/Marasmiaceae/Marasmius/Marasmius pseudocupressiformis/Marasmius pseudocupressiformis pseudocupressiformis/README.md
|
Markdown
|
apache-2.0
| 266
|
#!/usr/bin/env python
'''
Use Netmiko to execute 'show arp' on pynet-rtr1, pynet-rtr2, and juniper-srx.
'''
from netmiko import ConnectHandler
from getpass import getpass
from routers import pynet_rtr1, pynet_rtr2, pynet_jnpr_srx1
def main():
'''
Use Netmiko to execute 'show arp' on pynet-rtr1, pynet-rtr2, and juniper-srx.
'''
ip_address = raw_input("Please enter IP: ")
password = getpass()
pynet_rtr1['ip'] = ip_address
pynet_rtr2['ip'] = ip_address
pynet_jnpr_srx1['ip'] = ip_address
pynet_rtr1['password'] = password
pynet_rtr2['password'] = password
pynet_jnpr_srx1['password'] = password
#for each router send show arp command and print result
for router in (pynet_rtr1, pynet_rtr2, pynet_jnpr_srx1):
ssh_conn = ConnectHandler(verbose=False, **router)
output = ssh_conn.send_command('show arp')
print ">>> {}: \n".format(ssh_conn.ip)
print output
print ">>>\n"
if __name__ == '__main__':
main()
|
adleff/python_ansible
|
class4/ex6.py
|
Python
|
apache-2.0
| 1,008
|
using MessagePack;
namespace dexih.functions
{
/// <summary>
/// Contains information on an active remote agent.
/// </summary>
[MessagePackObject]
public class DexihActiveAgent
{
/// <summary>
/// RemoteAgentKey reference in the repository
/// </summary>
[Key(0)]
public long RemoteAgentKey { get; set; }
/// <summary>
/// The public reference for the remote agent instance.
/// </summary>
[Key(1)]
public string InstanceId { get; set; }
[Key(2)]
public string User { get; set; }
[Key(3)]
public string Name { get; set; }
[Key(4)]
public bool IsRunning { get; set; }
[Key(5)]
public string IpAddress { get; set; }
[Key(6)]
public bool IsEncrypted { get; set; }
[Key(7)]
public EDataPrivacyStatus DataPrivacyStatus { get; set; }
[Key(8)]
public DownloadUrl[] DownloadUrls { get; set; }
[Key(9)]
public bool UpgradeAvailable { get; set; }
[Key(10)]
public string Version { get; set; }
[Key(11)]
public string LatestVersion { get; set; }
[Key(12)]
public string LatestDownloadUrl { get; set; }
[Key(13)]
public NamingStandards NamingStandards { get; set; }
}
}
|
dataexperts/dexih.transforms
|
src/dexih.functions/DexihActiveAgent.cs
|
C#
|
apache-2.0
| 1,385
|
# Gomphrena polypogon Moq. ex Seub. SPECIES
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Caryophyllales/Amaranthaceae/Gomphrena/Gomphrena polypogon/README.md
|
Markdown
|
apache-2.0
| 183
|
# Copyright 2012 majgis Contributors
#
# Individuals comprising majgis Contributors are identified in
# the NOTICE file found in the root directory of this project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# or
# in the file named LICENSE in the root directory of this project.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
""" From a list of folders, export msd documents from existing mxds, ArcGIS 10
"""
import os
from glob import glob
from arcpy import mapping
from symbologyFromArcMapDoc import MxdExtras
folders = [r'F:\Projects\NationalAtlas\ArcGIS_Server\Server', r'F:\Projects\NationalAtlas\ArcGIS_Server\Server\biodiversity']
searchPattern = '*.mxd'
ignores = ['Overlap']
tempMsg = "{0:>90} -> {1}"
newMsg = "TABLE: {0} FIELD: {1}"
mxdSuffix = ".mxd"
msdSuffix = ".msd"
for folder in folders:
mxdPaths = glob(os.path.join(folder, searchPattern))
for mxdPath in mxdPaths:
mxd = mapping.MapDocument(mxdPath)
lyrs = mapping.ListLayers(mxd)
mxde = MxdExtras(mxdPath)
msdPath = mxdPath.replace(mxdSuffix, msdSuffix)
for lyr in lyrs:
lyre = mxde[lyr.name]
joinTable = lyre.joinedTableName
joinField = lyre.symbologyShortFieldName
if joinTable:
newName = newMsg.format(joinTable, joinField)
else:
newName = lyr.name
#print tempMsg.format(lyr.name, newName)
lyr.name = newName
mxd.save()
#delete existing msd
if os.path.exists(msdPath):
os.remove(msdPath)
#export msd
mapping.ConvertToMSD(mxd,msdPath)
print msdPath
|
majgis/majgis
|
experiments/iterateArcMapDocsByFolder.py
|
Python
|
apache-2.0
| 2,315
|
package d3bug.kidswing;
import java.applet.AudioClip;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;
import d3bug.audio.AudioClipAccess;
public class SpeakingButton extends JButton {
private AudioClip audioClip;
public SpeakingButton() {
super();
addMouseListener(new MyMouseListener());
}
public SpeakingButton(Action arg0) {
super(arg0);
}
public SpeakingButton(Icon arg0) {
super(arg0);
}
public SpeakingButton(String arg0, Icon arg1) {
super(arg0, arg1);
}
public SpeakingButton(String arg0) {
super(arg0);
}
public void setAudioClip(String audio) {
audioClip = AudioClipAccess.getInstance().getAudioClip(audio);
}
private void startPlaying() {
if (audioClip == null) return;
audioClip.play();
}
private void stopPlaying() {
if (audioClip == null) return;
audioClip.stop();
}
private class MyMouseListener implements MouseListener {
public void mouseEntered(MouseEvent arg0) {
startPlaying();
}
public void mouseExited(MouseEvent arg0) {
stopPlaying();
}
public void mouseClicked(MouseEvent arg0) {}
public void mousePressed(MouseEvent arg0) {}
public void mouseReleased(MouseEvent arg0) {}
}
}
|
bitsetd4d/word-playground
|
GameUtil/src/d3bug/kidswing/SpeakingButton.java
|
Java
|
apache-2.0
| 1,292
|
package cn.niriqiang.blog.service;
import cn.niriqiang.BlogApplicationTests;
import cn.niriqiang.blog.domain.Article;
import cn.niriqiang.blog.domain.Tag;
import cn.niriqiang.blog.dto.Result;
import cn.niriqiang.blog.enums.ResultEnum;
import cn.niriqiang.blog.exception.ArticleException;
import com.github.pagehelper.Page;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Created by fengyuwusong on 2017/9/27 15:13.
*/
@Transactional
public class ArticleServiceTest extends BlogApplicationTests {
@Autowired
private ArticleService articleService;
@Test
public void insertArticle() throws Exception {
Article article = new Article();
article.setAuthor("风雨雾凇");
Set<Tag> tags = new HashSet<>();
Tag tag = new Tag();
tag.setTagName("333");
tags.add(tag);
article.setArticleTags(tags);
article.setCategoryId(1);
article.setContent("我是content");
article.setDescription("我是description");
article.setTitle("我是title");
articleService.insertArticle(article);
try {
Article article1 = new Article();
article1.setAuthor("我是王晓佳");
article1.setArticleTags(null);
article1.setCategoryId(1);
article1.setContent("我是content");
article1.setDescription("我是description");
article1.setTitle("我是王晓佳");
articleService.insertArticle(article1);
} catch (ArticleException e) {
Assert.assertEquals(e.getCode(), ResultEnum.ADD_EXITS.getCode());
}
}
@Test
public void findByTitle() throws Exception {
Result result = articleService.findByTitle("我是王晓佳");
System.out.println(result);
try {
articleService.findByTitle("我是王晓佳11");
} catch (ArticleException e) {
System.out.println(e.getMessage());
}
}
@Test
public void findOne() throws Exception {
Result result = articleService.findOne(2);
System.out.println(result);
try {
Result r2 = articleService.findOne(3);
} catch (ArticleException e) {
Assert.assertEquals(e.getCode(), ResultEnum.NOT_FOUND.getCode());
}
}
@Test
public void updateArticle() {
Article article = new Article();
article.setId(2);
article.setAuthor("风雨雾凇");
Set<Tag> tags = new HashSet<>();
Tag tag = new Tag();
tag.setTagName("333");
tags.add(tag);
article.setArticleTags(tags);
article.setCategoryId(6);
article.setContent("我是content");
article.setDescription("我是description");
article.setTitle("我是title");
articleService.updateArticle(article);
}
@Test
public void findAll() {
Page<Article> articles = (Page<Article>) articleService.findAll(1).getData();
System.out.println(articles.getResult().get(0));
}
@Test
public void delete() {
int id = 1;
try {
System.out.println(articleService.deleteArticle(id));
} catch (ArticleException e) {
System.out.println(e.getMessage());
}
id = 2;
System.out.println(articleService.deleteArticle(id));
}
@Test
public void findByCategory() {
int cid = 1;
Result result = articleService.findByCategory(1, cid);
Page<Article> articles = (Page<Article>) result.getData();
List<Article> list = articles.getResult();
System.out.println(list.get(0));
try {
cid = 2;
result = articleService.findByCategory(1, cid);
} catch (ArticleException e) {
System.out.println(e.getMessage());
}
}
@Test
public void search() {
try {
Result result = articleService.search(1, "1111");
Page<Article> articles = (Page<Article>) result.getData();
List<Article> list = articles.getResult();
System.out.println(list.get(0));
} catch (ArticleException e) {
System.out.println(e.getMessage());
}
}
}
|
fengyuwusong/blog
|
src/test/java/cn/niriqiang/blog/service/ArticleServiceTest.java
|
Java
|
apache-2.0
| 4,446
|
/*
* To change this template, choose Tool | Templates
* and open the template in the editor.
*/
package br.com.amaterasu.view.text;
/**
*
* @author Maykon
*/
public class Txt {
public static String getTxt(String nomeArquivo, String var) {
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("br/com/amaterasu/view/text/" + nomeArquivo); // NOI18N
return bundle.getString(var);
}
}
|
maykonjv/plataforma-amaterasu
|
Amaterasu-Tool/src/br/com/amaterasu/view/text/Txt.java
|
Java
|
apache-2.0
| 430
|
package com.github.wei86609.osmanthus;
import com.github.wei86609.osmanthus.event.EngineIntercepter;
import com.github.wei86609.osmanthus.event.Event;
import com.github.wei86609.osmanthus.executor.RuleExecutor;
import com.github.wei86609.osmanthus.rule.Rule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DefaultEngine {
private final static Logger logger = LoggerFactory
.getLogger(DefaultEngine.class);
private Map<Rule.RuleType, RuleExecutor> ruleExecutorMap;
private final List<EngineIntercepter> engineIntercepters = new ArrayList<EngineIntercepter>();
public void addEngineIntercepter(EngineIntercepter engineIntercepter) {
this.engineIntercepters.add(engineIntercepter);
}
public void addRuleExecutor(RuleExecutor ruleExecutor) {
if (this.ruleExecutorMap == null) {
this.ruleExecutorMap = new HashMap<Rule.RuleType, RuleExecutor>();
}
this.ruleExecutorMap.put(ruleExecutor.getType(), ruleExecutor);
}
protected String executeRule(Event event, Rule rule) {
String nextRuleId = null;
try {
executeEventInterceptor(InterceptorType.RULE_BEFORE, event, rule,
null);
// perform rule
nextRuleId = this.ruleExecutorMap.get(rule.getType()).execute(
event, rule);
executeEventInterceptor(InterceptorType.RULE_POST, event, rule,
null);
} catch (Exception e) {
logger.error(
"Event[{}], execute current rule[{}] occurs exception",
event.getId(), rule.getId());
executeEventInterceptor(InterceptorType.RULE_EXCEPTION, event,
rule, e);
}
return nextRuleId;
}
protected void executeEventInterceptor(InterceptorType interceptorType,
Event event, Rule rule, Exception e) {
for (int i = 0; i < this.engineIntercepters.size(); i++) {
EngineIntercepter eventListener = this.engineIntercepters.get(i);
if (eventListener != null) {
if (InterceptorType.EVENT_INIT.equals(interceptorType)) {
eventListener.init(event);
} else if (InterceptorType.EVENT_COMPLETE
.equals(interceptorType)) {
eventListener.complete(event);
} else if (InterceptorType.EVENT_EXCEPTION
.equals(interceptorType)) {
eventListener.exception(event, e);
} else if (InterceptorType.RULE_BEFORE.equals(interceptorType)) {
eventListener.beforeRule(event, rule);
} else if (InterceptorType.RULE_POST.equals(interceptorType)) {
eventListener.afterRule(event, rule);
} else if (InterceptorType.RULE_EXCEPTION
.equals(interceptorType)) {
eventListener.hasErrorRule(event, rule, e);
} else if (InterceptorType.RULESET_INIT.equals(interceptorType)) {
eventListener.initRuleSet(event, rule);
}
}
}
}
}
|
wangwei86609/osmanthus
|
osmanthus-core/src/main/java/com/github/wei86609/osmanthus/DefaultEngine.java
|
Java
|
apache-2.0
| 3,317
|
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package edu.ndsu.eci.tapestry5cayenne.internal;
import org.apache.cayenne.map.ObjEntity;
import org.apache.tapestry5.commons.Location;
import org.apache.tapestry5.internal.bindings.AbstractBinding;
/**
* Binding for ObjEntity. Use as: ent:XXX where XXX is the entity name. For
* example: ent:User
*
* @author robertz
*
*/
public class ObjEntityBinding extends AbstractBinding {
private final ObjEntity entity;
private final String toString;
public ObjEntityBinding(Location location, ObjEntity entity, String toString) {
super(location);
this.entity = entity;
this.toString = toString;
}
public Object get() {
return entity;
}
public String toString() {
return toString;
}
}
|
NDSU-Information-Technology/tapestry5-cayenne
|
tapestry5-cayenne-core/src/main/java/edu/ndsu/eci/tapestry5cayenne/internal/ObjEntityBinding.java
|
Java
|
apache-2.0
| 1,292
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_39) on Wed Mar 11 11:15:19 CST 2015 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
类 com.sina.weibo.sdk.openapi.models.StatusList 的使用
</TITLE>
<META NAME="date" CONTENT="2015-03-11">
<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="类 com.sina.weibo.sdk.openapi.models.StatusList 的使用";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<HR>
<CENTER>
<H2>
<B>类 com.sina.weibo.sdk.openapi.models.StatusList<br>的使用</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">
使用 <A HREF="../../../../../../../com/sina/weibo/sdk/openapi/models/StatusList.html" title="com.sina.weibo.sdk.openapi.models 中的类">StatusList</A> 的软件包</FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#com.sina.weibo.sdk.openapi.models"><B>com.sina.weibo.sdk.openapi.models</B></A></TD>
<TD> </TD>
</TR>
</TABLE>
<P>
<A NAME="com.sina.weibo.sdk.openapi.models"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<A HREF="../../../../../../../com/sina/weibo/sdk/openapi/models/package-summary.html">com.sina.weibo.sdk.openapi.models</A> 中 <A HREF="../../../../../../../com/sina/weibo/sdk/openapi/models/StatusList.html" title="com.sina.weibo.sdk.openapi.models 中的类">StatusList</A> 的使用</FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">返回 <A HREF="../../../../../../../com/sina/weibo/sdk/openapi/models/StatusList.html" title="com.sina.weibo.sdk.openapi.models 中的类">StatusList</A> 的 <A HREF="../../../../../../../com/sina/weibo/sdk/openapi/models/package-summary.html">com.sina.weibo.sdk.openapi.models</A> 中的方法</FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../../../com/sina/weibo/sdk/openapi/models/StatusList.html" title="com.sina.weibo.sdk.openapi.models 中的类">StatusList</A></CODE></FONT></TD>
<TD><CODE><B>StatusList.</B><B><A HREF="../../../../../../../com/sina/weibo/sdk/openapi/models/StatusList.html#parse(java.lang.String)">parse</A></B>(java.lang.String jsonString)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<HR>
<HR>
</BODY>
</HTML>
|
cowthan/AyoWeibo
|
weibosdk/doc/doc/com/sina/weibo/sdk/openapi/models/class-use/StatusList.html
|
HTML
|
apache-2.0
| 3,090
|
package com.gome.haoyuangong.net.result.live;
/**
* 用户中心用户显示收藏和浏览等使用的结构体
* @author guohuiz
*/
public class ZhiBoUCenterRoomObject {
private String mRoomID;///直播室Id
private String mRoomName;///直播室名称
private String mSso_userid;///播主ssoid
private String linkPic;///图片链接地址
public String getmRoomID() {
return mRoomID;
}
public void setmRoomID(String mRoomID) {
this.mRoomID = mRoomID;
}
public String getmRoomName() {
return mRoomName;
}
public void setmRoomName(String mRoomName) {
this.mRoomName = mRoomName;
}
public String getmSso_userid() {
return mSso_userid;
}
public void setmSso_userid(String mSso_userid) {
this.mSso_userid = mSso_userid;
}
public String getLinkPic() {
return linkPic;
}
public void setLinkPic(String linkPic) {
this.linkPic = linkPic;
}
}
|
simplelifetian/GomeOnline
|
jrj-TouGu/src/com/gome/haoyuangong/net/result/live/ZhiBoUCenterRoomObject.java
|
Java
|
apache-2.0
| 913
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: rpc.rb [The Marionette Collective version 2.2.4]</title>
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
<script src="../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2013-05-20 17:40:03 +0000</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>pp</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>
|
zennoc/mcollective
|
doc/lib/mcollective/rpc_rb.html
|
HTML
|
apache-2.0
| 1,341
|
/**
* Copyright 2014
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package edu.tuberlin.dima.nerdle.stringmetric;
import scala.Option;
import com.rockymadden.stringmetric.similarity.LevenshteinMetric;
/**
* Extends StringDistance
* @author jasir
*
*/
public class LevenshteinDistance implements StringDistance {
/**
* Compares two values with the Levenshtein distance metric
*/
@Override
public double getDistance(String a, String b) {
Option<Object> value = LevenshteinMetric.apply().compare(a, b, null);
String valueString = value.toString().replace("Some(", "")
.replace(")", "");
if (!valueString.equals("None")) {
double comparedValue = Double.parseDouble(valueString);
return comparedValue;
}else{
return 0.0D;
}
}
}
|
impro3-nerdle/nerdle
|
nerdle-oie/src/main/java/edu/tuberlin/dima/nerdle/stringmetric/LevenshteinDistance.java
|
Java
|
apache-2.0
| 1,285
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Thu Sep 17 01:48:47 IST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Uses of Class org.apache.solr.security.AuthorizationContext (Solr 5.3.1 API)</title>
<meta name="date" content="2015-09-17">
<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.solr.security.AuthorizationContext (Solr 5.3.1 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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/solr/security/AuthorizationContext.html" title="class in org.apache.solr.security">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="../../../../../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/solr/security/class-use/AuthorizationContext.html" target="_top">Frames</a></li>
<li><a href="AuthorizationContext.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.apache.solr.security.AuthorizationContext" class="title">Uses of Class<br>org.apache.solr.security.AuthorizationContext</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="../../../../../org/apache/solr/security/AuthorizationContext.html" title="class in org.apache.solr.security">AuthorizationContext</a></span><span class="tabEnd"> </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.apache.solr.security">org.apache.solr.security</a></td>
<td class="colLast">
<div class="block">Commonly used classes for Solr security framework.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.apache.solr.security">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/solr/security/AuthorizationContext.html" title="class in org.apache.solr.security">AuthorizationContext</a> in <a href="../../../../../org/apache/solr/security/package-summary.html">org.apache.solr.security</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/solr/security/package-summary.html">org.apache.solr.security</a> with parameters of type <a href="../../../../../org/apache/solr/security/AuthorizationContext.html" title="class in org.apache.solr.security">AuthorizationContext</a></span><span class="tabEnd"> </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/apache/solr/security/AuthorizationResponse.html" title="class in org.apache.solr.security">AuthorizationResponse</a></code></td>
<td class="colLast"><span class="strong">RuleBasedAuthorizationPlugin.</span><code><strong><a href="../../../../../org/apache/solr/security/RuleBasedAuthorizationPlugin.html#authorize(org.apache.solr.security.AuthorizationContext)">authorize</a></strong>(<a href="../../../../../org/apache/solr/security/AuthorizationContext.html" title="class in org.apache.solr.security">AuthorizationContext</a> context)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/solr/security/AuthorizationResponse.html" title="class in org.apache.solr.security">AuthorizationResponse</a></code></td>
<td class="colLast"><span class="strong">AuthorizationPlugin.</span><code><strong><a href="../../../../../org/apache/solr/security/AuthorizationPlugin.html#authorize(org.apache.solr.security.AuthorizationContext)">authorize</a></strong>(<a href="../../../../../org/apache/solr/security/AuthorizationContext.html" title="class in org.apache.solr.security">AuthorizationContext</a> context)</code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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/apache/solr/security/AuthorizationContext.html" title="class in org.apache.solr.security">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="../../../../../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/solr/security/class-use/AuthorizationContext.html" target="_top">Frames</a></li>
<li><a href="AuthorizationContext.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
<i>Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.</i>
<script src='../../../../../prettify.js' type='text/javascript'></script>
<script type='text/javascript'>
(function(){
var oldonload = window.onload;
if (typeof oldonload != 'function') {
window.onload = prettyPrint;
} else {
window.onload = function() {
oldonload();
prettyPrint();
}
}
})();
</script>
</small></p>
</body>
</html>
|
TitasNandi/Summer_Project
|
solr-5.3.1/docs/solr-core/org/apache/solr/security/class-use/AuthorizationContext.html
|
HTML
|
apache-2.0
| 7,809
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Sat May 17 15:31:39 CEST 2014 -->
<title>Constant Field Values (Luchess 1.0.0 API)</title>
<meta name="date" content="2014-05-17">
<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="Constant Field Values (Luchess 1.0.0 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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>Package</li>
<li>Class</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>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="index.html?constant-values.html" target="_top">Frames</a></li>
<li><a href="constant-values.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Constant Field Values" class="title">Constant Field Values</h1>
<h2 title="Contents">Contents</h2>
<ul>
<li><a href="#io.elegie">io.elegie.*</a></li>
</ul>
</div>
<div class="constantValuesContainer"><a name="io.elegie">
<!-- -->
</a>
<h2 title="io.elegie">io.elegie.*</h2>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.app.lucene4x.explore.<a href="io/elegie/luchess/app/lucene4x/explore/GameListQueryBuilder.html" title="class in io.elegie.luchess.app.lucene4x.explore">GameListQueryBuilder</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.app.lucene4x.explore.GameListQueryBuilder.MAX_ELO">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/app/lucene4x/explore/GameListQueryBuilder.html#MAX_ELO">MAX_ELO</a></code></td>
<td class="colLast"><code>5000</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.app.lucene4x.index.analysis.<a href="io/elegie/luchess/app/lucene4x/index/analysis/MoveTextTokenizer.html" title="class in io.elegie.luchess.app.lucene4x.index.analysis">MoveTextTokenizer</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.app.lucene4x.index.analysis.MoveTextTokenizer.MOVE_ZERO">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/app/lucene4x/index/analysis/MoveTextTokenizer.html#MOVE_ZERO">MOVE_ZERO</a></code></td>
<td class="colLast"><code>88</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.core.domain.entities.<a href="io/elegie/luchess/core/domain/entities/MoveText.html" title="class in io.elegie.luchess.core.domain.entities">MoveText</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.MoveText.SEPARATOR">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/MoveText.html#SEPARATOR">SEPARATOR</a></code></td>
<td class="colLast"><code>32</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.core.domain.entities.<a href="io/elegie/luchess/core/domain/entities/Position.html" title="class in io.elegie.luchess.core.domain.entities">Position</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Position.POSITION_SERIALIZATION_SEPARATOR">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Position.html#POSITION_SERIALIZATION_SEPARATOR">POSITION_SERIALIZATION_SEPARATOR</a></code></td>
<td class="colLast"><code>";"</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.core.domain.entities.<a href="io/elegie/luchess/core/domain/entities/Vertex.html" title="class in io.elegie.luchess.core.domain.entities">Vertex</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.END_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#END_COL">END_COL</a></code></td>
<td class="colLast"><code>104</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.END_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#END_ROW">END_ROW</a></code></td>
<td class="colLast"><code>8</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.FIRST_BLACK_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#FIRST_BLACK_ROW">FIRST_BLACK_ROW</a></code></td>
<td class="colLast"><code>8</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.FIRST_WHITE_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#FIRST_WHITE_ROW">FIRST_WHITE_ROW</a></code></td>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.FOURTH_BLACK_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#FOURTH_BLACK_ROW">FOURTH_BLACK_ROW</a></code></td>
<td class="colLast"><code>5</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.FOURTH_WHITE_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#FOURTH_WHITE_ROW">FOURTH_WHITE_ROW</a></code></td>
<td class="colLast"><code>4</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.KING_BISHOP_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#KING_BISHOP_COL">KING_BISHOP_COL</a></code></td>
<td class="colLast"><code>102</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.KING_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#KING_COL">KING_COL</a></code></td>
<td class="colLast"><code>101</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.KING_KNIGHT_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#KING_KNIGHT_COL">KING_KNIGHT_COL</a></code></td>
<td class="colLast"><code>103</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.KING_ROOK_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#KING_ROOK_COL">KING_ROOK_COL</a></code></td>
<td class="colLast"><code>104</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.QUEEN_BISHOP_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#QUEEN_BISHOP_COL">QUEEN_BISHOP_COL</a></code></td>
<td class="colLast"><code>99</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.QUEEN_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#QUEEN_COL">QUEEN_COL</a></code></td>
<td class="colLast"><code>100</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.QUEEN_KNIGHT_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#QUEEN_KNIGHT_COL">QUEEN_KNIGHT_COL</a></code></td>
<td class="colLast"><code>98</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.QUEEN_ROOK_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#QUEEN_ROOK_COL">QUEEN_ROOK_COL</a></code></td>
<td class="colLast"><code>97</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.SECOND_BLACK_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#SECOND_BLACK_ROW">SECOND_BLACK_ROW</a></code></td>
<td class="colLast"><code>7</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.SECOND_WHITE_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#SECOND_WHITE_ROW">SECOND_WHITE_ROW</a></code></td>
<td class="colLast"><code>2</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.START_COL">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#START_COL">START_COL</a></code></td>
<td class="colLast"><code>97</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.START_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#START_ROW">START_ROW</a></code></td>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.THIRD_BLACK_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#THIRD_BLACK_ROW">THIRD_BLACK_ROW</a></code></td>
<td class="colLast"><code>6</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.domain.entities.Vertex.THIRD_WHITE_ROW">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/core/domain/entities/Vertex.html#THIRD_WHITE_ROW">THIRD_WHITE_ROW</a></code></td>
<td class="colLast"><code>3</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.core.indexing.adapters.file.<a href="io/elegie/luchess/core/indexing/adapters/file/FileSourceDataUnit.html" title="class in io.elegie.luchess.core.indexing.adapters.file">FileSourceDataUnit</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.indexing.adapters.file.FileSourceDataUnit.FILE_ERROR">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/core/indexing/adapters/file/FileSourceDataUnit.html#FILE_ERROR">FILE_ERROR</a></code></td>
<td class="colLast"><code>".error"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.core.indexing.adapters.file.FileSourceDataUnit.FILE_PROCESSED">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/core/indexing/adapters/file/FileSourceDataUnit.html#FILE_PROCESSED">FILE_PROCESSED</a></code></td>
<td class="colLast"><code>".processed"</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.core.indexing.adapters.file.<a href="io/elegie/luchess/core/indexing/adapters/file/PGNFileSelector.html" title="class in io.elegie.luchess.core.indexing.adapters.file">PGNFileSelector</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.core.indexing.adapters.file.PGNFileSelector.EXTENSION_PGN">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/core/indexing/adapters/file/PGNFileSelector.html#EXTENSION_PGN">EXTENSION_PGN</a></code></td>
<td class="colLast"><code>".pgn"</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/CaptureToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">CaptureToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.CaptureToken.CAPTURE">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/CaptureToken.html#CAPTURE">CAPTURE</a></code></td>
<td class="colLast"><code>120</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/CastleToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">CastleToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.CastleToken.CASTLE_LARGE">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/CastleToken.html#CASTLE_LARGE">CASTLE_LARGE</a></code></td>
<td class="colLast"><code>"O-O-O"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.CastleToken.CASTLE_NODE">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/CastleToken.html#CASTLE_NODE">CASTLE_NODE</a></code></td>
<td class="colLast"><code>79</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.CastleToken.CASTLE_NODE_SEPARATOR">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/CastleToken.html#CASTLE_NODE_SEPARATOR">CASTLE_NODE_SEPARATOR</a></code></td>
<td class="colLast"><code>45</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.CastleToken.CASTLE_SMALL">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/CastleToken.html#CASTLE_SMALL">CASTLE_SMALL</a></code></td>
<td class="colLast"><code>"O-O"</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/ClosingTagPairToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">ClosingTagPairToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.ClosingTagPairToken.TAG_PAIR_CLOSING">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/ClosingTagPairToken.html#TAG_PAIR_CLOSING">TAG_PAIR_CLOSING</a></code></td>
<td class="colLast"><code>93</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/Dot1Token.html" title="class in io.elegie.luchess.pgn.impl.tokens">Dot1Token</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.Dot1Token.DOT">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/Dot1Token.html#DOT">DOT</a></code></td>
<td class="colLast"><code>46</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/EndOfLineCommentToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">EndOfLineCommentToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.EndOfLineCommentToken.EOL_COMMENT">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/EndOfLineCommentToken.html#EOL_COMMENT">EOL_COMMENT</a></code></td>
<td class="colLast"><code>59</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/MoveTextStartToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">MoveTextStartToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.MoveTextStartToken.START">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/MoveTextStartToken.html#START">START</a></code></td>
<td class="colLast"><code>49</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/NAGToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">NAGToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.NAGToken.NAG">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/NAGToken.html#NAG">NAG</a></code></td>
<td class="colLast"><code>36</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/OpeningTagPairToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">OpeningTagPairToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.OpeningTagPairToken.TAG_PAIR_OPENING">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/OpeningTagPairToken.html#TAG_PAIR_OPENING">TAG_PAIR_OPENING</a></code></td>
<td class="colLast"><code>91</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/PromotionToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">PromotionToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.PromotionToken.PROMOTION">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/PromotionToken.html#PROMOTION">PROMOTION</a></code></td>
<td class="colLast"><code>61</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/StandardCommentToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">StandardCommentToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.StandardCommentToken.STD_COMMENT_END">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/StandardCommentToken.html#STD_COMMENT_END">STD_COMMENT_END</a></code></td>
<td class="colLast"><code>125</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.StandardCommentToken.STD_COMMENT_START">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/StandardCommentToken.html#STD_COMMENT_START">STD_COMMENT_START</a></code></td>
<td class="colLast"><code>123</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/TagPairNameToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">TagPairNameToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TagPairNameToken.BLACK">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TagPairNameToken.html#BLACK">BLACK</a></code></td>
<td class="colLast"><code>"Black"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TagPairNameToken.BLACK_ELO">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TagPairNameToken.html#BLACK_ELO">BLACK_ELO</a></code></td>
<td class="colLast"><code>"BlackElo"</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TagPairNameToken.RESULT">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TagPairNameToken.html#RESULT">RESULT</a></code></td>
<td class="colLast"><code>"Result"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TagPairNameToken.WHITE">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TagPairNameToken.html#WHITE">WHITE</a></code></td>
<td class="colLast"><code>"White"</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TagPairNameToken.WHITE_ELO">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TagPairNameToken.html#WHITE_ELO">WHITE_ELO</a></code></td>
<td class="colLast"><code>"WhiteElo"</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/TagPairValueToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">TagPairValueToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TagPairValueToken.TAG_PAIR_VALUE_DELIMITOR">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TagPairValueToken.html#TAG_PAIR_VALUE_DELIMITOR">TAG_PAIR_VALUE_DELIMITOR</a></code></td>
<td class="colLast"><code>34</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/TerminationToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">TerminationToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TerminationToken.BLACK_WINS">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TerminationToken.html#BLACK_WINS">BLACK_WINS</a></code></td>
<td class="colLast"><code>"0-1"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TerminationToken.DRAW">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TerminationToken.html#DRAW">DRAW</a></code></td>
<td class="colLast"><code>"1/2-1/2"</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TerminationToken.UNFINISHED">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TerminationToken.html#UNFINISHED">UNFINISHED</a></code></td>
<td class="colLast"><code>"*"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.TerminationToken.WHITE_WINS">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/TerminationToken.html#WHITE_WINS">WHITE_WINS</a></code></td>
<td class="colLast"><code>"1-0"</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.pgn.impl.tokens.<a href="io/elegie/luchess/pgn/impl/tokens/VariationToken.html" title="class in io.elegie.luchess.pgn.impl.tokens">VariationToken</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.VariationToken.VARIATION_END">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/VariationToken.html#VARIATION_END">VARIATION_END</a></code></td>
<td class="colLast"><code>41</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.pgn.impl.tokens.VariationToken.VARIATION_START">
<!-- -->
</a><code>public static final char</code></td>
<td><code><a href="io/elegie/luchess/pgn/impl/tokens/VariationToken.html#VARIATION_START">VARIATION_START</a></code></td>
<td class="colLast"><code>40</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.client.<a href="io/elegie/luchess/web/client/ClientContext.html" title="enum in io.elegie.luchess.web.client">ClientContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.client.ClientContext.LUCHESS_APP_FILE">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/client/ClientContext.html#LUCHESS_APP_FILE">LUCHESS_APP_FILE</a></code></td>
<td class="colLast"><code>"luchess-app.configuration.file"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.web.client.ClientContext.LUCHESS_WEB_FILE">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/client/ClientContext.html#LUCHESS_WEB_FILE">LUCHESS_WEB_FILE</a></code></td>
<td class="colLast"><code>"luchess-web.configuration.file"</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.framework.<a href="io/elegie/luchess/web/framework/Initializer.html" title="class in io.elegie.luchess.web.framework">Initializer</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.Initializer.CONTEXT_FACTORY_CLASS">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/Initializer.html#CONTEXT_FACTORY_CLASS">CONTEXT_FACTORY_CLASS</a></code></td>
<td class="colLast"><code>"framework.context.factory.class"</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.framework.<a href="io/elegie/luchess/web/framework/ResourceDispatcher.html" title="class in io.elegie.luchess.web.framework">ResourceDispatcher</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.ResourceDispatcher.APP_KEY">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/ResourceDispatcher.html#APP_KEY">APP_KEY</a></code></td>
<td class="colLast"><code>"framework.dispatcher.app"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.ResourceDispatcher.ASSETS_KEY">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/ResourceDispatcher.html#ASSETS_KEY">ASSETS_KEY</a></code></td>
<td class="colLast"><code>"framework.dispatcher.assets"</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.framework.presenting.freemarker.<a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerView.html" title="class in io.elegie.luchess.web.framework.presenting.freemarker">FreemarkerView</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.presenting.freemarker.FreemarkerView.ATTACHMENT_KEY">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerView.html#ATTACHMENT_KEY">ATTACHMENT_KEY</a></code></td>
<td class="colLast"><code>"attachment"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.presenting.freemarker.FreemarkerView.DURATION_KEY">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerView.html#DURATION_KEY">DURATION_KEY</a></code></td>
<td class="colLast"><code>"dur"</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.presenting.freemarker.FreemarkerView.MESSAGE_KEY">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerView.html#MESSAGE_KEY">MESSAGE_KEY</a></code></td>
<td class="colLast"><code>"msg"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.presenting.freemarker.FreemarkerView.URL_KEY">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerView.html#URL_KEY">URL_KEY</a></code></td>
<td class="colLast"><code>"url"</code></td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.framework.presenting.freemarker.<a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerViewOptions.html" title="class in io.elegie.luchess.web.framework.presenting.freemarker">FreemarkerViewOptions</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.presenting.freemarker.FreemarkerViewOptions.FTL_ATTACHMENT">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerViewOptions.html#FTL_ATTACHMENT">FTL_ATTACHMENT</a></code></td>
<td class="colLast"><code>"attachment"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.presenting.freemarker.FreemarkerViewOptions.FTL_NOCACHE">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/presenting/freemarker/FreemarkerViewOptions.html#FTL_NOCACHE">FTL_NOCACHE</a></code></td>
<td class="colLast"><code>"nocache"</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.framework.routing.fqnbased.<a href="io/elegie/luchess/web/framework/routing/fqnbased/FQNBasedRouter.html" title="class in io.elegie.luchess.web.framework.routing.fqnbased">FQNBasedRouter</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.framework.routing.fqnbased.FQNBasedRouter.CONTROLLER_NAME">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/framework/routing/fqnbased/FQNBasedRouter.html#CONTROLLER_NAME">CONTROLLER_NAME</a></code></td>
<td class="colLast"><code>"controller"</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.launcher.services.impl.<a href="io/elegie/luchess/web/launcher/services/impl/JettyServerService.html" title="class in io.elegie.luchess.web.launcher.services.impl">JettyServerService</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.launcher.services.impl.JettyServerService.CONFIGURATION_FILE_NAME">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/launcher/services/impl/JettyServerService.html#CONFIGURATION_FILE_NAME">CONFIGURATION_FILE_NAME</a></code></td>
<td class="colLast"><code>"/configuration.properties"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="io.elegie.luchess.web.launcher.services.impl.JettyServerService.CONFIGURATION_PORT">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/launcher/services/impl/JettyServerService.html#CONFIGURATION_PORT">CONFIGURATION_PORT</a></code></td>
<td class="colLast"><code>"port"</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.launcher.services.impl.JettyServerService.DEFAULT_SERVER_PORT">
<!-- -->
</a><code>public static final int</code></td>
<td><code><a href="io/elegie/luchess/web/launcher/services/impl/JettyServerService.html#DEFAULT_SERVER_PORT">DEFAULT_SERVER_PORT</a></code></td>
<td class="colLast"><code>9001</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>io.elegie.luchess.web.launcher.ui.<a href="io/elegie/luchess/web/launcher/ui/UiMessages.html" title="enum in io.elegie.luchess.web.launcher.ui">UiMessages</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="io.elegie.luchess.web.launcher.ui.UiMessages.BUNDLE_BASE_NAME">
<!-- -->
</a><code>public static final java.lang.String</code></td>
<td><code><a href="io/elegie/luchess/web/launcher/ui/UiMessages.html#BUNDLE_BASE_NAME">BUNDLE_BASE_NAME</a></code></td>
<td class="colLast"><code>"messages/messages"</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="overview-summary.html">Overview</a></li>
<li>Package</li>
<li>Class</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>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="index.html?constant-values.html" target="_top">Frames</a></li>
<li><a href="constant-values.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|
Elegie/luchess
|
doc/javadoc/constant-values.html
|
HTML
|
apache-2.0
| 45,991
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.