Code example for URL

Methods: toString

	 * {@inheritDoc} 
	protected IRepositoryItem acceptItem(URL itemURL, IRepositoryRoot root, IRepository repository) {
		// Accept and register the item if it is a Java source file, but not an inner Java source file (e.g. mechanical generated) 
		String name = itemURL.toString().toLowerCase();
		if (name.endsWith(".java") && !name.contains("$")) {
			return register(itemURL, root, repository);
		return null; 
	 * Registers the source file with the specified URL as a RobotItem. 
	 * @param sourceFileUrl is the URL of the source file to register. 
	 * @param root is the repository root containing the source file to register. 
	 * @param repository is the repository, where the source file is automatically added or updated, 
	 *                   when the source file is registered. 
	 * @return a RobotItem that has been created or updated in the repository.