use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Registry\Registerable;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
/**
* A class holding general data about the application and some methods for
// Get a controller resolver
$resolverClass = sprintf(
'Org\Shipsimu\Hub\Resolver\Controller\%s',
- self::convertToClassName(sprintf(
+ StringUtils::convertToClassName(sprintf(
'%s_%s_controller_resolver',
$this->getAppShortName(),
FrameworkBootstrap::getRequestTypeFromSystem()
use Org\Mxchange\CoreFramework\Socket\SocketConnectionException;
use Org\Mxchange\CoreFramework\Socket\SocketOperationException;
use Org\Mxchange\CoreFramework\Socket\UnsupportedSocketErrorHandlerException;
+use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
use Org\Mxchange\CoreFramework\Visitor\Visitable;
use Org\Mxchange\CoreFramework\Visitor\Visitor;
protected function getSocketErrorHandlerFromCode (int $errorCode) {
// Create a name from translated error code
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-SOCKET: errorCode=%d - CALLED!', strtoupper($this->getSocketProtocol()), $errorCode));
- $handlerName = 'handleSocketError' . self::convertToClassName($this->translateSocketErrorCodeToName($errorCode));
+ $handlerName = 'handleSocketError' . StringUtils::convertToClassName($this->translateSocketErrorCodeToName($errorCode));
// Is the call-back method there?
if (!method_exists($this, $handlerName)) {
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
/**
* A factory class for nodes
// Now convert the node-mode in a class name
$className = sprintf(
'Org\Shipsimu\Hub\Node\%s\Hub%sNode',
- $factoryInstance->convertToClassName($nodeMode),
- $factoryInstance->convertToClassName($nodeMode)
+ StringUtils::convertToClassName($nodeMode),
+ StringUtils::convertToClassName($nodeMode)
);
// Get the node instance
// Import framework stuff
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
use Org\Mxchange\CoreFramework\Visitor\Visitable;
use Org\Mxchange\CoreFramework\Visitor\Visitor;
public function chunkPackageInstance (DeliverablePackage $packageInstance) {
// Construct call-back name from package error code
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('PACKAGE-ASSEMBLER: packageInstance=%s - CALLED!', $packageInstance->__toString()));
- $this->callbacks[$packageInstance->getErrorCode()] = 'handlePackageBy' . self::convertToClassName($packageInstance->getErrorCode());
+ $this->callbacks[$packageInstance->getErrorCode()] = 'handlePackageBy' . StringUtils::convertToClassName($packageInstance->getErrorCode());
// Init callable array
$callable = [
// Import framework stuff
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
use Org\Mxchange\CoreFramework\Resolver\BaseResolver;
+use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
/**
* A generic state resolver class
$stateInstance = NULL;
// Create state class name
- $className = $this->getStatePrefix() . '' . self::convertToClassName($stateName) . 'State';
+ $className = $this->getStatePrefix() . '' . StringUtils::convertToClassName($stateName) . 'State';
// ... and set it
$this->setClassName($className);
} // END - if
// Create class name
- $className = $this->statePrefix . self::convertToClassName($stateName) . 'State';
+ $className = $this->statePrefix . StringUtils::convertToClassName($stateName) . 'State';
// Now, let us create the full name of the state class
$this->setClassName($className);
use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Template\Engine\BaseTemplateEngine;
+use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
// Import SPL stuff
use \InvalidArgumentException;
*/
public final function startElement ($resource, $element, array $attributes) {
// Initial method name which will never be called...
- $methodName = 'init' . self::convertToClassName($this->xmlTemplateType);
+ $methodName = 'init' . StringUtils::convertToClassName($this->xmlTemplateType);
// Make the element name lower-case
$element = strtolower($element);
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
- $methodName = 'start' . self::convertToClassName($element);
+ $methodName = 'start' . StringUtils::convertToClassName($element);
// Set it
$this->setCurrMainNode($element);
} elseif (in_array($element, $this->getSubNodes())) {
// Sub node found
- $methodName = 'start' . self::convertToClassName($element);
+ $methodName = 'start' . StringUtils::convertToClassName($element);
} else {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
} // END - if
// Construct method name
- $methodName = 'finish' . self::convertToClassName($nodeName);
+ $methodName = 'finish' . StringUtils::convertToClassName($nodeName);
// Call the corresponding method
//* DEBUG: */ echo "call: ".$methodName."<br />\n";
-Subproject commit 9128348f96854b318a9bf8884b1ee035f3f94e6c
+Subproject commit 513812814a5a17022d414727e5a4c6d0823fe5f6