java.lang.Object
org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
org.opendaylight.yangtools.yang.data.codec.xml.XmlCodecFactory

public final class XmlCodecFactory extends org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
A thread-safe factory for instantiating XmlCodecs.
  • Method Details

    • create

      public static XmlCodecFactory create(org.opendaylight.yangtools.yang.data.api.schema.MountPointContext context)
      Instantiate a new codec factory attached to a particular context.
      Parameters:
      context - MountPointContext to which the factory should be bound
      Returns:
      A codec factory instance.
    • create

      public static XmlCodecFactory create(org.opendaylight.yangtools.yang.data.api.schema.MountPointContext context, boolean preferPrefixes)
      Instantiate a new codec factory attached to a particular context.
      Parameters:
      context - MountPointContext to which the factory should be bound
      preferPrefixes - prefer prefixes known to context
      Returns:
      A codec factory instance.
    • create

      public static XmlCodecFactory create(EffectiveModelContext context)
      Instantiate a new codec factory attached to a particular context.
      Parameters:
      context - SchemaContext to which the factory should be bound
      Returns:
      A codec factory instance.
    • create

      public static XmlCodecFactory create(EffectiveModelContext context, boolean preferPrefixes)
      Instantiate a new codec factory attached to a particular context.
      Parameters:
      context - SchemaContext to which the factory should be bound
      preferPrefixes - prefer prefixes known to context
      Returns:
      A codec factory instance.
    • binaryCodec

      protected XmlCodec<?> binaryCodec(BinaryTypeDefinition type)
      Specified by:
      binaryCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • booleanCodec

      protected XmlCodec<?> booleanCodec(BooleanTypeDefinition type)
      Specified by:
      booleanCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • bitsCodec

      protected XmlCodec<?> bitsCodec(BitsTypeDefinition type)
      Specified by:
      bitsCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • emptyCodec

      protected XmlCodec<?> emptyCodec(EmptyTypeDefinition type)
      Specified by:
      emptyCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • enumCodec

      protected XmlCodec<?> enumCodec(EnumTypeDefinition type)
      Specified by:
      enumCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • identityRefCodec

      protected XmlCodec<?> identityRefCodec(IdentityrefTypeDefinition type, QNameModule module)
      Specified by:
      identityRefCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • instanceIdentifierCodec

      protected XmlCodec<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> instanceIdentifierCodec(InstanceIdentifierTypeDefinition type)
      Specified by:
      instanceIdentifierCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • instanceIdentifierCodec

      public XmlCodec<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> instanceIdentifierCodec()
      Specified by:
      instanceIdentifierCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • int8Codec

      protected XmlCodec<?> int8Codec(Int8TypeDefinition type)
      Specified by:
      int8Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • int16Codec

      protected XmlCodec<?> int16Codec(Int16TypeDefinition type)
      Specified by:
      int16Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • int32Codec

      protected XmlCodec<?> int32Codec(Int32TypeDefinition type)
      Specified by:
      int32Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • int64Codec

      protected XmlCodec<?> int64Codec(Int64TypeDefinition type)
      Specified by:
      int64Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • decimalCodec

      protected XmlCodec<?> decimalCodec(DecimalTypeDefinition type)
      Specified by:
      decimalCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • stringCodec

      protected XmlCodec<?> stringCodec(StringTypeDefinition type)
      Specified by:
      stringCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • uint8Codec

      protected XmlCodec<?> uint8Codec(Uint8TypeDefinition type)
      Specified by:
      uint8Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • uint16Codec

      protected XmlCodec<?> uint16Codec(Uint16TypeDefinition type)
      Specified by:
      uint16Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • uint32Codec

      protected XmlCodec<?> uint32Codec(Uint32TypeDefinition type)
      Specified by:
      uint32Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • uint64Codec

      protected XmlCodec<?> uint64Codec(Uint64TypeDefinition type)
      Specified by:
      uint64Codec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • unionCodec

      protected XmlCodec<?> unionCodec(UnionTypeDefinition type, List<XmlCodec<?>> codecs)
      Specified by:
      unionCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
    • unknownCodec

      protected XmlCodec<?> unknownCodec(UnknownTypeDefinition type)
      Specified by:
      unknownCodec in class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>