Examples of startsWith()


Examples of net.aufdemrand.denizen.tags.Attribute.startsWith()

        // @attribute <&chr[<character>]>
        // @returns Element
        // @description
        // Returns the character specified.
        // -->
        if (attribute.startsWith("&chr") && attribute.hasContext(1))
            event.setReplaced(String.valueOf((char)Integer.parseInt(attribute.getContext(1), 16)));

    }
}
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.startsWith()

        // @attribute <server.list_permission_groups>
        // @returns dList
        // @description
        // Returns a list of all permission groups on the server.
        // -->
        if (attribute.startsWith("list_permission_groups")) {
            if (Depends.permissions == null) {
                dB.echoError("No permission system loaded! Have you installed Vault and a compatible permissions plugin?");
                return;
            }
            event.setReplaced(new dList(Arrays.asList(Depends.permissions.getGroups())).getAttribute(attribute.fulfill(1)));
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.startsWith()

        // @attribute <server.list_plugin_names>
        // @returns dList
        // @description
        // Gets a list of currently enabled plugin names from the server.
        // -->
        if (attribute.startsWith("list_plugin_names")) {
            dList plugins = new dList();
            for (Plugin plugin : Bukkit.getServer().getPluginManager().getPlugins())
                plugins.add(plugin.getName());
            event.setReplaced(plugins.getAttribute(attribute.fulfill(1)));
            return;
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.startsWith()

        // @attribute <server.list_scripts>
        // @returns dList(dScript)
        // @description
        // Gets a list of all scripts currently loaded into Denizen.
        // -->
        if (attribute.startsWith("list_scripts")) {
            dList scripts = new dList();
            for (String str : ScriptRegistry._getScriptNames())
                scripts.add("s@" + str);
            event.setReplaced(scripts.getAttribute(attribute.fulfill(1)));
            return;
View Full Code Here

Examples of org.apache.directory.shared.ldap.name.DN.startsWith()

        ServerEntry entry = addContext.getEntry();

        check( name, entry );

        // Special checks for the MetaSchema branch
        if ( name.startsWith( schemaBaseDN ) )
        {
            // get the schema name
            String schemaName = getSchemaName( name );

            if ( entry.contains( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.META_SCHEMA_OC ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.name.LdapDN.startsWith()

    {
        LdapDN oriChildName = opContext.getDn();

        ClonedServerEntry entry = opContext.lookup( oriChildName, ByPassConstants.LOOKUP_BYPASS );

        if ( oriChildName.startsWith( schemaBaseDN ) )
        {
            schemaManager.move( opContext, entry, opContext.hasRequestControl( CascadeControl.CONTROL_OID ) );
        }

        next.moveAndRename( opContext );
View Full Code Here

Examples of org.apache.hadoop.io.Text.startsWith()

            while (reader.nextKeyValue()) {
                final String line = reader.getCurrentValue().toString();
                if (line.equals("--")) {
                    break;
                }
                if (!line.startsWith(">")) {
                    contents.add(line);
                }
            }
            if (subject.length() == 0 && contents.size() == 0) {
                return null;
View Full Code Here

Examples of org.apache.qpid.framing.AMQShortString.startsWith()

            {
                if(body.getPassive() && ((body.getType() == null) || body.getType().length() ==0))
                {
                    throw body.getChannelException(AMQConstant.NOT_FOUND, "Unknown exchange: " + exchangeName);
                }
                else if(exchangeName.startsWith("amq."))
                {
                    throw body.getConnectionException(AMQConstant.NOT_ALLOWED,
                              "Attempt to declare exchange: " + exchangeName +
                              " which begins with reserved prefix 'amq.'.");
                }
View Full Code Here

Examples of org.apache.qpid.framing.AMQShortString.startsWith()

                {
                    throw body.getConnectionException(AMQConstant.NOT_ALLOWED,
                              "Attempt to declare exchange: " + exchangeName +
                              " which begins with reserved prefix 'amq.'.");
                }
                else if(exchangeName.startsWith("qpid."))
                {
                    throw body.getConnectionException(AMQConstant.NOT_ALLOWED,
                                                      "Attempt to declare exchange: " + exchangeName +
                                                      " which begins with reserved prefix 'qpid.'.");
                }
View Full Code Here

Examples of org.apache.tomcat.lite.io.CBuffer.startsWith()

                    boolean found = false;
                    CBuffer tmp = mappingData.tmpPrefix;
                    tmp.wrap(uri, 0, uri.length());

                    while (pos >= 0) {
                        if (tmp.startsWith(contexts[pos].name)) {
                            length = contexts[pos].name.length();
                            if (tmp.length() == length) {
                                found = true;
                                break;
                            } else if (tmp.startsWithIgnoreCase("/", length)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.