torf Reference¶
-
class
torf.
Torrent
(path=None, name=None, exclude=(), trackers=(), webseeds=(), httpseeds=(), private=False, comment=None, source=None, creation_date=None, created_by='torf/1.0rc4', piece_size=None, include_md5=False, randomize_infohash=False)¶ Torrent metainfo representation
Create a new Torrent object:
>>> from torf import Torrent >>> torrent = Torrent('path/to/My Torrent', ... trackers=['https://localhost:123/announce'], ... comment='This is my first torrent')
Convenient access to metainfo via properties:
>>> torrent.comment 'This is my first torrent. Be gentle.' >>> torrent.private = True
Full control over unencoded metainfo:
>>> torrent.metainfo['info']['private'] True >>> torrent.metainfo['more stuff'] = {'foo': 12, ... 'bar': ('x', 'y', 'z')}
Hash pieces and update progress once per second:
>>> def callback(filepath, pieces_done, pieces_total): ... print(f'{pieces_done/pieces_total*100:3.0f} % done') >>> success = torrent.generate(callback, interval=1) 1 % done 2 % done [...] 100 % done
Write torrent file:
>>> torrent.write('my_torrent.torrent')
Generate magnet link:
>>> torrent.magnet() 'magnet:?xt=urn:btih:e167b1fbb42ea72f051f4f50432703308efb8fd1&dn=My+Torrent&xl=142631&tr=https%3A%2F%2Flocalhost%3A123%2Fannounce'
Read torrent:
>>> t = Torrent.read('my_torrent.torrent') >>> t.comment 'This is my first torrent. Be gentle.'
-
comment
¶ Comment string or
None
for no commentSetting this property sets or removes
comment
inmetainfo
.
-
convert
()¶ Return
metainfo
with all keys encoded tobytes
and all values encoded tobytes
,int
,list
orOrderedDict
Raises: MetainfoError – on values that cannot be converted properly
-
created_by
¶ Application name or
None
for no creatorSetting this property sets or removes
created by
inmetainfo
.
-
creation_date
¶ datetime.datetime
instance orNone
for no creation dateint
andfloat
are also allowed and converted withdatetime.datetime.fromtimestamp()
.Setting this property sets or removes
creation date
inmetainfo
.
-
dump
(validate=True)¶ Create bencoded
metainfo
Parameters: validate (bool) – Whether to run validate()
firstReturns: metainfo
as validated, bencodedbytes
-
exclude
¶ List of filename patterns to exclude
- *
- matches everything
- ?
- matches any single character
- [seq]
- matches any character in seq
- [!seq]
- matches any char not in seq
-
files
¶ Yield relative paths to files specified in
metainfo
Each paths starts with
name
.Note that the paths may not exist. See
filepaths
for existing files.
-
filetree
¶ files
as a dictionary treeEach node is a
dict
that maps directory/file names to child nodes, which aredict
s for directories andNone
for files.If
path
isNone
, this is alsoNone
.
-
generate
(callback=None, interval=0)¶ Set
pieces
inmetainfo
['info']
Parameters: - callback (callable) – Callable with signature
(torrent, filepath, pieces_done, pieces_total)
; if callback returns anything that is not None, hashing is canceled - interval (int) – Minimum number of seconds between calls to callback
Raises: - PathEmptyError – if
path
contains only empty files/directories - PathNotFoundError – if
path
does not exist - ReadError – if
path
or any file beneath it is not readable
Returns: True if
pieces
was successfully added tometainfo
['info']
,False
otherwise- callback (callable) – Callable with signature
-
httpseeds
¶ List of httpseed URLs or
None
for no httpseeds
-
include_md5
¶ Whether to include MD5 sums for each file
This takes only effect when
generate()
is called.
-
infohash
¶ SHA1 info hash
-
infohash_base32
¶ Base32 encoded SHA1 info hash
-
is_ready
¶ Whether this torrent is ready to be exported to a file or magnet link
-
magnet
(name=True, size=True, trackers=True, tracker=False, validate=True)¶ BTIH Magnet URI
Parameters: - name (bool) – Whether to include the name
- size (bool) – Whether to include the size
- trackers (bool) – Whether to include all trackers
- tracker (bool) – Whether to include only the first tracker of the first tier (overrides trackers)
- validate (bool) – Whether to run
validate()
first
-
metainfo
¶ Unencoded torrent metainfo as mutable mapping
You can put anything in here as long as keys are convertable to
bytes
and values are convertable tobytes
,int
,list
ordict
. See alsoconvert()
andvalidate()
.The
info
key is guaranteed to exist.
-
name
¶ Name of the torrent
Default to last item in
path
orNone
ifpath
isNone
.Setting this property sets or removes
name
inmetainfo
['info']
.
-
path
¶ Path to torrent content
Setting this property to a file path sets
name
andlength
inmetainfo
['info']
.Setting this property to a directory path sets
name
andfiles
inmetainfo
['info']
.Setting this property to
None
removes the following keys frommetainfo
['info']
:piece length
,pieces
,name
,length
,md5sum
,files
Raises: PathEmptyError – if path
contains no data (i.e. empty file, empty directory or directory containing only empty files)
-
piece_size
¶ Piece size/length or
None
to pick one automaticallySetting this property sets or removes
piece length
inmetainfo
['info']
.Getting this property if set to
None
(the default) calculates it automatically so that there are no more thanMAX_PIECES
pieces in total. The result is stored aspiece length
inmetainfo
['info']
.If
size
returnsNone
, this also returnsNone
.
-
pieces
¶ Number of pieces the content is split into or
None
ifpiece_size
returnsNone
-
private
¶ Whether torrent should use trackers exclusively for peer discovery
Setting this property sets or removes
private
inmetainfo
['info']
.
-
randomize_infohash
¶ Whether to ensure that
infohash
is always differentThis allows cross-seeding without changing
piece_size
manually.Setting this property to
True
setsentropy
inmetainfo
['info']
to a random integer. Setting it toFalse
removes that value.
-
classmethod
read
(filepath, validate=True)¶ Read torrent metainfo from file
Parameters: - filepath – Path of the torrent file
- validate (bool) – Whether to run
validate()
on the new Torrent object
Raises: - ReadError – if reading from filepath fails
- ParseError – if filepath does not contain a valid bencoded byte string
- MetainfoError – if validate is True and the read metainfo is invalid
Returns: New Torrent object
-
source
¶ Source string or
None
for no sourceSetting this property sets or removes
source
inmetainfo
['info']
.
-
trackers
¶ List of tiers of announce URLs or
None
for no trackersA tier is either a single announce URL (
str
) or anIterable
(e.g.list
) of announce URLs.Setting this property sets or removes
announce
andannounce-list
inmetainfo
.announce
is set to the first tracker of the first tier.Raises: URLError – if any of the announce URLs is invalid
-
validate
()¶ Check if all mandatory keys exist in
metainfo
and are of expected types- The necessary values are documented here:
Note that
announce
is not considered mandatory because clients can find peers via DHT.Raises: MetainfoError – if metainfo
would not generate a valid torrent file or magnet link
-
webseeds
¶ List of webseed URLs or
None
for no webseeds
-
write
(filepath, validate=True, overwrite=False, mode=438)¶ Write current
metainfo
to torrent fileParameters: - filepath – Path of the new torrent file
- validate (bool) – Whether to run
validate()
first - overwrite (bool) – Whether to silently overwrite filepath (only if all pieces were hashed successfully)
- mode – File permissions of filepath
Raises: - WriteError – if writing to filepath fails
- MetainfoError – if validate is True and
metainfo
contains invalid data
-
-
exception
torf.
TorfError
¶ Base exception for all exceptions raised by torf
-
errno
¶ Error code (see
errno
)
-
-
exception
torf.
MetainfoError
(msg)¶ Invalid torrent metainfo
-
exception
torf.
ParseError
(filepath=None)¶ Invalid bencoded metainfo
-
exception
torf.
PathNotFoundError
(path)¶ Path does not exist
-
exception
torf.
PathEmptyError
(path)¶ Empty file or directory or directory that contains only empty files
-
exception
torf.
URLError
(url)¶ Invalid URL
-
exception
torf.
PieceSizeError
(min, max)¶ Invalid piece size


Changelog ! Now you can Listen my Top-Pick favorite Songs from Spotify
and Follow me through Spotify button.
Convert this Notification bar into Changelog bar.
About me
Hitanshu is a WordPress Enthusiast and FOSS Lover 👨💻 .
Apart from WordPress, he loves to work on UI/UX, graphics, and little bit of IoT stuff. He is an
active member of Kanpur FOSS community and a Coffeeholic ☕.
Adobe Photoshop CC 2018
70%
Adobe Illustrator CC 2018
40%
Adobe After effects 2018
65%
Adobe Premiere Pro 2018
70%
Adobe Lightroom 2018
80%
HTML
80%
CSS
75%
Javascript
30%
Bootstrap
60%
What else i do ?
I am learning and implementing things, also worked as WordPress Web-Developer
in Infinity Plus, worked as Technical Worker in DELL Aside from that I do Photoshoot, Graphic
designing, and freelancing. Who knows, may be next time I would be the one designing your website
:).
How To Contact
Many Ways are available to contact me, its up to you which one you choose.


