Package org.opensaml.core.xml.util
Class XMLObjectSource
- java.lang.Object
-
- org.opensaml.core.xml.util.XMLObjectSource
-
public class XMLObjectSource extends Object
A bean class which can be optionally used to represent the original source byte[] from which anXMLObject
was parsed and unmarshalled.It will typically be attached to an XML object via its
XMLObject.getObjectMetadata()
.This may be optionally used by some components to re-persist the object in a more performant manner, at the expense of carrying the additional in-memory storage.
If present, it will be removed from the object when the object is mutated. See
AbstractXMLObject.releaseDOM()
, which is invoked by the various overloadedprepareForAssignment
methods there.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
source
The object source byte[].
-
Constructor Summary
Constructors Constructor Description XMLObjectSource(byte[] objectSource)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getObjectSource()
Get the object source byte[].int
hashCode()
String
toString()
-
-
-
Field Detail
-
source
@Nonnull @NotEmpty private byte[] source
The object source byte[].
-
-
Constructor Detail
-
XMLObjectSource
public XMLObjectSource(@Nonnull @NotEmpty byte[] objectSource)
Constructor.- Parameters:
objectSource
- the object source byte[]
-
-