public interface MarshallingSession
Modifier and Type | Method and Description |
---|---|
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.
|
<T> T |
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.
|
<T> T |
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) |
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.<T> T recordObject(String hashCode, T instance)
hashCode
- a unique identifierinstance
- the instance of the entity.boolean hasObject(Object reference)
reference
- the entity referenceboolean hasObject(String hashCode)
hashCode
- the hash codeString 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 sessionString getAssumedElementType()
void setAssumedElementType(String assumedElementType)
String getAssumedMapKeyType()
void setAssumedMapKeyType(String assumedMapKeyType)
String getAssumedMapValueType()
void setAssumedMapValueType(String assumedMapValueType)
void resetAssumedTypes()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.