Developing with Crosswalk AAR
The Crosswalk AAR bundle is the binary distribution of the xwalk_core_library
and includes both x86 and armv7 architectures. A developer no longer needs to download the crosswalk-webview bundle manually but can specify a version code using either the Gradle or Maven projects.
Set up host
Install JDK
Gradle requires JDK version 6 or higher. The JAVA_HOME environment variable must be set to the correct JDK installation directory.
$ export JAVA_HOME=<path to JDK>
Install the Android SDK
Download the Android SDK from http://developer.android.com/sdk/index.html.
Extract the SDK from the archive file you downloaded.
Add the Android SDK directories to your PATH:
$ export PATH=<path to Android SDK>:$PATH $ export PATH=<path to Android SDK>/tools:$PATH $ export PATH=<path to Android SDK>/platform-tools:$PATH
In the SDK Manager window, select the following items from the list:
[ ] Tools [x] Android SDK Platform-tools 19.0.1 [x] Android SDK Build tools 18.0.1 [ ] Android 4.3 (API 18) [x] SDK Platform
Note: if you are using devices with versions of Android later than 4.3, you should also install the
platform tools
,build tools
andSDK platform
for those versions.
Develop With the Gradle Project
Install Gradle
Download a recent version of the
gradle
binary (~40MB): http://www.gradle.org/downloads/Unzip it:
$ unzip gradle-<version>-bin.zip
For convenience, add the
gradle
binary to your PATH environment variable:$ export PATH=$PATH:<path to gradle>/bin
Develop With Maven Project
Install Maven
Download Maven from http://maven.apache.org/download.cgi. Version 3.2.2 is known to work.
Unzip it:
$ tar -zxvf apache-maven-3.2.2-bin.tar.gz
Set the Maven enviroment variables to point to the install directory:
$ M2_HOME=/path/to/apache-maven-3.2.2 $ export MAVEN_OPTS="-Xms256m -Xmx512m" $ export PATH=$M2_HOME/bin:$PATH
Install Maven Android SDK Deployer
Checkout Maven Android SDK deployer from git
$ git clone git@github.com:mosabua/maven-android-sdk-deployer.git
Use the Maven Android SDK deployer to install the Maven components for Android 4.4*:
$ cd maven-android-sdk-deployer $ mvn install -P 4.4
Install Maven Android Plugin
Checkout Maven Android Plugin from git
$ git clone git@github.com:jayway/maven-android-plugin.git
Install Maven Android Plugin into your local Maven repository
$ cd maven_android_plugin $ mvn clean install
Crosswalk AAR Version
The AAR remote Maven repository is https://download.01.org/crosswalk/releases/crosswalk/android/maven2/. Versions are available for stable and beta. If you need the canary version you can download it:
$ wget https://download.01.org/crosswalk/releases/crosswalk/android/canary/<IP_ADDRESS>/crosswalk-<IP_ADDRESS>.aar
Then install it into the local Maven repository:
$ mvn install:install-file -DgroupId=org.xwalk -DartifactId=xwalk_core_library_canary \
-Dversion=<IP_ADDRESS> -Dpackaging=aar -Dfile=crosswalk-<IP_ADDRESS>.aar \
-DgeneratePom=true
Create and Build your Android project with Crosswalk AAR
Create Android Project with the Crosswalk embedding APIs.
Refer to the section in the Embedding Crosswalk article called Add code to integrate the webview.
The reference to Maven repo in build.gradle will look like:
Repositories { Maven { url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2' } }
Use
mavenLocal()
instead of the remote repo url to refer to the local aar:Repositories { mavenLocal() }
The dependency (a reference) to the AAR library will look like (<IP_ADDRESS> is a crosswalk version):
Dependencies { Compile 'org.xwalk:xwalk_core_library_beta:<IP_ADDRESS>' }
Gradle places the AAR library in its project directory:
~/.gradle/caches/modules-2/files-2.1/
Support different CPU architectures with each APK (such as for ARM, x86).
A product flavor defines a customized version of the application build by the project. We can have different flavors which generate apk for each architecture.
android { ... productFlavors { armv7 { ndk { abiFilters "armeabi-v7a", "" } } x86 { ndk { abiFilters "x86", "" } } } }
Get the version code from the manifest. Add an extra digit to the end of the version code which implicity specifies the architecture. The x86 final digit is 4, arm is 2.
versionCode manifest.versionCode + 4
Build your project with Gradle, the following commands will build the corresponding arch apk in build/apk directory.
$ gradle assemblex86 $ gradle assemblearmv7
Use
$ gradle build
to build both arm and x86 APKs at once.
Build with Maven
The Maven android plugin has a known issue that it can't build multiple APKs for different architectures automatically. We need to specify x86/arm aar in classifier. You can try to test from the sample
Create Maven Project
Create Android Project with the Crosswalk webview APIs.
Refer to the section in the Embedding Crosswalk article called Add code to integrate the webview.
The reference to the remote repo in pom.xml will look like:
<repositories> <repository> <id>01-org</id> <name>o1 org repo</name> <url>https://download.01.org/crosswalk/releases/crosswalk/android/maven2</url> <layout>default</layout> </repository> </repositories>
The dependency (a reference) to the x86 AAR library in pom.xml will look like:
<dependency> <groupId>org.xwalk </groupId> <artifactId> xwalk_core_library_beta</artifactId> <version><IP_ADDRESS></version> <classifier>x86</classifier> <typr>aar</type> </dependency>
If you want to use arm AAR in your Maven project, you can set classifier to arm:
<classifier>arm</classifier>
Maven will download the AARs automatically into project repository:
~/.m2/repository/
Support multiple APKs
Build different APKs using 'Build profile'
A Build profile is a set of configuration values which can be used to set or override default values of Maven build.
<profile> <id>x86</id> </profile>
Execute the following mvn command. Pass the profile name as argument using -P option.
$ mvn install -Px86
Update manifest versioncode and versionname. Refer to stackoverflow
android-maven-plugin support resource filtering to update manifest.
Modify AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.xwalkEmbedd" android:versionCode="${app.version.code}" android:versionName="${app.version.name}" >
Set versioncode and versionname.
arm profile:
<app.version.code><IP_ADDRESS></app.version.code> <app.version.name>1.0.0-SNAPSHOT</app.version.name>
x86 profile:
<app.version.code><IP_ADDRESS></app.version.code> <app.version.name>1.0.0-SNAPSHOT</app.version.name>
Filter manifest and put filtered file in target/filtered-manifest:
<resource> <directory>${project.basedir}</directory> <filtering>true</filtering> <targetPath>${project.build.directory}/filtered-manifest</targetPath> <includes> <include>src/main/AndroidManifest.xml</include> </includes> </resource> ... <plugins> <plugin> <groupId>com.jayway.maven.plugins.android.generation2</groupId> <artifactId>android-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <undeployBeforeDeploy>true</undeployBeforeDeploy> <!-- tell build process to use filtered manifest --> <androidManifestFile>${project.build.directory}/src/main/filtered-manifest/AndroidManifest.xml</androidManifestFile> </configuration> </plugin> ...
Output different name to apk:
<finalName>${project.artifactId}-${project.version}-${profile-id}</finalName> <profile-id>x86</profile-id> <profile-id>arm</profile-id>
Build your project with Maven, the following commands will build the corresponding arch apk in target/ directory:
$ mvn clean install -Px86 $ adb install ./target/xwalk-aar-example-1.0.0-SNAPSHOT-x86.apk $ mvn clean install -Parm $ adb install ./target/xwalk-aar-example-1.0.0-SNAPSHOT-arm.apk
Samples
We have created two sample applications demonstrating Gradle and Maven to get you started: AAR-Sample.tar.gz.
After downloading, unzip it from the command line:
$ tar -xzvf AAR-Sample.tar.gz
This will create an AAR-Sample
directory with two project sub-directories:
\xwalkEmbed-Gradle – An example using multiple architecture AAR with Gradle.
\xwalkEmbed-Maven – An example using classifier AAR with Maven.


subject = "New contact form submission!" == Good news! {{name}} ({{email}}) contacted Manifold to say, {{body}} See the record generated by this submission: {{url}} ==
Good news! {{name}} ({{email}}) contacted Manifold to say,
{{body}}
See the record generated by this submission: {{url}}


| pugixml 0.9 manual | Overview | Installation | Document: Object model · Loading · Accessing · Modifying · Saving | XPath | API Reference | Table of Contents |
If the task at hand is to select a subset of document nodes that match some criteria, it is possible to code a function using the existing traversal functionality for any practical criteria. However, often either a data-driven approach is desirable, in case the criteria are not predefined and come from a file, or it is inconvenient to use traversal interfaces and a higher-level DSL is required. There is a standard language for XML processing, XPath, that can be useful for these cases. pugixml implements an almost complete subset of XPath 1.0. Because of differences in document object model and some performance implications, there are minor violations of the official specifications, which can be found in Conformance to W3C specification. The rest of this section describes the interface for XPath functionality. Please note that if you wish to learn to use XPath language, you have to look for other tutorials or manuals; for example, you can read W3Schools XPath tutorial, XPath tutorial at tizag.com, and the XPath 1.0 specification.
| Note | |
|---|---|
As of version 0.9, you need both STL and exception support to use XPath;
XPath is disabled if either |
Each XPath expression can have one of the following types: boolean, number,
string or node set. Boolean type corresponds to bool
type, number type corresponds to double
type, string type corresponds to either std::string
or std::wstring
, depending on whether wide
character interface is enabled, and node set corresponds to xpath_node_set
type. There is an enumeration,
xpath_value_type
, which can
take the values xpath_type_boolean
,
xpath_type_number
, xpath_type_string
or xpath_type_node_set
,
accordingly.
Because an XPath node can be either a node or an attribute, there is a special
type, xpath_node
, which is
a discriminated union of these types. A value of this type contains two node
handles, one of xml_node
type, and another one of xml_attribute
type; at most one of them can be non-null. The accessors to get these handles
are available:
xml_node xpath_node::node() const; xml_attribute xpath_node::attribute() const;
XPath nodes can be null, in which case both accessors return null handles.
Note that as per XPath specification, each XPath node has a parent, which can be retrieved via this function:
xml_node xpath_node::parent() const;
parent
function returns the
node's parent if the XPath node corresponds to xml_node
handle (equivalent to node().parent()
), or the node to which the attribute belongs
to, if the XPath node corresponds to xml_attribute
handle. For null nodes, parent
returns null handle.
Like node and attribute handles, XPath node handles can be implicitly cast to boolean-like object to check if it is a null node, and also can be compared for equality with each other.
You can also create XPath nodes with one of tree constructors: the default constructor, the constructor that takes node argument, and the constructor that takes attribute and node arguments (in which case the attribute must belong to the attribute list of the node). However, usually you don't need to create your own XPath node objects, since they are returned to you via selection functions.
XPath expressions operate not on single nodes, but instead on node sets. A node set is a collection of nodes, which can be optionally ordered in either a forward document order or a reverse one. Document order is defined in XPath specification; an XPath node is before another node in document order if it appears before it in XML representation of the corresponding document.
Node sets are represented by xpath_node_set
object, which has an interface that resembles one of sequential random-access
containers. It has an iterator type along with usual begin/past-the-end iterator
accessors:
typedef const xpath_node* xpath_node_set::const_iterator; const_iterator xpath_node_set::begin() const; const_iterator xpath_node_set::end() const;
And it also can be iterated via indices, just like std::vector
:
const xpath_node& xpath_node_set::operator[](size_t index) const; size_t xpath_node_set::size() const; bool xpath_node_set::empty() const;
All of the above operations have the same semantics as that of std::vector
:
the iterators are random-access, all of the above operations are constant
time, and accessing the element at index that is greater or equal than the
set size results in undefined behavior. You can use both iterator-based and
index-based access for iteration, however the iterator-based can be faster.
The order of iteration depends on the order of nodes inside the set; the order can be queried via the following function:
enum xpath_node_set::type_t {type_unsorted, type_sorted, type_sorted_reverse}; type_t xpath_node_set::type() const;
type
function returns the
current order of nodes; type_sorted
means that the nodes are in forward document order, type_sorted_reverse
means that the nodes are in reverse document order, and type_unsorted
means that neither order is guaranteed (nodes can accidentally be in a sorted
order even if type()
returns type_unsorted
). If
you require a specific order of iteration, you can change it via sort
function:
void xpath_node_set::sort(bool reverse = false);
Calling sort
sorts the nodes
in either forward or reverse document order, depending on the argument; after
this call type()
will return type_sorted
or
type_sorted_reverse
.
Often the actual iteration is not needed; instead, only the first element in document order is required. For this, a special accessor is provided:
xpath_node xpath_node_set::first() const;
This function returns the first node in forward document order from the set,
or null node if the set is empty. Note that while the result of the node
does not depend on the order of nodes in the set (i.e. on the result of
type()
),
the complexity does - if the set is sorted, the complexity is constant, otherwise
it is linear in the number of elements or worse.
If you want to select nodes that match some XPath expression, you can do it with the following functions:
xpath_node xml_node::select_single_node(const char_t* query) const; xpath_node_set xml_node::select_nodes(const char_t* query) const;
select_nodes
function compiles
the expression and then executes it with the node as a context node, and
returns the resulting node set. select_single_node
returns only the first node in document order from the result, and is equivalent
to calling select_nodes(query).first()
.
If the XPath expression does not match anything, or the node handle is null,
select_nodes
returns an empty
set, and select_single_node
returns null XPath node.
Both functions throw xpath_exception
if the query can not be compiled or if it returns a value with type other
than node set; see Error handling for details.
While compiling expressions is fast, the compilation time can introduce a significant overhead if the same expression is used many times on small subtrees. If you're doing many similar queries, consider compiling them into query objects (see Using query objects for further reference). Once you get a compiled query object, you can pass it to select functions instead of an expression string:
xpath_node xml_node::select_single_node(const xpath_query& query) const; xpath_node_set xml_node::select_nodes(const xpath_query& query) const;
Both functions throw xpath_exception
if the query returns a value with type other than node set.
This is an example of selecting nodes using XPath expressions (samples/xpath_select.cpp):
pugi::xpath_node_set tools = doc.select_nodes("/Profile/Tools/Tool[@AllowRemote='true' and @DeriveCaptionFrom='lastparam']"); std::cout << "Tools:"; for (pugi::xpath_node_set::const_iterator it = tools.begin(); it != tools.end(); ++it) { pugi::xpath_node node = *it; std::cout << " " << node.node().attribute("Filename").value(); } pugi::xpath_node build_tool = doc.select_single_node("//Tool[contains(Description, 'build system')]"); std::cout << "\nBuild tool: " << build_tool.node().attribute("Filename").value() << "\n";
When you call select_nodes
with an expression string as an argument, a query object is created behind
the scene. A query object represents a compiled XPath expression. Query objects
can be needed in the following circumstances:
Query objects correspond to xpath_query
type. They are immutable and non-copyable: they are bound to the expression
at creation time and can not be cloned. If you want to put query objects
in a container, allocate them on heap via new
operator and store pointers to xpath_query
in the container.
You can create a query object with the constructor that takes XPath expression as an argument:
explicit xpath_query::xpath_query(const char_t* query);
The expression is compiled and the compiled representation is stored in the
new query object. If compilation fails, xpath_exception
is thrown (see Error handling for details). After the query is created,
you can query the type of the evaluation result using the following function:
xpath_value_type xpath_query::return_type() const;
You can evaluate the query using one of the following functions:
bool xpath_query::evaluate_boolean(const xml_node& n) const; double xpath_query::evaluate_number(const xml_node& n) const; string_t xpath_query::evaluate_string(const xml_node& n) const; xpath_node_set xpath_query::evaluate_node_set(const xml_node& n) const;
All functions take the context node as an argument, compute the expression
and return the result, converted to the requested type. By XPath specification,
value of any type can be converted to boolean, number or string value, but
no type other than node set can be converted to node set. Because of this,
evaluate_boolean
, evaluate_number
and evaluate_string
always return a result, but evaluate_node_set
throws an xpath_exception
if the return type is not node set.
| Note | |
|---|---|
Calling |
This is an example of using query objects (samples/xpath_query.cpp):
// Select nodes via compiled query pugi::xpath_query query_remote_tools("/Profile/Tools/Tool[@AllowRemote='true']"); pugi::xpath_node_set tools = query_remote_tools.evaluate_node_set(doc); std::cout << "Remote tool: "; tools[2].node().print(std::cout); // Evaluate numbers via compiled query pugi::xpath_query query_timeouts("sum(//Tool/@Timeout)"); std::cout << query_timeouts.evaluate_number(doc) << std::endl; // Evaluate strings via compiled query for different context nodes pugi::xpath_query query_name_valid("string-length(substring-before(@Filename, '_')) > 0 and @OutputFileMasks"); pugi::xpath_query query_name("concat(substring-before(@Filename, '_'), ' produces ', @OutputFileMasks)"); for (pugi::xml_node tool = doc.first_element_by_path("Profile/Tools/Tool"); tool; tool = tool.next_sibling()) { std::string s = query_name.evaluate_string(tool); if (query_name_valid.evaluate_boolean(tool)) std::cout << s << std::endl; }
As of version 0.9, all XPath errors result in thrown exceptions. The errors
can arise during expression compilation or node set evaluation. In both cases,
an xpath_exception
object
is thrown. This is an exception object that implements std::exception
interface, and thus has a single function what()
:
virtual const char* xpath_exception::what() const throw();
This function returns the error message. Currently it is impossible to get the exact place where query compilation failed. This functionality, along with optional error handling without exceptions, will be available in version 1.0.
This is an example of XPath error handling (samples/xpath_error.cpp):
// Exception is thrown for incorrect query syntax try { doc.select_nodes("//nodes[#true()]"); } catch (const pugi::xpath_exception& e) { std::cout << "Select failed: " << e.what() << std::endl; } // Exception is thrown for incorrect query semantics try { doc.select_nodes("(123)/next"); } catch (const pugi::xpath_exception& e) { std::cout << "Select failed: " << e.what() << std::endl; } // Exception is thrown for query with incorrect return type try { doc.select_nodes("123"); } catch (const pugi::xpath_exception& e) { std::cout << "Select failed: " << e.what() << std::endl; }
Because of the differences in document object models, performance considerations and implementation complexity, pugixml does not provide a fully conformant XPath 1.0 implementation. This is the current list of incompatibilities:
<node>text1
<![CDATA[data]]> text2</node>
node should have one text node children,
but instead has three.
id()
function always returns an empty node set.
<foo
xmlns:ns1='uri' xmlns:ns2='uri'><ns1:child/><ns2:child/></foo>
,
query foo/ns1:*
will return only the first child, not both of them. Compliant XPath implementations
can return both nodes if the user provides appropriate namespace declarations.
char
value or a single wchar_t
value, depending on the library configuration; this means that some string
functions are not fully Unicode-aware. This affects substring()
, string-length()
and translate()
functions.
Some of these incompatibilities will be fixed in version 1.0.
| pugixml 0.9 manual | Overview | Installation | Document: Object model · Loading · Accessing · Modifying · Saving | XPath | API Reference | Table of Contents |


Links before taking accessibility into consideration
Click here
for bing<.
Click here
for google.
Click here
for Yahoo!


The contents of this website are Copyright © {{ site.time | date: '%Y' }} Apache Software Foundation under the terms of the Apache License v2. Apache Calcite and its logo are trademarks of the Apache Software Foundation.
Privacy Policy


Kilifi is a well protected port on a creek spanned by a bridge. The bridge has a clearance of 72 ft (22 m). One must also be careful not to touch the telephone and power lines.
Check in with Customs who also act as Harbour Master, and immigration here.
If coming from Tazania, Shimoni is the more convenient place to clear in.
Last updated September 2010.


Bofowaa Ciara flaunts her beautiful sister as she celebrates her birthday
by Qwame BenedictThe wife of one of Ghana’s rich men of God, Rev. Obofour, Ciara Antwi popularly known as Bofowaa Ciara has taken to social media to show off her beautiful sister as she celebrates her birthday.
Sharing a photo, Obofour’s wife hailed her big sister as a beautiful woman and wished her joy and many surprises.
“Mirror mirror on the wall Who’s the most beautiful of them all? It’s my sister. Didn’t you know She’s the best, I don’t need to show. The most important thing that I want to say is that today is her birthday I wish that the path of happiness she treads brings her joy and surprises in the year ahead. Wishing you a Happy Birthday dearest sis blood God bless you more ,” Ciara stated.
See screenshot below:
Some followers of the Osofo Maame joined her in wishing her sister well as she celebrates her birthday.
she_loves_stonebwoyb: “Happy birthday sweetness, we love you”
@stevefloralandevents: “Happy birthday to you ”
@mama_ghathy: “Happy birthday to your sister. More long life”
@gyamfuaahadwoa: “Woow, looking cute sis Afia. Hapi earth day big sis.”
@affuldoryn: “Happy birthday sister Afia. God bless your new age with grace and mercy .”


AbstractJsonDeserializer
instead.value
to the given targetType
.Response
for the given validation exception.Response
for the given NlsRuntimeException
.key
as String
.key
as String
.List
of all value for the parameter with with the given key
.ObjectMapperFactory
instead.top-level security exceptions
.UriInfo
and MultivaluedMap
from the JAX-RS API.Service
.ExceptionMapper
that acts as generic exception facade for REST services.JsonMappingException
or
PersistenceException
.Copyright © 2014–2018 OASP-Team. All rights reserved.


--- layout: member_profile title: "Brunella Carlomagno" permalink: /members/carlomagno/ name: "Brunella Carlomagno" affiliation: "Université de Liège" jointaffiliation: country: "Belgium" position: "Post-Doctoral Researcher" researchtitle: "Development of next generation vector vortex coronagraphs" summary: "The direct detection of exoplanets requires the use of dedicated, high contrast imaging instruments. In this context, vector vortex coronagraphs (VVC) are considered as one of the most promising solutions to reach high contrast at small angular separations. My research project, included in the Vortex project (Ulg), aims to improve the design and performance of VVC based on sub wavelength gratings, etched into synthetic diamond, by integrating the device with pupil apodizers (Ring Apodized Vortex Coronagraph) and optimized Lyot stops, in order to compensate for central obstruction and spiders effect. These different coronagraphic solutions are included in an end-to-end performance simulation, that takes into account the major source of errors in modern telescope (the adaptive optics residuals, wind-induced pointing jitter, non-common path aberrations, etc) to define the final performance of the instrument for high-contrast imaging." prior: orcid: website: linkedin: rgate: research: ["Exoplanets" , "High Contrast Imaging" , "ELTs" , "Coronagraphy" , "Performance Evaluation" ] keywords: "Exoplanets -- High Contrast Imaging -- ELTs -- Coronagraphy -- Performance Evaluation" email<EMAIL_ADDRESS>image_path: /assets/img/member/carlomagno.jpg ---
Current Research Summary:
{{ page.summary}}Prior Research:
{{ page.prior}}


{% extends "/email/email_base.html" %} {% block page_content %}
|
Dear {{ user.first_name }}, Thank you for your commitment to attend the {{conference.name}}. I would like to invite you to join the committee as {% if role == 'User' %}Reviewer{% else %}{{role}}{% endif %}{% if track_name %} of {{track_name}}{% endif %} for this conference. For your convenience, you can check the related information on conferency.com in your account. I appreciate your cooperation Sincerely, {{chair.name}} |


The notebook allows you to run code in a safe and disposable environment. It is composed of independent cells where code can be edited and executed.
The notebook also allows you to provide descriptions of code with supplementary cells written in MarkDown.
You can create a new cell by first selecting an existing cell and then using the Insert Cell Below button on the toolbar.
Each cell can be edited with either markdown or python code. You can choose which language to use in the drop-down list in the toolbar.
To run an individual cell, you must first select that cell and then click the Run button on the toolbar.
| Shortcut | Description |
|---|---|
| Shift + Enter | Runs the selected cell. |
| a | Insert a cell above the selected cell. |
| b | Insert a cell below the selected cell. |
| x | Cut the selected cell. |
| v | Paste the copied or cut cell. |
| z | Undo cell actions. |
You can use the h key to view a list of all the available keyboard shortcuts.


Links
This example if about links and images.
This particular page is about links! There are three kinds of links:
- Absolute links, like to
Mozilla Developer Network, which is a
very good resource for web developers.
- Relative Links, like to our extras page.
- Root-relative links, like to our home page of our website, but those aren't useful to us right now.


BUTTON 1
BUTTON 2
HTML Classes get used more than once while IDs get used once.
Create two more html files. One called contact.html and the other called about.html.
Just add a little text in each page and make sure to style it.
Each page should be a new target. Use target = "_blank" to open a link into a new tab.
Rename BUTTON 1 and BUTTON 2 to indicate About and Contant.
Create the link as follows:
BUTTON 3


Title [Undecided]
selected out of
records |
Reset All
Number of stories by score
reset
Number of stories by descendants
reset
Stories per day
reset
Day of the Week
reset
Positive or Negative Sentiment
reset
Time
Story ID
Author
Descendants
Score
Sentiment


--- layout: post status: publish published: true title: Biztalk Server 2004 Beta author: display_name: Tomas Restrepo login: tomasr email<EMAIL_ADDRESS>url: http://winterdom.com/ author_login: tomasr author_email<EMAIL_ADDRESS>author_url: http://winterdom.com/ wordpress_id: 310 wordpress_url: http://winterdom.com/2003/06/biztalkserver2004beta date: '2003-06-02 15:04:09 +0000' date_gmt: '2003-06-02 15:04:09 +0000' categories: - BizTalk tags: [] comments: [] ---
We got a copy of the beta on CD here today.... looking forward to installing
it tonight (or maybe tomorrow, who knows!). Anyway, for those of you away with an
MSDN subscription, according to this the
beta should be available soon from MSDN
subscriber downloads!


| Package | org.restfulx.collections |
| Class | public class RxCollection |
| Inheritance | RxCollection mx.collections.ArrayCollection |
| Subclasses | ModelsCollection |
mx.collections.ArrayCollection
. These helpers are not
RxModel
specific and can be used instead of any
regular ArrayCollection
instance.
One of the things you can do with RxCollection
is set
multiple filter functions. They are evaluated one by one with the end result
being false if ANY of the filter functions is false. Much like an
OR.
var rc:RxCollection = new RxCollection; // add some data rc.filterFunctions = [function1, function2, function3] rc.refresh();
| Property | Defined by | ||
|---|---|---|---|
| filterFunctions : Array | RxCollection |
| Method | Defined by | ||
|---|---|---|---|
|
RxCollection(source:Array = null)
| RxCollection | ||
|
indexOfPropertyValue(propertyName:String, propertyValue:Object):int
Find index of the first item with a given property name/ value pair.
| RxCollection | ||
|
itemsWithPropertyValue(propertyName:String, propertyValue:Object):RxCollection
Returns a RxCollection of llobjects in the collection that have specified property key and value
| RxCollection | ||
|
withPropertyValue(propertyName:String, propertyValue:Object):Object
Attempts to find irstobject in the collection that has specified property key
and value
| RxCollection |
| filterFunctions | property |
filterFunctions:Array
[read-write]Implementation
public function get filterFunctions():Array
public function set filterFunctions(value:Array):void
See also
| RxCollection | () | constructor |
public function RxCollection(source:Array = null)
Parameters
source:Array (default = null )
|
See also
| indexOfPropertyValue | () | method |
public function indexOfPropertyValue(propertyName:String, propertyValue:Object):int
Find index of the first item with a given property name/ value pair.
ParameterspropertyName:String — name of the property
|
|
propertyValue:Object — value of the property
|
int — index offset
|
| itemsWithPropertyValue | () | method |
public function itemsWithPropertyValue(propertyName:String, propertyValue:Object):RxCollection
Returns a RxCollection of llobjects in the collection that have specified property key and value
ParameterspropertyName:String — name of the property to look up
|
|
propertyValue:Object — value of the property
|
RxCollection —
a RxCollection of llobjects that match; empty Array if none
|
| withPropertyValue | () | method |
public function withPropertyValue(propertyName:String, propertyValue:Object):Object
Attempts to find irstobject in the collection that has specified property key and value
ParameterspropertyName:String — name of the property to look up
|
|
propertyValue:Object — value of the property
|
Object — irstobject that matches or null
|


public class RenderState extends java.lang.Object implements java.lang.Cloneable, Savable
RenderState
specifies material rendering properties that cannot
be controlled by a shader on a Material
. The properties
allow manipulation of rendering features such as depth testing, alpha blending,
face culling, stencil operations, and much more.| Modifier and Type | Class and Description |
|---|---|
static class |
RenderState.BlendMode
BlendMode specifies the blending operation to use. |
static class |
RenderState.FaceCullMode
FaceCullMode specifies the criteria for faces to be culled. |
static class |
RenderState.StencilOperation
StencilOperation specifies the stencil operation to use
in a certain scenario as specified in setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction) |
static class |
RenderState.TestFunction
TestFunction specifies the testing function for stencil test
function and alpha test function. |
| Modifier and Type | Field and Description |
|---|---|
static RenderState |
ADDITIONAL
The
ADDITIONAL render state is identical to the
DEFAULT render state except that all apply
values are set to false. |
static RenderState |
DEFAULT
The
DEFAULT render state is the one used by default
on all materials unless changed otherwise by the user. |
static RenderState |
NULL
The
NULL render state is identical to the DEFAULT
render state except that depth testing and face culling are disabled. |
| Constructor and Description |
|---|
RenderState() |
| Modifier and Type | Method and Description |
|---|---|
RenderState |
clone()
Create a clone of this
RenderState |
int |
contentHashCode() |
RenderState |
copyMergedTo(RenderState additionalState,
RenderState state)
Merges
this state and additionalState into
the parameter state based on a specific criteria. |
boolean |
equals(java.lang.Object o)
returns true if the given renderState is equall to this one
|
float |
getAlphaFallOff()
Retrieve the alpha falloff value.
|
RenderState.TestFunction |
getAlphaFunc()
Retrieve the alpha comparison function
|
RenderState.StencilOperation |
getBackStencilDepthFailOperation()
Retrieve the back depth test fail operation.
|
RenderState.StencilOperation |
getBackStencilDepthPassOperation()
Retrieve the back depth test pass operation.
|
RenderState.TestFunction |
getBackStencilFunction()
Retrieve the back stencil function.
|
RenderState.StencilOperation |
getBackStencilStencilFailOperation()
Retrieve the back stencil fail operation.
|
RenderState.BlendMode |
getBlendMode()
Retrieve the blend mode.
|
RenderState.TestFunction |
getDepthFunc()
Retrieve the depth comparison function
|
RenderState.FaceCullMode |
getFaceCullMode()
Retrieve the face cull mode.
|
RenderState.StencilOperation |
getFrontStencilDepthFailOperation()
Retrieve the front depth test fail operation.
|
RenderState.StencilOperation |
getFrontStencilDepthPassOperation()
Retrieve the front depth test pass operation.
|
RenderState.TestFunction |
getFrontStencilFunction()
Retrieve the front stencil function.
|
RenderState.StencilOperation |
getFrontStencilStencilFailOperation()
Retrieve the front stencil fail operation.
|
float |
getLineWidth()
returns the wireframe line width
|
float |
getPolyOffsetFactor()
Retrieve the poly offset factor value.
|
float |
getPolyOffsetUnits()
Retrieve the poly offset units value.
|
boolean |
isAlphaTest()
Check if alpha test is enabled.
|
boolean |
isApplyAlphaFallOff() |
boolean |
isApplyAlphaFunc() |
boolean |
isApplyAlphaTest() |
boolean |
isApplyBlendMode() |
boolean |
isApplyColorWrite() |
boolean |
isApplyCullMode() |
boolean |
isApplyDepthFunc() |
boolean |
isApplyDepthTest() |
boolean |
isApplyDepthWrite() |
boolean |
isApplyLineWidth() |
boolean |
isApplyPointSprite() |
boolean |
isApplyPolyOffset() |
boolean |
isApplyWireFrame() |
boolean |
isColorWrite()
Check if color writing is enabled.
|
boolean |
isDepthTest()
Check if depth test is enabled.
|
boolean |
isDepthWrite()
Check if depth write is enabled.
|
boolean |
isPointSprite()
Check if point sprite mode is enabled
|
boolean |
isPolyOffset()
Check if polygon offset is enabled.
|
boolean |
isStencilTest()
Check if stencil test is enabled.
|
boolean |
isWireframe()
Check if wireframe mode is enabled.
|
void |
read(JmeImporter im) |
void |
set(RenderState state) |
void |
setAlphaFallOff(float alphaFallOff)
Sets the alpha fall off value for alpha testing.
|
void |
setAlphaFunc(RenderState.TestFunction alphaFunc)
Sets the alpha comparision function to the given TestFunction
default is Greater (GL_GREATER)
Note : Alpha test is deprecated since opengl 3.0 and does not exists in
openglES 2.0.
|
void |
setAlphaTest(boolean alphaTest)
Enable alpha testing.
|
void |
setBlendMode(RenderState.BlendMode blendMode)
Set the blending mode.
|
void |
setColorWrite(boolean colorWrite)
Enable writing color.
|
void |
setDepthFunc(RenderState.TestFunction depthFunc)
Set the depth conparison function to the given TestFunction
default is LessOrEqual (GL_LEQUAL)
|
void |
setDepthTest(boolean depthTest)
Enable depth testing.
|
void |
setDepthWrite(boolean depthWrite)
Enable depth writing.
|
void |
setFaceCullMode(RenderState.FaceCullMode cullMode)
Set the face culling mode.
|
void |
setLineWidth(float lineWidth)
Sets the mesh line width.
|
void |
setPointSprite(boolean pointSprite)
Enables point sprite mode.
|
void |
setPolyOffset(float factor,
float units)
Offsets the on-screen z-order of the material's polygons, to combat visual artefacts like
stitching, bleeding and z-fighting for overlapping polygons.
|
void |
setStencil(boolean enabled,
RenderState.StencilOperation _frontStencilStencilFailOperation,
RenderState.StencilOperation _frontStencilDepthFailOperation,
RenderState.StencilOperation _frontStencilDepthPassOperation,
RenderState.StencilOperation _backStencilStencilFailOperation,
RenderState.StencilOperation _backStencilDepthFailOperation,
RenderState.StencilOperation _backStencilDepthPassOperation,
RenderState.TestFunction _frontStencilFunction,
RenderState.TestFunction _backStencilFunction)
Enable stencil testing.
|
void |
setWireframe(boolean wireframe)
Enables wireframe rendering mode.
|
java.lang.String |
toString() |
void |
write(JmeExporter ex) |
public static final RenderState DEFAULT
DEFAULT
render state is the one used by default
on all materials unless changed otherwise by the user.
It has the following properties:
public static final RenderState NULL
NULL
render state is identical to the DEFAULT
render state except that depth testing and face culling are disabled.public static final RenderState ADDITIONAL
ADDITIONAL
render state is identical to the
DEFAULT
render state except that all apply
values are set to false. This allows the ADDITIONAL
render
state to be combined with other state but only influencing values
that were changed from the original.public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public RenderState clone()
RenderState
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the renderState to compate topublic void setPointSprite(boolean pointSprite)
When point sprite is enabled, any meshes
with the type of Mesh.Mode.Points
will be rendered as 2D quads
with texturing enabled. Fragment shaders can write to the
gl_PointCoord
variable to manipulate the texture coordinate
for each pixel. The size of the 2D quad can be controlled by writing
to the gl_PointSize
variable in the vertex shader.
pointSprite
- Enables Point Sprite mode.public void setAlphaFallOff(float alphaFallOff)
If the pixel's alpha value is greater than the
alphaFallOff
then the pixel will be rendered, otherwise
the pixel will be discarded.
Note : Alpha test is deprecated since opengl 3.0 and does not exists in
openglES 2.0.
The prefered way is to use the alphaDiscardThreshold on the material
Or have a shader that discards the pixel when its alpha value meets the
discarding condition.
alphaFallOff
- The alpha of all rendered pixels must be higher
than this value to be rendered. This value should be between 0 and 1.setAlphaTest(boolean)
public void setAlphaTest(boolean alphaTest)
When alpha testing is enabled, all input pixels' alpha are compared
to the constant alpha falloff
.
If the input alpha is greater than the falloff, the pixel will be rendered,
otherwise it will be discarded.
alphaTest
- Set to true to enable alpha testing.
Note : Alpha test is deprecated since opengl 3.0 and does not exists in
openglES 2.0.
The prefered way is to use the alphaDiscardThreshold on the material
Or have a shader that discards the pixel when its alpha value meets the
discarding condition.setAlphaFallOff(float)
public void setColorWrite(boolean colorWrite)
When color write is enabled, the result of a fragment shader, the
gl_FragColor
, will be rendered into the color buffer
(including alpha).
colorWrite
- Set to true to enable color writing.public void setFaceCullMode(RenderState.FaceCullMode cullMode)
See the RenderState.FaceCullMode
enum on what each value does.
Face culling will project the triangle's points onto the screen
and determine if the triangle is in counter-clockwise order or
clockwise order. If a triangle is in counter-clockwise order, then
it is considered a front-facing triangle, otherwise, it is considered
a back-facing triangle.
cullMode
- the face culling mode.public void setBlendMode(RenderState.BlendMode blendMode)
When blending is enabled, (blendMode
is not RenderState.BlendMode.Off
)
the input pixel will be blended with the pixel
already in the color buffer. The blending operation is determined
by the RenderState.BlendMode
. For example, the RenderState.BlendMode.Additive
will add the input pixel's color to the color already in the color buffer:
Result = Source Color + Destination Color
blendMode
- The blend mode to use. Set to RenderState.BlendMode.Off
to disable blending.public void setDepthTest(boolean depthTest)
When depth testing is enabled, a pixel must pass the depth test before it is written to the color buffer. The input pixel's depth value must be less than or equal than the value already in the depth buffer to pass the depth test.
depthTest
- Enable or disable depth testing.public void setDepthWrite(boolean depthWrite)
After passing the depth test
,
a pixel's depth value will be written into the depth buffer if
depth writing is enabled.
depthWrite
- True to enable writing to the depth buffer.public void setWireframe(boolean wireframe)
When in wireframe mode, meshes
rendered in triangle mode
will not be solid, but instead, only the edges of the triangles
will be rendered.
wireframe
- True to enable wireframe mode.public void setPolyOffset(float factor, float units)
factor
- scales the maximum Z slope, with respect to X or Y of the polygonunits
- scales the minimum resolvable depth buffer valuepublic void setStencil(boolean enabled, RenderState.StencilOperation _frontStencilStencilFailOperation, RenderState.StencilOperation _frontStencilDepthFailOperation, RenderState.StencilOperation _frontStencilDepthPassOperation, RenderState.StencilOperation _backStencilStencilFailOperation, RenderState.StencilOperation _backStencilDepthFailOperation, RenderState.StencilOperation _backStencilDepthPassOperation, RenderState.TestFunction _frontStencilFunction, RenderState.TestFunction _backStencilFunction)
Stencil testing can be used to filter pixels according to the stencil buffer. Objects can be rendered with some stencil operation to manipulate the values in the stencil buffer, then, other objects can be rendered to test against the values written previously.
enabled
- Set to true to enable stencil functionality. If false
all other parameters are ignored._frontStencilStencilFailOperation
- Sets the operation to occur when
a front-facing triangle fails the front stencil function._frontStencilDepthFailOperation
- Sets the operation to occur when
a front-facing triangle fails the depth test._frontStencilDepthPassOperation
- Set the operation to occur when
a front-facing triangle passes the depth test._backStencilStencilFailOperation
- Set the operation to occur when
a back-facing triangle fails the back stencil function._backStencilDepthFailOperation
- Set the operation to occur when
a back-facing triangle fails the depth test._backStencilDepthPassOperation
- Set the operation to occur when
a back-facing triangle passes the depth test._frontStencilFunction
- Set the test function for front-facing triangles._backStencilFunction
- Set the test function for back-facing triangles.public void setDepthFunc(RenderState.TestFunction depthFunc)
depthFunc
- the depth comparison functionRenderState.TestFunction
,
setDepthTest(boolean)
public void setAlphaFunc(RenderState.TestFunction alphaFunc)
alphaFunc
- the alpha comparision functionRenderState.TestFunction
,
setAlphaTest(boolean)
,
setAlphaFallOff(float)
public void setLineWidth(float lineWidth)
setWireframe(boolean)
or with a mesh in Mesh.Mode#Lines
mode.lineWidth
- the line width.public boolean isStencilTest()
public RenderState.StencilOperation getFrontStencilStencilFailOperation()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.StencilOperation getFrontStencilDepthFailOperation()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.StencilOperation getFrontStencilDepthPassOperation()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.StencilOperation getBackStencilStencilFailOperation()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.StencilOperation getBackStencilDepthFailOperation()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.StencilOperation getBackStencilDepthPassOperation()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.TestFunction getFrontStencilFunction()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.TestFunction getBackStencilFunction()
setStencil(boolean,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.StencilOperation,
com.jme3.material.RenderState.TestFunction,
com.jme3.material.RenderState.TestFunction)
public RenderState.BlendMode getBlendMode()
public boolean isPointSprite()
setPointSprite(boolean)
public boolean isAlphaTest()
setAlphaTest(boolean)
public RenderState.FaceCullMode getFaceCullMode()
setFaceCullMode(com.jme3.material.RenderState.FaceCullMode)
public boolean isDepthTest()
setDepthTest(boolean)
public boolean isDepthWrite()
setDepthWrite(boolean)
public boolean isWireframe()
setWireframe(boolean)
public boolean isColorWrite()
setColorWrite(boolean)
public float getPolyOffsetFactor()
setPolyOffset(float, float)
public float getPolyOffsetUnits()
setPolyOffset(float, float)
public boolean isPolyOffset()
setPolyOffset(float, float)
public float getAlphaFallOff()
setAlphaFallOff(float)
public RenderState.TestFunction getDepthFunc()
setDepthFunc(com.jme3.material.RenderState.TestFunction)
public RenderState.TestFunction getAlphaFunc()
setAlphaFunc(com.jme3.material.RenderState.TestFunction)
public float getLineWidth()
public boolean isApplyAlphaFallOff()
public boolean isApplyAlphaTest()
public boolean isApplyBlendMode()
public boolean isApplyColorWrite()
public boolean isApplyCullMode()
public boolean isApplyDepthTest()
public boolean isApplyDepthWrite()
public boolean isApplyPointSprite()
public boolean isApplyPolyOffset()
public boolean isApplyWireFrame()
public boolean isApplyDepthFunc()
public boolean isApplyAlphaFunc()
public boolean isApplyLineWidth()
public int contentHashCode()
public RenderState copyMergedTo(RenderState additionalState, RenderState state)
this
state and additionalState
into
the parameter state
based on a specific criteria.
The criteria for this merge is the following:
For every given property, such as alpha test or depth write, check
if it was modified from the original in the additionalState
if it was modified, then copy the property from the additionalState
into the parameter state
, otherwise, copy the property from this
into the parameter state
. If additionalState
is null
, then no modifications are made and this
is returned,
otherwise, the parameter state
is returned with the result
of the merge.
additionalState
- The additionalState
, from which data is taken only
if it was modified by the user.state
- Contains output of the method if additionalState
is not null.state
if additionalState
is non-null,
otherwise returns this
public void set(RenderState state)
public java.lang.String toString()
toString
in class java.lang.Object


|
ActiveTcl User Guide
|
||
Tk_GetReliefFromObj, Tk_GetRelief, Tk_NameOfRelief - translate between strings and relief values
#include <tk.h>
int
Tk_GetReliefFromObj(interp, objPtr,
reliefPtr)
int
Tk_GetRelief(interp, name, reliefPtr)
CONST char *
Tk_NameOfRelief(relief)
Tk_GetReliefFromObj places in *reliefPtr the relief value corresponding to the value of objPtr. This value will be one of TK_RELIEF_FLAT, TK_RELIEF_RAISED, TK_RELIEF_SUNKEN, TK_RELIEF_GROOVE, TK_RELIEF_SOLID, or TK_RELIEF_RIDGE. Under normal circumstances the return value is TCL_OK and interp is unused. If objPtr doesn't contain one of the valid relief names or an abbreviation of one of them, then TCL_ERROR is returned, *reliefPtr is unmodified, and an error message is stored in interp's result if interp isn't NULL. Tk_GetReliefFromObj caches information about the return value in objPtr, which speeds up future calls to Tk_GetReliefFromObj with the same objPtr.
Tk_GetRelief is identical to Tk_GetReliefFromObj except that the description of the relief is specified with a string instead of an object. This prevents Tk_GetRelief from caching the return value, so Tk_GetRelief is less efficient than Tk_GetReliefFromObj.
Tk_NameOfRelief is the logical inverse of Tk_GetRelief. Given a relief value it returns the corresponding string (flat, raised, sunken, groove, solid, or ridge). If relief isn't a legal relief value, then ``unknown relief'' is returned.
Copyright © 1990 The Regents of the University of California. Copyright © 1994-1998 Sun Microsystems, Inc. Copyright © 1995-1997 Roger E. Critchlow Jr.


This webpage has been created in order to have stored everything that I have done in the Mobile Devices class during the fifth semester of the Video Game Design & Development degree taught by CITM,UPC university in Terrassa. So when I do the final exam, I'll be able to find anything I want searching it on the main page search box. All the code related to Flutter is created by my teacher Pau Fernández.
As for me, I'm a passionate student of the degree mentioned above currently on the 3rd out of 4 year. My name is Lluís Moreu and last year I made a Website Research and I found it so breathtaking that I wanted to do another website with some new widgets like a search box and code snippets. Also, Flutter(Dart) has some similarities with html and css with some parameters that I've fallen in love with it ♥


| Modifier and Type | Method and Description |
|---|---|
void |
AbstractGremlinSuite.afterTestExecution(Class<? extends AbstractGremlinTest> testClass)
Called just after test class execution.
|
boolean |
AbstractGremlinSuite.beforeTestExecution(Class<? extends AbstractGremlinTest> testClass)
Called just prior to test class execution.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractGeneratorTest |
static class |
CommunityGeneratorTest.DifferentDistributionsTest |
static class |
CommunityGeneratorTest.ProcessorTest |
static class |
DistributionGeneratorTest.DifferentDistributionsTest |
static class |
DistributionGeneratorTest.ProcessorTest |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractGremlinProcessTest
Base test class for Gremlin Process tests.
|
class |
CoreTraversalTest |
class |
PathStructureTest |
class |
TraversalCoverageTest |
| Modifier and Type | Class and Description |
|---|---|
class |
GraphComputerTest |
static class |
GraphComputerTest.ComputerTest |
| Modifier and Type | Class and Description |
|---|---|
class |
PageRankVertexProgramTest |
| Modifier and Type | Class and Description |
|---|---|
class |
ChooseTest |
static class |
ChooseTest.ComputerTest |
static class |
ChooseTest.StandardTest |
class |
JumpTest |
static class |
JumpTest.ComputerTest |
static class |
JumpTest.StandardTest |
class |
UnionTest |
static class |
UnionTest.ComputerTest |
static class |
UnionTest.StandardTest |
class |
UntilTest |
static class |
UntilTest.ComputerTest |
static class |
UntilTest.StandardTest |
| Modifier and Type | Class and Description |
|---|---|
class |
TraversalSideEffectsTest |
static class |
TraversalSideEffectsTest.StandardTest |
| Modifier and Type | Class and Description |
|---|---|
class |
BatchTest
BatchGraph tests are also handled by the IOTest battery.
|
static class |
EdgeTest.BasicEdgeTest |
static class |
EdgeTest.ExceptionConsistencyWhenEdgeRemovedTest |
static class |
FeatureSupportTest.EdgeFunctionalityTest
Feature checks that test
Edge functionality to determine if a feature
should be on when it is marked as not supported. |
static class |
FeatureSupportTest.ElementPropertyDataTypeFunctionalityTest
|
static class |
FeatureSupportTest.FeatureToStringTest |
static class |
FeatureSupportTest.GraphFunctionalityTest
Feature checks that test
Graph functionality to determine if a feature should be on when it is marked
as not supported. |
static class |
FeatureSupportTest.GraphVariablesFunctionalityTest
Feature checks that tests if
Graph.Variables
functionality to determine if a feature should be on when it is marked as not supported. |
static class |
FeatureSupportTest.LogicalFeatureSupportTest
Feature checks that simply evaluate conflicting feature definitions without evaluating the actual implementation
itself.
|
static class |
FeatureSupportTest.VertexFunctionalityTest
Feature checks that test
Vertex functionality to determine if a feature
should be on when it is marked as not supported. |
static class |
FeatureSupportTest.VertexPropertyFunctionalityTest |
class |
GraphConstructionTest
Tests that support the creation of
Graph instances which occurs via
GraphFactory . |
static class |
GraphReadPerformanceTest.ReadFromGraph |
class |
GraphTest |
static class |
GraphWritePerformanceTest.WriteToGraph |
static class |
GraphWritePerformanceTest.WriteToIO |
class |
IoTest |
static class |
PropertyTest.BasicPropertyTest
Basic tests for the
Property class. |
static class |
PropertyTest.EdgePropertiesShouldHideCorrectly
This set of tests didn't fit well in VertexProperty as they do not relate to edges and they did not work
well in Edge tests either as they don't use an "Enclosed" runner.
|
static class |
PropertyTest.ElementGetValueExceptionConsistencyTest
Test exceptions around use of
Element.value(String) . |
static class |
PropertyTest.PropertyFeatureSupportTest
Tests for feature support on
Property . |
static class |
PropertyTest.PropertyValidationOnAddExceptionConsistencyTest
|
static class |
PropertyTest.PropertyValidationOnSetExceptionConsistencyTest
|
class |
TransactionTest |
static class |
VariablesTest.GraphVariablesFeatureSupportTest
Tests for feature support on
Graph.Variables . |
static class |
VariablesTest.SideEffectsAsMapTest
Ensure that the
Graph.Variables.asMap() method returns some basics. |
static class |
VariablesTest.StringRepresentationTest
Basic tests to ensure that
Graph.Variables have
appropriate String representations. |
static class |
VariablesTest.VariableExceptionConsistencyTest
Test exceptions around
Graph.Variables . |
class |
VertexPropertyTest |
static class |
VertexPropertyTest.ExceptionConsistencyWhenVertexPropertyRemovedTest |
static class |
VertexPropertyTest.VertexPropertiesShouldHideCorrectlyGivenMultiProperty |
static class |
VertexPropertyTest.VertexPropertyAddition |
static class |
VertexPropertyTest.VertexPropertyProperties |
static class |
VertexPropertyTest.VertexPropertyRemoval |
static class |
VertexPropertyTest.VertexPropertyTraversals |
static class |
VertexTest.BasicVertexTest |
static class |
VertexTest.ExceptionConsistencyWhenVertexRemovedTest |
| Modifier and Type | Field and Description |
|---|---|
BiFunction<Graph,AbstractGremlinTest,Stream<Edge>> |
StrategyWrappedGraphTest.EdgeShouldBeWrappedTest.streamGetter |
BiFunction<Graph,AbstractGremlinTest,Stream<Vertex>> |
StrategyWrappedGraphTest.VertexShouldBeWrappedTest.streamGetter |
BiFunction<Graph,AbstractGremlinTest,Stream<Graph>> |
StrategyWrappedGraphTest.GraphShouldBeWrappedTest.streamGetter |
| Modifier and Type | Class and Description |
|---|---|
class |
DetachedEdgeTest |
class |
DetachedPropertyTest |
class |
DetachedVertexPropertyTest |
class |
DetachedVertexTest |
Copyright © 2013–2014 TinkerPop. All rights reserved.


{% extends "base.html" %} {% block title %}Frequently Asked Questions{% endblock %} {% block content %}
If you have a question that's not answered here, please send email to<EMAIL_ADDRESS>Yes, here is my resume if you're interested. I'm currently based in Seattle, but will relocate if you make me a good offer. I can work in EU (citizen of Germany) and USA (permanent resident).
My list is a fairly random sampling of the huge search space of available domain names. I'm planning to keep adding more names in the future, trying to strike a balance between good names (short but readable) and more names (requiring more storage). Fortunately, the App Engine Datastore has linear complexity for the number of query results, so adding more names doesn't slow down the searching.
Most of the names are from daily listings of expiring domain names. Some of the shorter names are generated with simple Python scripts (combinations of letters or short dictionary words). I'm planning to keep adding more names in the future.
Currently all DNS results are updated within two weeks, and "good" names more often. The update period for obscure names may be extended in the future, as more names are added to the database.
Because we can't run DNS queries inside Google App Engine. Instead, I query the DNS results from a VPS and feed them into the datastore using remote_api.
Because I'm running these queries in advance and storing the results in the datastore. Then they can be loaded instantly when the user starts typing a keyword. With parallel DNS queries, I can update millions of domain names every week. I believe the registrar APIs have usage limits that wouldn't allow this.
It's written in about 2500 lines of Python, using Django 1.1 (app-engine-patch) on Google App Engine. The full source code is here: github.com/jcrocholl/nxdom
{% endblock %}


AngularJS ng-mousedown Event Example
No. of Times MouseDown Event Fired: {{count}}
AngularJS ng-mouseenter Event Example
No. of Times MouseEnter Event Fired: {{count}}
AngularJS ng-mouseleave Event Example
No. of Times MouseLeave Event Fired: {{count}}
AngularJS ng-mousemove Event Example
Move Mouse Cursor Here...
No. of Times MouseMove Event Fired: {{count}}
AngularJS ng-mouseover Event Example
Hover Mouse Cursor Here...
No. of Times MouseOver Event Fired: {{count}}
AngularJS ng-mouseup Event Example
No. of Times MouseUp Event Fired: {{count}}


|
Note:
Any information passed through the customer's browser
can potentially be modified by the customer, or even by third parties to
fraudulently alter the transaction data. Therefore all transactional
information should not be passed through the browser in
a way that could potentially be modified (e.g. hidden form fields).
Transaction data should only be accepted once from a browser at the
point of input, and then kept in a way that does not allow others
to modify it (e.g. database, server session, etc.). Any transaction
information displayed to a customer, such as amount, should be passed
only as display information and the actual transactional data should be
retrieved from the secure source last thing at the point of processing
the transaction.
|


{% extends 'base.html' %} {% block style %} .btn-default { background-color: #e9f9df; font-size : 30px; width: 50%; height: 50px; } .lets-play { font-weight: bold; } {% endblock style %} {% block navbar %}
{% endblock navbar %} {% block content %}If you like having your knowledge tested and helping others to do so, you're in a right place! Here you can create and solve various quizzes on topics limited only by the imagination of our users.
There's a catch, though: creating a quiz doesn't mean just typing in a question and an answer. Our quizzes are based on the knowledge treasure trove that is Wikipedia. How does it work? Create an account if you haven't already, log in and try to {% if user.is_authenticated %} create a quiz {% else %} create a quiz {% endif %} yourself - or, if you'd rather stay a stranger for a while, solve one of the quizzes that are already available.


1255 Nowhere Street Tampa, FL 33655 phone:<PHONE_NUMBER> fax:<PHONE_NUMBER> email<EMAIL_ADDRESS>Sign in
Forgot your password? Don't have an account yet? Sign up
Register
Already have an account? Login
Remembered your Password?


| Constants' Details |
UNKNOWN
const short UNKNOWN = 0;
- Description
- Unknown role.
The object contains some Accessible information, but its role is
not known.
|
|
ALERT
const short ALERT = 1;
- Description
- Object is used to alert the user about something.
|
|
COLUMN_HEADER
const short COLUMN_HEADER = 2;
- Description
- The header for a column of data.
|
|
CANVAS
const short CANVAS = 3;
- Description
- Object that can be drawn into and is used to trap events.
See alse FRAME, GLASS_PANE, and
LAYERED_PANE.
|
|
CHECK_BOX
const short CHECK_BOX = 4;
- Description
- Check box role.
A choice that can be checked or unchecked and provides a separate
indicator for the current state.
See also PUSH_BUTTON, TOGGLE_BUTTON,
and RADIO_BUTTON.
|
|
CHECK_MENU_ITEM
const short CHECK_MENU_ITEM = 5;
- Description
- This role is used for check buttons that are menu items.
- See also
- CHECK_BOX,
MENU_ITEM
|
|
COLOR_CHOOSER
const short COLOR_CHOOSER = 6;
- Description
- A specialized dialog that lets the user choose a color.
|
|
COMBO_BOX
const short COMBO_BOX = 7;
- Description
- Combo box role.
A list of choices the user can select from. Also optionally
allows the user to enter a choice of their own.
|
|
DATE_EDITOR
const short DATE_EDITOR = 8;
- Description
- Date editor role.
A DATE_EDITOR is a component that allows users to
edit java.util.Date and java.util.Time objects.
|
|
DESKTOP_ICON
const short DESKTOP_ICON = 9;
- Description
- An iconified internal frame in a DESKTOP_PANE.
See also DESKTOP_PANE and
INTERNAL_FRAME.
|
|
DESKTOP_PANE
const short DESKTOP_PANE = 10;
- Description
- Desktop pane role.
A pane that supports internal frames and iconified versions of
those internal frames.
|
|
DIRECTORY_PANE
const short DIRECTORY_PANE = 11;
- Description
- Directory pane role.
A pane that allows the user to navigate through and select the
contents of a directory. May be used by a file chooser.
See also FILE_CHOOSER.
|
|
DIALOG
const short DIALOG = 12;
- Description
- Dialog box role.
A top level window with title bar and a border. A dialog is
similar to a frame, but it has fewer properties and is often used as
a secondary window for an application.
See also FRAME and WINDOW.
|
|
DOCUMENT
const short DOCUMENT = 13;
- Description
- View of a document.
The view of an actual document. Its content depends on the
documen type.
|
|
EMBEDDED_OBJECT
const short EMBEDDED_OBJECT = 14;
- Description
- Embeded (OLE) object.
|
|
END_NOTE
const short END_NOTE = 15;
- Description
- Text that is used as an endnote (footnote at the end of a chapter or
section.
|
|
FILE_CHOOSER
const short FILE_CHOOSER = 16;
- Description
- File chooser role.
A specialized dialog that displays the files in the directory
and lets the user select a file, browse a different directory, or
specify a filename. May use the directory pane to show the contents
of a directory.
See also DIRECTORY_PANE.
|
|
FILLER
const short FILLER = 17;
- Description
- Filler role.
An object that fills up space in a user interface. It is often
used in interfaces to tweak the spacing between components, but
serves no other purpose.
|
|
FONT_CHOOSER
const short FONT_CHOOSER = 18;
- Description
- Font chooser role.
A FONT_CHOOSER is a component that lets the user pick various
attributes for fonts.
|
|
FOOTER
const short FOOTER = 19;
- Description
- Footer of a document page.
- See also
- HEADER
|
|
FOOTNOTE
const short FOOTNOTE = 20;
- Description
- Text that is used as a footnote.
|
|
FRAME
const short FRAME = 21;
- Description
- Frame role.
A top level window with a title bar, border, menu bar, etc. It
is often used as the primary window for an application.
See also DIALOG, CANVAS, and
WINDOW.
|
|
GLASS_PANE
const short GLASS_PANE = 22;
- Description
- Glass pane role.
A pane that is guaranteed to be painted on top of all panes
beneath it.
See also ROOT_PANE and CANVAS.
|
|
GRAPHIC
const short GRAPHIC = 23;
- Description
- Graphical object.
|
|
GROUP_BOX
const short GROUP_BOX = 24;
- Description
- Group box role.
A GROUP_BOX is a simple container that contains a
border around it and contains components inside it.
|
|
HEADER
const short HEADER = 25;
- Description
- Header of a document page.
- See also
- FOOTER
|
|
HEADING
const short HEADING = 26;
- Description
- Chapter or section heading.
|
|
HYPER_LINK
const short HYPER_LINK = 27;
- Description
- A hypertext anchor.
|
|
ICON
const short ICON = 28;
- Description
- A small fixed size picture, typically used to decorate components.
|
|
INTERNAL_FRAME
const short INTERNAL_FRAME = 29;
- Description
- Internal frame role.
A frame-like object that is clipped by a desktop pane. The
desktop pane, internal frame, and desktop icon objects are often
used to create multiple document interfaces within an
application.
See also DESKTOP_ICON, DESKTOP_PANE,
and FRAME.
|
|
LABEL
const short LABEL = 30;
- Description
- An object used to present an icon or short string in an interface.
|
|
LAYERED_PANE
const short LAYERED_PANE = 31;
- Description
- layered pane role.
A specialized pane that allows its children to be drawn in
layers, providing a form of stacking order. This is usually the pane
that holds the menu bar as well as the pane that contains most of
the visual components in a window.
See also GLASS_PANE and
ROOT_PANE.
|
|
LIST
const short LIST = 32;
- Description
- List role.
An object that presents a list of objects to the user and allows
the user to select one or more of them. A list is usually contained
within a scroll pane.
See also SCROLL_PANE and
LIST_ITEM.
|
|
LIST_ITEM
const short LIST_ITEM = 33;
- Description
- List item role.
An object that presents an element in a list. A list is usually
contained within a scroll pane.
See also SCROLL_PANE and LIST.
|
|
MENU
const short MENU = 34;
- Description
- Menu role.
An object usually found inside a menu bar that contains a list of
actions the user can choose from. A menu can have any object as its
children, but most often they are menu items, other menus, or
rudimentary objects such as radio buttons, check boxes, or
separators. For example, an application may have an "Edit" menu that
contains menu items for "Cut" and "Paste."
See also MENU_BAR, MENU_ITEM,
SEPARATOR, RADIO_BUTTON,
CHECK_BOX, and POPUP_MENU.
|
|
MENU_BAR
const short MENU_BAR = 35;
- Description
- Menu bar role.
An object usually drawn at the top of the primary dialog box of
an application that contains a list of menus the user can choose
from. For example, a menu bar might contain menus for "File,"
"Edit," and "Help."
See also MENU, POPUP_MENU, and
LAYERED_PANE.
|
|
MENU_ITEM
const short MENU_ITEM = 36;
- Description
- Menu item role.
An object usually contained in a menu that presents an action the
user can choose. For example, the "Cut" menu item in an "Edit" menu
would be an action the user can select to cut the selected area of
text in a document.
See also MENUBAR, SEPARATOR, and
POPUP_MENU.
|
|
OPTION_PANE
const short OPTION_PANE = 37;
- Description
- A specialized pane whose primary use is inside a DIALOG.
See also DIALOG.
|
|
PAGE_TAB
const short PAGE_TAB = 38;
- Description
- Page tab role.
An object that is a child of a page tab list. Its sole child is
the panel that is to be presented to the user when the user selects
the page tab from the list of tabs in the page tab list.
See also PAGE_TAB_LIST.
|
|
PAGE_TAB_LIST
const short PAGE_TAB_LIST = 39;
- Description
- Page tab list role.
An object that presents a series of panels (or page tabs), one at
a time, through some mechanism provided by the object. The most
common mechanism is a list of tabs at the top of the panel. The
children of a page tab list are all page tabs.
See also PAGE_TAB.
|
|
PANEL
const short PANEL = 40;
- Description
- A generic container that is often used to group objects.
|
|
PARAGRAPH
const short PARAGRAPH = 41;
- Description
- Paragraph of text.
|
|
PASSWORD_TEXT
const short PASSWORD_TEXT = 42;
- Description
- Password text role.
A text object used for passwords, or other places where the text
contents is not shown visibly to the user.
|
|
POPUP_MENU
const short POPUP_MENU = 43;
- Description
- Popup menu role.
A temporary window that is usually used to offer the user a list
of choices, and then hides when the user selects one of those
choices.
See also MENU and MENU_ITEM.
|
|
PUSH_BUTTON
const short PUSH_BUTTON = 44;
- Description
- Push button role.
An object the user can manipulate to tell the application to do
something.
See also CHECK_BOX, TOGGLE_BUTTON,
RADIO_BUTTON, BUTTON_MENU and
BUTTON_DROPDOWN.
|
|
PROGRESS_BAR
const short PROGRESS_BAR = 45;
- Description
- An object used to indicate how much of a task has been completed.
|
|
RADIO_BUTTON
const short RADIO_BUTTON = 46;
- Description
- Radio button role.
A specialized check box that will cause other radio buttons in
the same group to become unchecked when this one is checked.
See also PUSH_BUTTON, TOGGLE_BUTTON,
and CHECK_BOX.
|
|
RADIO_MENU_ITEM
const short RADIO_MENU_ITEM = 47;
- Description
- This role is used for radio buttons that are menu items.
- See also
- RADIO_BUTTON,
MENU_ITEM
|
|
ROW_HEADER
const short ROW_HEADER = 48;
- Description
- The header for a row of data.
|
|
ROOT_PANE
const short ROOT_PANE = 49;
- Description
- Root pane role.
A specialized pane that has a glass pane and a layered pane as
its children.
See also GLASS_PANE and LAYERED_PANE.
|
|
SCROLL_BAR
const short SCROLL_BAR = 50;
- Description
- Scroll bar role.
An object usually used to allow a user to incrementally view a
large amount of data. Usually used only by a scroll pane.
Ssee also SCROLL_PANE.
|
|
SCROLL_PANE
const short SCROLL_PANE = 51;
- Description
- Scroll pane role.
An object that allows a user to incrementally view a large amount
of information. Its children can include scroll bars and a
viewport.
See also SCROLL_BAR and VIEW_PORT.
|
|
SHAPE
const short SHAPE = 52;
- Description
- Object with graphical representation used to represent content on
draw pages.
- See also
- ::com::sun::star::drawing::AccessibleShape
|
|
SEPARATOR
const short SEPARATOR = 53;
- Description
- Separator role.
An object usually contained in a menu to provide a visual and
logical separation of the contents in a menu. For example, the
"File" menu of an application might contain menu items for "Open,"
"Close," and "Exit," and will place a separator between "Close" and
"Exit" menu items.
See also MENU and MENU_ITEM.
|
|
SLIDER
const short SLIDER = 54;
- Description
- Slider role.
An object that allows the user to select from a bounded
range. For example, a slider might be used to select a number
between 0 and 100.
|
|
SPIN_BOX
const short SPIN_BOX = 55;
- Description
- Spin box role.
A SPIN_BOX is a simple spinner component and its
main use is for simple numbers.
|
|
SPLIT_PANE
const short SPLIT_PANE = 56;
- Description
- Split pane role.
A specialized panel that presents two other panels at the same
time. Between the two panels is a divider the user can manipulate to
make one panel larger and the other panel smaller.
|
|
STATUS_BAR
const short STATUS_BAR = 57;
- Description
- Status bar role.
A STATUS_BAR is an simple component that can
contain multiple labels of status information to the user.
|
|
TABLE
const short TABLE = 58;
- Description
- Table component.
An object used to present information in terms of rows and
columns. An example might include a spreadsheet application.
|
|
TABLE_CELL
const short TABLE_CELL = 59;
- Description
- Single cell in a table.
|
|
TEXT
const short TEXT = 60;
- Description
- Text role.
An object that presents text to the user. The text is usually
editable by the user as opposed to a label.
See also LABEL.
|
|
TEXT_FRAME
const short TEXT_FRAME = 61;
- Description
- Collection of objects that constitute a logical text entity.
|
|
TOGGLE_BUTTON
const short TOGGLE_BUTTON = 62;
- Description
- Toggle button role.
A specialized push button that can be checked or unchecked, but
does not provide a separate indicator for the current state.
See also PUSH_BUTTON, CHECK_BOX and
RADIO_BUTTON.
|
|
TOOL_BAR
const short TOOL_BAR = 63;
- Description
- Tool bar role.
A bar or palette usually composed of push buttons or toggle
buttons. It is often used to provide the most frequently used
functions for an application.
|
|
TOOL_TIP
const short TOOL_TIP = 64;
- Description
- Tool tip role.
An object that provides information about another object. The
accessibleDescription property of the tool tip is often displayed to
the user in a small "help bubble" when the user causes the mouse to
hover over the object associated with the tool tip.
|
|
TREE
const short TREE = 65;
- Description
- Tree role.
An object used to present hierarchical information to the
user. The individual nodes in the tree can be collapsed and expanded
to provide selective disclosure of the tree's contents.
|
|
VIEW_PORT
const short VIEW_PORT = 66;
- Description
- Viewport role.
An object usually used in a scroll pane. It represents the
portion of the entire data that the user can see. As the user
manipulates the scroll bars, the contents of the viewport can
change.
See also SCROLL_PANE.
|
|
WINDOW
const short WINDOW = 67;
- Description
- A top level window with no title or border.
See also FRAME and DIALOG.
|
|
BUTTON_DROPDOWN
const short BUTTON_DROPDOWN = 68;
- Description
- Button dropdown role
The object represents a button that drops down a list of items.
See also PUSH_BUTTON and BUTTON_MENU.
- Since
- OOo 3.0
|
|
BUTTON_MENU
const short BUTTON_MENU = 69;
- Description
- Button menu role
The object represents a button that drops down a menu.
See also PUSH_BUTTON and BUTTON_DROPDOWN.
- Since
- OOo 3.0
|
|
CAPTION
const short CAPTION = 70;
- Description
- Caption role
The object contains descriptive information, usually textual, about
another user interface element such as a table, chart, or image. .
- Since
- OOo 3.0
|
|
CHART
const short CHART = 71;
- Description
- Chart role
The object is a graphical depiction of quantitative data. It may contain multiple
subelements whose attributes and/or description may be queried to obtain both
the quantitative data and information about how the data is being presented.
- Since
- OOo 3.0
|
|
EDIT_BAR
const short EDIT_BAR = 72;
- Description
- Edit bar role
A role indicating the object acts as a formula for calculating a value.
- Since
- OOo 3.0
|
|
FORM
const short FORM = 73;
- Description
- Form role
The object is a container for form controls, for instance as part of a web form
or user-input form within a document.
- Since
- OOo 3.0
|
|
IMAGE_MAP
const short IMAGE_MAP = 74;
- Description
- Image map role
Usually a graphic with multiple hotspots, where each hotspot can be activated
resulting in the loading of another document or section of a document.
- Since
- OOo 3.0
|
|
NOTE
const short NOTE = 75;
- Description
- Note role
An embedded note which is not visible until activated.
- Since
- OOo 3.0
|
|
PAGE
const short PAGE = 76;
- Description
- Page role
An object representing a page of document content. It is used in documents
which are accessed by the user on a page by page basis.
- Since
- OOo 3.0
|
|
RULER
const short RULER = 77;
- Description
- Ruler role
An object which describes margins and tab stops, etc. for text objects which it controls.
- Since
- OOo 3.0
|
|
SECTION
const short SECTION = 78;
- Description
- Section role
The object is a containing instance of document content which constitutes a particular
'logical' section of the document.
- Since
- OOo 3.0
|
|
TREE_ITEM
const short TREE_ITEM = 79;
- Description
- Tree item role
An object that presents an element in a tree
See also TREE and TREE_TABLE.
- Since
- OOo 3.0
|
|
TREE_TABLE
const short TREE_TABLE = 80;
- Description
- Tree table role
An object which represents both hierarchical and tabular information.
- Since
- OOo 3.0
|
|
COMMENT
const short COMMENT = 81;
- Description
- Comment role
An object which represents a comment.
A comment is anchored at a certain content position in the document and
annotates this document content position or a certain text range of the document content.
In the OpenDocument file format a comment is known as an annotation.
See also COMMENT_END.
- Since
- OOo 3.2
|
|
COMMENT_END
const short COMMENT_END = 82;
- Description
- Comment end role
An invisible object which represents the end position of a text range which
is annotated by a comment - see COMMENT.
This object and the corresponding object representing the comment shall be
in relation of type MEMBER_OF.
- Since
- OOo 3.2
|
|
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


| Home > Documentation > Installing and running > Running Geronimo > Running multiple Geronimo instances |
Regarding both Geronimo javaee6 and minimal release bundles. Full support for multiple instances was completed in GERONIMO-6270 and its sub-tasks. This support is available in the latest snapshots after March 1, 2012, and will be in the 3.0-beta-2 standard release. This documents how to run multiple instances after applying the changes from GERONIMO-6270.
For prior releases, multiple installations can safely run side-by-side by completely copying the server folder to another, and start the 2nd server installation after changing its portOffset value.
GERONIMO_HOME
versus GERONIMO_SERVER
Simply put, GERONIMO_HOME
is the path to the server binary installation and GERONIMO_SERVER
is the path to the server run-time configuration. GERONIMO_HOME
is the path to where Geronimo was installed which every instance references, and every Geronimo instance defines its own GERONIMO_SERVER
as the path to the configuration for the instance.
We define GERONIMO_SERVER
in order to have the Geronimo start procedures startup an instance.
GERONIMO_HOME
is obtained during startup relative to the directory Geronimo is installed in. By default, if the user does not define GERONIMO_SERVER
it is set to GERONIMO_HOME
. If the user defines GERONIMO_SERVER
it is attempted to be resolved to an absolute path in the following ways:
GERONIMO_SERVER
is absolute
GERONIMO_SERVER
GERONIMO_HOME
IFF GERONIMO_SERVER
is not absolute
GERONIMO_HOME
/GERONIMO_SERVER
Skip this sub-section if you do not care about the technical internals of Geronimo's use of GERONIMO_HOME
versus GERONIMO_SERVER
Inside Geronimo there is a concept of home
, base
, and server
, with corresponding java properties org.apache.geronimo.home.dir
and org.apache.geronimo.server.dir
. base
and server
are the same, but Geronimo references base
in general to reference the location for run-time configuration. The definition of server
is user provided, and redefines base
.
When Geronimo runs, home
and base
properties are defined relative to the installation directory of Geronimo. When a user starts up a Geronimo instance, the user defines the server
property. Defining the server
property triggers Geronimo to change its base
from home
to server
thus starting up a Geronimo instance.
Several internal libraries used by Geronimo define two categories of properties as home
and base
, and Geronimo defines these further when server
is defined. Outside of running multiple Geronimo instances base
properties can be used to separate the binary installation from the user-modifiable configuration for a single server installation when that is desirable in some disk layout strategies.
It is possible to run multiple instances of Geronimo on the same machine.
Currently multiple instances of Geronimo share the following directories in <geronimo_home>
, the directory where you installed Geronimo. These are read-only.
The repository is shared, and contains lots of basic and important libraries are required to bootstrap server. It is recommended to configure second repositories, one for each instance. See Configuring multiple Repositories.
When running multiple instances, do not run a server from GERONIMO_HOME but only from GERONIMO_SERVER roots. Also set the GERONIMO_HOME/repository
to be read-only to help prevent accidentally deploying to it when instead the intention is to deploy to the local repository for each Geronimo instance at GERONIMO_SERVER/repository
.
Each instance gets its own copy of the following at <geronimo_home>/<instance_name>
. etc
is read-only and var
is read-write. Both are necessary for each Geronimo instance.
These are also read-write but are not part of the minimally necessary directories and files for running a Geronimo instance, but may be desired. The deploy
and repository
directories will be automatically created when you start Geronimo if they do not already exist.
<geronimo_home>/<instance_name>
, and is not the same as the primary shared repository)The bin, lib and schema directories are read-only, and thus are shared between instances. The repository is also shared, which means that an application deployed in one instance will show up in the list of deployed modules for all instances. Thus creating the second repository for each instance is recommended to keep deployments local to the Geronimo instances. See Configuring multiple Repositories.
Here is an example layout of what it would look like to have installed one Geronimo instance named "foo-server".
Start with a fresh image of Geronimo. Do not use an image that has been used to run the default instance.
To create an instance named foo-server
do the following. All your instance data will be put in <geronimo_home>/foo-server
. All the directories named below are relative to <geronimo_home>
.
Follow the procedures as below:
foo-server
under <geronimo_home>
.var
and etc
directories to foo-server
. You can use the command deploy:new-server-instance to help you with this step. < GERONIMO-6287foo-server/repository
and set it up as a second repository for the Geronimo instance. See Configuring multiple Repositoriesfoo-server/var/config/config-substitutions.properties
and change the portOffset. Try using any integers such as 1, 2, 10, 20, 30.. for various instances.GERONIMO_SERVER
environment variable to define the server instance directory before you start the server. This variable will be set to GERONIMO_HOME
as default if not defined. Set GERONIMO_SERVER=foo-server
to change the server name to an instance named foo-server
located at <GERONIMO_HOME>/foo-server
, or GERONIMO_SERVER=/opt/geronimo/foo-server
to set the absolute path.set GERONIMO_SERVER=foo-server
export GERONIMO_SERVER="foo-server"
foo-server
, the port number should be 1099 plus portOffset specified in foo-server/var/config/config-substitutions.properties
.
GERONIMO_SERVER=foo-server
. See Configuring multiple Repositories for more detailed instructions.
The Administrative Console can also be used for all these operations. Connect to an instance by using the right HTTP port (default 8080).
GERONIMO_HOME
to be. We will use /opt/geronimo3
for this example./opt/geronimo3
/opt/geronimo3/gserv1
and /opt/geronimo3/gserv2
var
and etc
to each instance directoryrepository
directory within each instance directory and set it up as a second repository for the corresponding Geronimo instance. See Configuring multiple Repositoriesgserv(1|2)/var/config/config-substitutions.properties
file for each Geronimo instance changing the PortOffset
. We'll set the PortOffset
for gserv1
to 100 and the PortOffset
for gserv2
to 200 for our example./opt/geronimo3/gserv1/start.sh
/opt/geronimo3/gserv2/start.sh
GERONIMO_HOME/etc
and GERONIMO_HOME/var
are removed and GERONIMO_HOME/repository
is made read-onlyTo use multiple repositories see Configuring multiple Repositories.
| Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2013, The Apache Software Foundation, Licensed under ASL 2.0. |


Completed Projects
Pocket San Francisco
Javascript Developer and Design co-lead | www.pocketsf.io
- Pocket SF is a responsive web app that leverages public city data and Google Maps to find practical resources in SF
- Developed full-stack with Javascript, Meteor.js, Bootstrap, Socrata API, Google Maps API, MongoDB, Cordova
Mate
Ruby Developer and Design lead | Repo
- Mate is a responsive web app that helps users remember their new and existing friends through guided note-taking
- Developed full-stack with Ruby, Sinatra, Pure


Good Day, With warm hearts I offer my friendship, and my greetings, and I hope this letter meets you in good time. However, I am sincerely seeking your confidence in this transaction, which I propose with my free mind and as a person of integrity. I got your contact as a result of my discreet search for an associate in your country. I know this e-mail must come to you as a surprise,more so that we have not met before.I maintain the theory that business is people and contacts hence this e-mail to you.I am particularly interested in dealing with you because I expect you to be reliable and be more helpful. My name is Mr Oliver yengeni a south African citizen.I am the younger brother to Mr Tony Yengeni.My brother Mr.Tony was the chairman of parliament's in south Africa and the former chief whip of the ruling political party ANC .My Brother (MR. T. YENGENI),as a result of trust and Confidence he has mandated me that I search for a Reliable and trustworthy foreign partner, who will assist me in receiving some funds,which we have in cash Totalling US$27.5m(Twenty-seven million five hundred thousand dollars ) into a personal,company or any Reliable foreign bank account for safe keeping for a period of time, since our family bank accounts Within and outside the country have all been Frozen by the authorities. I would refer you to these three Websites for further information About my family and Why I Really Require Your Assistance. (i)http://news.bbc.co.uk/2/hi/africa/1577682.stm ii) http://news.bbc.co.uk/2/hi/business/2756861.stm iii)http://www.cnn.com/2001/WORLD/europe/10/03/safrica.arms/index.html However, I still want to let you know that this money is under the custody of a Private Security And Finance Company in Europe.I am believing you to be a trustworthy person and will not take advantage of us when the money gets to you. The total sum will be shared as follows:for your assistance we are offering you 20% , 70% For my family, 10% will be used for the reimbursement of all the expenses we will incurr in the process of this transaction. There is no risk involved as we have put all modalities in place to see to the success of this project.YOU MUST NOT CALL ME If you are interested in assisting us, urgently reply via the above email address.Please endeavour to keep this Transaction confidential.I will be very glad if you can come forward to help us. I thank you in advance as I anticipate your assistance in enabling me achieve this goal. God bless, Oliver Yengeni. NB:If you agree to my terms, kindly as a matter of urgency send me an email. Due to my sensitive position in the South African Government, I would not WANT you to call me on phone or send a fax to me. All correspondence must be by email.