Short description of method createProperty

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  string label
@param  string comment
@param  boolean isLgDependent
@return core_kernel_classes_Property
9924
public function createProperty($label = '', $comment = '', $isLgDependent = false)
    {
        return $this->getImplementation()->createProperty($this, $label, $comment, $isLgDependent);
    }
121944
protected function createNode(NodeInterface $commentCollection, CommentDtoInterface $comment): NodeInterface
    {
        $commentNodeType = $this->nodeTypeManager->getNodeType(self::COMMENT_NODE_TYPE);
        $commentNodeTemplate = new NodeTemplate();
        $commentNodeTemplate->setNodeType($commentNodeType);

        $commentNode = $commentCollection->createNodeFromTemplate($commentNodeTemplate);
        $commentNode->setProperty('name', $comment->getName());
        $commentNode->setProperty('email', $comment->getEmail());
        $commentNode->setProperty('content', $comment->getContent());
        $commentNode->setProperty('createdAt', $comment->getCreatedAt());
        $commentNode->setHidden($comment->isHidden());

        if ($this->addCommentToTop) {
            $firstComment = $commentCollection->getChildNodes(null, 1);
            
            if ($firstComment) {
                $commentNode->moveBefore($firstComment[0]);
            }
        }

        return $commentNode;
    }
