public abstract class DmcTypePart extends DmcTypeComplexTypeWithRefs<Part> implements Serializable
attrInfo, ID| Constructor and Description |
|---|
DmcTypePart()
Default constructor.
|
DmcTypePart(DmcAttributeInfo ai)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Part |
cloneValue(Part val)
Returns a clone of a value associated with this type.
|
Part |
deserializeValue(DmcInputStreamIF dis)
Reads a Part.
|
void |
formatValueAsJSON(StringBuffer sb,
int padding,
String indent)
This method may be overloaded to properly format attributes that refer directly
to DmcObjects or that are object references.
|
void |
removeBackRefsFromValue(Part value)
Removes references to other objects from a Part.
|
void |
resolveValue(DmcNameResolverIF resolver,
Part value,
String attrName)
Resolves a Part.
|
void |
resolveValue(DmcNameResolverWithClashSupportIF resolver,
Part value,
DmcObject object,
DmcNameClashResolverIF ncr,
DmcAttributeInfo ai)
Resolves a Part.
|
void |
serializeValue(DmcOutputStreamIF dos,
Part value)
Writes a Part.
|
Part |
typeCheck(Object value)
Derived classes must overload this method to determine if the value passed
in conforms with their type criteria.
|
removeBackReferences, resolve, resolveadd, addModsMV, addModsSV, cloneIt, compareTo, contains, containsKey, del, deserializeIt, formatValue, formatValueAsCompactJSON, getAttributeInfo, getByKey, getID, getMV, getMVnth, getMVSize, getName, getNew, getSV, hasValue, modifierFormat, serializeIt, set, setAttributeInfo, setMVnth, toOIF, toOIF, valueChangedMV, valueChangedSVpublic DmcTypePart()
public DmcTypePart(DmcAttributeInfo ai)
public void formatValueAsJSON(StringBuffer sb, int padding, String indent)
DmcAttributeformatValueAsJSON in class DmcAttribute<Part>sb - the string buffer we write topadding - the paddingindent - the indentpublic Part typeCheck(Object value) throws DmcValueException
DmcAttributetypeCheck in class DmcAttribute<Part>value - the value to be checkedDmcValueException - if the value is incorrectpublic Part cloneValue(Part val)
cloneValue in class DmcAttribute<Part>val - the original valuepublic void serializeValue(DmcOutputStreamIF dos, Part value) throws Exception
serializeValue in class DmcAttribute<Part>dos - The output stream.value - The value to be serialized.Exception - if problems occurpublic Part deserializeValue(DmcInputStreamIF dis) throws Exception
deserializeValue in class DmcAttribute<Part>dis - the input stream.Exception - if problems occurpublic void resolveValue(DmcNameResolverIF resolver, Part value, String attrName) throws DmcValueException
resolveValue in class DmcTypeComplexTypeWithRefs<Part>DmcValueExceptionpublic void resolveValue(DmcNameResolverWithClashSupportIF resolver, Part value, DmcObject object, DmcNameClashResolverIF ncr, DmcAttributeInfo ai) throws DmcValueException, DmcValueExceptionSet
resolveValue in class DmcTypeComplexTypeWithRefs<Part>DmcValueExceptionDmcValueExceptionSetpublic void removeBackRefsFromValue(Part value)
removeBackRefsFromValue in class DmcTypeComplexTypeWithRefs<Part>Copyright © 2023. All rights reserved.