Class XmlCodecFactory
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 Summary
Modifier and TypeMethodDescriptionprotected XmlCodec<?>protected XmlCodec<?>bitsCodec(BitsTypeDefinition type) protected XmlCodec<?>static XmlCodecFactorycreate(org.opendaylight.yangtools.yang.data.api.schema.MountPointContext context) Instantiate a new codec factory attached to a particular context.static XmlCodecFactorycreate(org.opendaylight.yangtools.yang.data.api.schema.MountPointContext context, boolean preferPrefixes) Instantiate a new codec factory attached to a particular context.static XmlCodecFactorycreate(EffectiveModelContext context) Instantiate a new codec factory attached to a particular context.static XmlCodecFactorycreate(EffectiveModelContext context, boolean preferPrefixes) Instantiate a new codec factory attached to a particular context.protected XmlCodec<?>protected XmlCodec<?>protected XmlCodec<?>enumCodec(EnumTypeDefinition type) protected XmlCodec<?>identityRefCodec(IdentityrefTypeDefinition type, QNameModule module) XmlCodec<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier>protected XmlCodec<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier>protected XmlCodec<?>protected XmlCodec<?>protected XmlCodec<?>protected XmlCodec<?>int8Codec(Int8TypeDefinition type) protected XmlCodec<?>protected XmlCodec<?>protected XmlCodec<?>protected XmlCodec<?>protected XmlCodec<?>protected XmlCodec<?>unionCodec(UnionTypeDefinition type, List<XmlCodec<?>> codecs) protected XmlCodec<?>Methods inherited from class org.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory
codecFor, modelContext
-
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 boundpreferPrefixes- prefer prefixes known tocontext- Returns:
- A codec factory instance.
-
create
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
Instantiate a new codec factory attached to a particular context.- Parameters:
context- SchemaContext to which the factory should be boundpreferPrefixes- prefer prefixes known tocontext- Returns:
- A codec factory instance.
-
binaryCodec
- Specified by:
binaryCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
booleanCodec
- Specified by:
booleanCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
bitsCodec
- Specified by:
bitsCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
emptyCodec
- Specified by:
emptyCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
enumCodec
- Specified by:
enumCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
identityRefCodec
- Specified by:
identityRefCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
instanceIdentifierCodec
protected XmlCodec<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> instanceIdentifierCodec(InstanceIdentifierTypeDefinition type) - Specified by:
instanceIdentifierCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
instanceIdentifierCodec
public XmlCodec<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> instanceIdentifierCodec()- Specified by:
instanceIdentifierCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
int8Codec
- Specified by:
int8Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
int16Codec
- Specified by:
int16Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
int32Codec
- Specified by:
int32Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
int64Codec
- Specified by:
int64Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
decimalCodec
- Specified by:
decimalCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
stringCodec
- Specified by:
stringCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
uint8Codec
- Specified by:
uint8Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
uint16Codec
- Specified by:
uint16Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
uint32Codec
- Specified by:
uint32Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
uint64Codec
- Specified by:
uint64Codecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
unionCodec
- Specified by:
unionCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-
unknownCodec
- Specified by:
unknownCodecin classorg.opendaylight.yangtools.yang.data.util.codec.AbstractCodecFactory<XmlCodec<?>>
-