br.eti.clairton.jpa.serializer
public abstract class Tagable<T> extends Object implements Serializable
| Constructor and Description |
|---|
Tagable() |
| Modifier and Type | Method and Description |
|---|---|
protected T |
getFirst(Collection<T> collection)
Return de first element of collection
|
String |
getRootTag(T src)
Return the tag name for single object serialization/deserialization.
|
String |
getRootTagCollection(Collection<T> collection)
Return the tag name for collection object serialization/deserialization
|
String |
pluralize(String tag)
Plurarize tag
|
public String getRootTag(T src)
src - instance of the objectpublic String getRootTagCollection(Collection<T> collection)
collection - collection of objectspublic String pluralize(String tag)
tag - to be plurarizedprotected T getFirst(Collection<T> collection)
collection - Copyright © 2017. All rights reserved.