org.xwiki.editor.tool.autocomplete
Class TargetContent

java.lang.Object
  extended by org.xwiki.editor.tool.autocomplete.TargetContent

public class TargetContent
extends Object

Represents the content and type at the cursor position (eg the whole content could be written in wiki syntax and the content at the cursor position could be Velocity content). Also provides the position of the cursor relative to the content.

Version:
$Id$

Constructor Summary
TargetContent(String content, int position, TargetContentType type)
           
 
Method Summary
 boolean equals(Object object)
           
 String getContent()
           
 int getPosition()
           
 TargetContentType getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetContent

public TargetContent(String content,
                     int position,
                     TargetContentType type)
Parameters:
content - see getContent()
position - see getPosition()
type - see getType()
Method Detail

getContent

public String getContent()
Returns:
the content

getType

public TargetContentType getType()
Returns:
the content type (velocity, etc)

getPosition

public int getPosition()
Returns:
the current position of the cursor relative to the content

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2013 XWiki. All Rights Reserved.