Class PropertySerializerTrie
java.lang.Object
org.kuali.rice.krad.util.documentserializer.PropertySerializerTrie
This is a implementation of a trie/prefix tree of that contains metadata about property serializability
during the document serialization process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSerializablePropertyName(String propertyName, boolean setPropertySerializabilityToObjectAndAllPrimitivesForAll) Registers a new serializable property so that all of its primitives are serialized.getPropertySerializabilityMetadata(String propertyName) Retrieves the metadata about the given property nameReturns the root node of the trieprotected voidvalidateAttributeNameComponent(String attributeNameComponent)
-
Constructor Details
-
PropertySerializerTrie
public PropertySerializerTrie()
-
-
Method Details
-
addSerializablePropertyName
public void addSerializablePropertyName(String propertyName, boolean setPropertySerializabilityToObjectAndAllPrimitivesForAll) Registers a new serializable property so that all of its primitives are serialized. All nesting properties will be serialized only to render open/close tags to maintain consistency with the document structure, unless they are registered as well. For example, if only property "document.a.b" is registered, then the XML will look like the following: <document> <a> <b> <primitiveOfB>valueOfPrimitive</primitiveOfB> </b> </a> </document> That is, primitives of "document" and "document.a" will not be serialized unless those property strings are registered.- Parameters:
propertyName-setPropertySerializabilityToObjectAndAllPrimitivesForAll-
-
getPropertySerializabilityMetadata
Retrieves the metadata about the given property name- Parameters:
propertyName-- Returns:
-
getRootPropertySerializibilityMetadata
Returns the root node of the trie- Returns:
-
validateAttributeNameComponent
-