1072564
public static <T> T createComponent(Class<T> componentClass, Object... dependencies) {
    String fqn = componentClass.getName();

    String packageName = componentClass.getPackage().getName();
    // Accounts for inner classes, ie MyApplication$Component
    String simpleName = fqn.substring(packageName.length() + 1);
    String generatedName = (packageName + ".Dagger" + simpleName).replace('$', '_');

    try {
      Class<?> generatedClass = Class.forName(generatedName);
      Object builder = generatedClass.getMethod("builder").invoke(null);

      for (Method method : builder.getClass().getDeclaredMethods()) {
        Class<?>[] params = method.getParameterTypes();
        if (params.length == 1) {
          Class<?> dependencyClass = params[0];
          for (Object dependency : dependencies) {
            if (dependencyClass.isAssignableFrom(dependency.getClass())) {
              method.invoke(builder, dependency);
              break;
            }
          }
        }
      }
      //noinspection unchecked
      return (T) builder.getClass().getMethod("build").invoke(builder);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
257621
public void properties (Properties props, String comment) {
		ByteArrayOutputStream propsBaos = new ByteArrayOutputStream ();

		if (props == null) {
			props = new Properties ();
		}

		try {
			if (comment != null) {
				props.store (propsBaos, comment);
			} else {
				props.store (propsBaos, "Automatic comment from LoggerWrapper");
			}
		} catch (IOException ex) {
			throwing (ex);
		}

		//String charset = java.nio.charset.Charset.defaultCharset ().name ();
		String charset = "UTF-8";

		String propsStr = null;
		try {
			propsStr = propsBaos.toString (charset);
		} catch (UnsupportedEncodingException ex) {
			throwing (ex);
		}

		logger.config (propsStr);
	}
1072965
public function setPropertyValueByLg( core_kernel_classes_Resource $resource,  core_kernel_classes_Property $property, $value, $lg)
    {
        $returnValue = (bool) false;

        

		$platform = $this->getPersistence()->getPlatForm();
		$userId = $this->getServiceLocator()->get(SessionService::SERVICE_ID)->getCurrentUser()->getIdentifier();
        
        $query = 'INSERT INTO statements (modelid,subject,predicate,object,l_language,author,epoch)
        			VALUES  (?, ?, ?, ?, ?, ?, ?)';

        $returnValue = $this->getPersistence()->exec($query, array(
       		$this->getNewTripleModelId(),
       		$resource->getUri(),
       		$property->getUri(),
       		$value,
       		($property->isLgDependent() ? $lg : ''),
       		$userId,
            $platform->getNowExpression()
        ));
		
        

        return (bool) $returnValue;
    }
374751
private Label createLabel(String label) {
        Pane pane = new Pane();
        root.addChild(pane);
        Label lbl = new Label();
        lbl.setName(label);
        pane.addChild(lbl);
        adjustPanes();
        return lbl;
    }
276472
function propagateToGlobal(window) {
            for (let key in window) {
                if (!window.hasOwnProperty(key)) continue
                if (key in global) continue

                global[key] = window[key]
            }
            global.Node = window.Node;
            global.Comment = window.Comment;
        }
1067563
public static function create($comment)
    {
        // If numeric, create the comment
        if (is_numeric($comment)) {
            // Retrieve the transient
            $transientKey = sprintf('WPMVC\Models\Comment(%d)', $comment);
            $storedData = get_transient($transientKey);
            // If the transient doesn't yet exist, query for it!
            if ($storedData === false) {
                // Retrieve the comment object
                $comment = get_comment(intval($comment));
                // Store the transient
                set_transient($transientKey, $comment, $this->transientTimeout);
            } else {
                $comment = $storedData;
            }
        } elseif (is_array($comment)) {
            // Convert array into object
            $comment = (object) $comment;
        }
        return new static($comment);
    }
601838
function withComment (example, comment) {
  const constructor = example == null ? null : example.constructor;

  if (constructor === Object || constructor === Array) {
    Object.defineProperty(example, '_comment', {
      value: comment,
      enumerable: false
    });

    return example;
  }

  // Convert primitives
  return new PrimitiveWithComment(example, comment);
}
56592
@Deprecated
  public boolean addComment(Comment comment) {
    if (getComments() != null) {
      return getComments().addData(comment);
    }
    return false;
  }
1029132
public Label createLabel(BaseComponent parent, Object value, String prefix) {
        return createLabel(parent, value, prefix, null);
    }
1050744
public static function create($comment) {
    $comment = trim($comment);
    $lines = array_map('trim', explode("\n", $comment));
    $text = "/**\n";
    foreach ($lines as $i => $line) {
      $text .= ' * ' . $line . "\n";
    }
    $text .= ' */';
    return new DocCommentNode(T_DOC_COMMENT, $text);
  }
38519
public static function create($comment) {
    $block_comment = new LineCommentBlockNode();
    $comment = trim($comment);
    $lines = array_map('rtrim', explode("\n", $comment));
    foreach ($lines as $line) {
      $comment_node = new CommentNode(T_COMMENT, '// ' . $line . "\n");
      $block_comment->addChild($comment_node);
    }
    return $block_comment;
  }
1213967
function createProperty(attr) {
	var name, value, isAttr;

	// using a map to find the correct case of property name
	if (propertyMap[attr.name]) {
		name = propertyMap[attr.name];
	} else {
		name = attr.name;
	}
	// special cases for data attribute, we default to properties.attributes.data
	if (name.indexOf('data-') === 0 || name.indexOf('aria-') === 0) {
		value = attr.value;
		isAttr = true;
	} else {
		value = attr.value;
	}

	return {
		name: name
		, value: value
		, isAttr: isAttr || false
	};
}
1193052
public function property( $name, $default = null, $comment = null, $export = true )
	{
		if ( $default !== null )
		{
			if ( $export )
			{
				$default = var_export( $default, true );
			}
		} 
		
		return $this->add( ( $comment ? static::make( 'comment', array( $comment ) )."\n" : '' ).
			$name.( $default !== null ? ' = '. $default : '' ).';' );
	}
979429
public Optional<Label> createLabel(String monitorId, Label label)
    {
        HTTP.POST(String.format("/v1/monitors/%s/labels", monitorId), label.getKey());
        return Optional.of(label);
    }
369680
public PropertiesWriter append( final String comment )
    {
        String commentToAdd = "#" + comment;
        if( comment == null )
        {
            commentToAdd = "#";
        }
        m_content.add( commentToAdd );
        return this;
    }