|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MarshallingSession
Method Summary | ||
---|---|---|
String |
determineTypeFor(String formatType,
Object o)
|
|
String |
getAssumedElementType()
|
|
String |
getAssumedMapKeyType()
|
|
String |
getAssumedMapValueType()
|
|
MappingContext |
getMappingContext()
|
|
Marshaller<Object> |
getMarshallerInstance(String fqcn)
Returns a marshaller for the provided type. |
|
|
getObject(Class<T> type,
String hashCode)
Looks up the object based on the specified hashCode identifier. |
|
String |
getObject(Object reference)
Returns a unique identifier for the specified object reference. |
|
boolean |
hasObject(Object reference)
Checks if the object is already in the context based on the object reference. |
|
boolean |
hasObject(String hashCode)
Checks if the object is already in the context based on the hash code. |
|
|
recordObject(String hashCode,
T instance)
Records a new object to the session with the specified hashCode identifier. |
|
void |
resetAssumedTypes()
|
|
void |
setAssumedElementType(String assumedElementType)
|
|
void |
setAssumedMapKeyType(String assumedMapKeyType)
|
|
void |
setAssumedMapValueType(String assumedMapValueType)
|
Method Detail |
---|
MappingContext getMappingContext()
Marshaller<Object> getMarshallerInstance(String fqcn)
fqcn
- fully qualified class name of the type to be marshalled, in the
format returned by Class.getName()
and
MetaClass.getFullyQualifiedName()
.
Null is permitted, and yields a marshaller that can only marshal
and demarshal null references.
String determineTypeFor(String formatType, Object o)
<T> T recordObject(String hashCode, T instance)
hashCode
- a unique identifierinstance
- the instance of the entity.boolean hasObject(Object reference)
reference
- the entity reference
boolean hasObject(String hashCode)
hashCode
- the hash code
String getObject(Object reference)
reference
- the entity reference
<T> T getObject(Class<T> type, String hashCode)
T
- the type of entity being looked uptype
- the type of entity being looked uphashCode
- the identifier of the entity within the session
String getAssumedElementType()
void setAssumedElementType(String assumedElementType)
String getAssumedMapKeyType()
void setAssumedMapKeyType(String assumedMapKeyType)
String getAssumedMapValueType()
void setAssumedMapValueType(String assumedMapValueType)
void resetAssumedTypes()
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |