Class IdentityPlaceholderResolverStrategy

  • All Implemented Interfaces:
    org.kie.api.marshalling.ObjectMarshallingStrategy

    public class IdentityPlaceholderResolverStrategy
    extends java.lang.Object
    implements org.kie.api.marshalling.ObjectMarshallingStrategy
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.kie.api.marshalling.ObjectMarshallingStrategy

        org.kie.api.marshalling.ObjectMarshallingStrategy.Context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.Object object)  
      org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()  
      java.util.Map<java.lang.Integer,​java.lang.Object> getIds()  
      java.lang.String getName()  
      byte[] marshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectOutputStream os, java.lang.Object object)  
      java.lang.Object read​(java.io.ObjectInputStream os)  
      void setIds​(java.util.Map<java.lang.Integer,​java.lang.Object> ids)  
      java.lang.Object unmarshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectInputStream is, byte[] object, java.lang.ClassLoader classloader)  
      void write​(java.io.ObjectOutputStream os, java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdentityPlaceholderResolverStrategy

        public IdentityPlaceholderResolverStrategy​(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
      • IdentityPlaceholderResolverStrategy

        public IdentityPlaceholderResolverStrategy​(java.lang.String name,
                                                   org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
      • IdentityPlaceholderResolverStrategy

        public IdentityPlaceholderResolverStrategy​(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor,
                                                   java.util.Map<java.lang.Integer,​java.lang.Object> ids)
      • IdentityPlaceholderResolverStrategy

        public IdentityPlaceholderResolverStrategy​(java.lang.String name,
                                                   org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor,
                                                   java.util.Map<java.lang.Integer,​java.lang.Object> ids)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • read

        public java.lang.Object read​(java.io.ObjectInputStream os)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
        Specified by:
        read in interface org.kie.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • write

        public void write​(java.io.ObjectOutputStream os,
                          java.lang.Object object)
                   throws java.io.IOException
        Specified by:
        write in interface org.kie.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
      • accept

        public boolean accept​(java.lang.Object object)
        Specified by:
        accept in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • marshal

        public byte[] marshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
                              java.io.ObjectOutputStream os,
                              java.lang.Object object)
        Specified by:
        marshal in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • unmarshal

        public java.lang.Object unmarshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
                                          java.io.ObjectInputStream is,
                                          byte[] object,
                                          java.lang.ClassLoader classloader)
        Specified by:
        unmarshal in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • createContext

        public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
        Specified by:
        createContext in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • getIds

        public java.util.Map<java.lang.Integer,​java.lang.Object> getIds()
      • setIds

        public void setIds​(java.util.Map<java.lang.Integer,​java.lang.Object> ids)