public class MoreoverUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT |
Modifier and Type | Method and Description |
---|---|
static void |
addLanguageExtension(Activity activity,
Article article)
addLanguageExtension.
|
static void |
addLocationExtension(Activity activity,
Source source)
addLocationExtension.
|
static Activity |
convert(Article article)
convert article into Activity.
|
static ActivityObject |
convert(Author author,
String platformName)
convert Author and platformName to Actor.
|
static Provider |
convert(Source source)
convert Source to Provider.
|
static ActivityObject |
convertObject(Article article)
convertObject.
|
static ActivityObject |
convertTarget(Source source)
convertTarget.
|
public static final String DATE_FORMAT
public static Activity convert(Article article)
article
- articlepublic static Provider convert(Source source)
source
- Sourcepublic static ActivityObject convert(Author author, String platformName)
author
- AuthorplatformName
- platformNamepublic static ActivityObject convertTarget(Source source)
source
- sourcepublic static ActivityObject convertObject(Article article)
article
- articlepublic static void addLocationExtension(Activity activity, Source source)
activity
- Activitysource
- SourceCopyright © 2018 The Apache Software Foundation. All rights reserved.