Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
PT-2640-entities: added PrimaryEntity.getFullName().
Browse files Browse the repository at this point in the history
  • Loading branch information
itaiGershtansky authored and sdumitriu committed Feb 24, 2017
1 parent 81a2209 commit 4a0ee73
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ public interface PrimaryEntity
*/
String getName();

/**
* Returns the full name of the entity.
*
* @return a string
*/
String getFullName();

/**
* Returns a longer, user-friendly description for the entity, if any.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public String getName()
return this.document.getRenderedTitle(Syntax.PLAIN_1_0, getXContext());
}

@Override
public String getFullName()
{
return this.getDocument().toString();
}

@Override
public String getDescription()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ public String getName()
return null;
}

@Override
public String getFullName()
{
return null;
}

@Override
public String getDescription()
{
Expand Down

0 comments on commit 4a0ee73

Please sign in to comment.