Class AbstractTypesCtx
- java.lang.Object
-
- com.automation_pros.odva.cip.data.AbstractTypesCtx
-
- All Implemented Interfaces:
DataContext
public abstract class AbstractTypesCtx extends java.lang.Object implements DataContext
-
-
Field Summary
-
Fields inherited from interface com.automation_pros.odva.cip.data.DataContext
emptyContext
-
-
Constructor Summary
Constructors Constructor Description AbstractTypesCtx()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnonStructSeg
getNamedDef(java.lang.String name)
Look up a named type for use expanding a stub definition or to apply to a different context.java.util.List<java.lang.String>
getNames()
java.lang.String
getTypeByCRC(int crc)
Look up a named type by CRC for use directly by a StructureDefSeg or indirectly by an AnonTypeSeg.StructDef
getTypeByName(java.lang.String typeName)
Look up a named type for use constructing nested elements of a structure.java.util.ArrayList<StructDef>
getTypesImpl()
void
registerNamedDef(java.lang.String name, AnonStructSeg seg)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.automation_pros.odva.cip.data.DataContext
fromEnum, getCtxData, getCtxDataImpl, getCtxDataOrNull, getParentDataCtx, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Method Detail
-
registerNamedDef
public void registerNamedDef(java.lang.String name, AnonStructSeg seg)
-
getNamedDef
public AnonStructSeg getNamedDef(java.lang.String name)
Description copied from interface:DataContext
Look up a named type for use expanding a stub definition or to apply to a different context.- Specified by:
getNamedDef
in interfaceDataContext
-
getTypeByName
public StructDef getTypeByName(java.lang.String typeName)
Description copied from interface:DataContext
Look up a named type for use constructing nested elements of a structure.- Specified by:
getTypeByName
in interfaceDataContext
- Parameters:
typeName
- The type name to look up in the predefined names.- Returns:
- The type suitable for use with CipStruct and/or StructMember.
-
getTypesImpl
public java.util.ArrayList<StructDef> getTypesImpl()
- Specified by:
getTypesImpl
in interfaceDataContext
-
getNames
public java.util.List<java.lang.String> getNames()
-
getTypeByCRC
public java.lang.String getTypeByCRC(int crc)
Description copied from interface:DataContext
Look up a named type by CRC for use directly by a StructureDefSeg or indirectly by an AnonTypeSeg.- Specified by:
getTypeByCRC
in interfaceDataContext
- Returns:
- The type suitable for use with CipStruct and/or StructMember.
-
-