org.xwiki.editor.tool.autocomplete
Class TargetContent
java.lang.Object
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$
TargetContent
public TargetContent(String content,
int position,
TargetContentType type)
- Parameters:
content - see getContent()position - see getPosition()type - see getType()
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.