mxModelCodec Methods |
The mxModelCodec type exposes the following members.
| Name | Description | |
|---|---|---|
| AfterDecode |
Hook for subclassers to Receive-process the object after
decoding. This implementation returns the given object
without any changes. The return value of this method
is returned to the decoder from decode.
(Inherited from mxObjectCodec.) | |
| AfterEncode |
Hook for subclassers to Receive-process the node
for the given object after encoding and return the
Receive-processed node. This implementation returns
the input node. The return value of this method
is returned to the encoder from encode.
(Inherited from mxObjectCodec.) | |
| BeforeDecode |
Reads the cells into the graph model. All cells are children of the root
element in the node.
(Overrides mxObjectCodecBeforeDecode(mxCodec, XmlNode, Object).) | |
| BeforeEncode |
Hook for subclassers to pre-process the object before
encoding. This returns the input object. The return
value of this function is used in encode to perform
the default encoding into the given node.
(Inherited from mxObjectCodec.) | |
| Decode(mxCodec, XmlNode) |
Parses the given node into the object or returns a new object
representing the given node.
(Inherited from mxObjectCodec.) | |
| Decode(mxCodec, XmlNode, Object) |
Parses the given node into the object or returns a new object
representing the given node.
Dec is a reference to the calling decoder. It is used to decode
complex objects and resolve references.
If a node has an id attribute then the object cache is checked for the
object. If the object is not yet in the cache then it is constructed
using the constructor of template and cached in mxCodec.objects.
This implementation decodes all attributes and childs of a node
according to the following rules:
- If the variable name is in exclude or if the attribute name is "id"
or "as" then it is ignored.
- If the variable name is in idrefs then mxCodec.getObject is used
to replace the reference with an object.
- The variable name is mapped using a reverse mapping.
- If the value has a child node, then the codec is used to create a
child object with the variable name taken from the "as" attribute.
- If the object is an array and the variable name is empty then the
value or child object is appended to the array.
- If an add child has no value or the object is not an array then
the child text content is evaluated using mxUtils.eval.
If no object exists for an ID in idrefs a warning is issued
using mxLog.warn.
Returns the resulting object that represents the given XML
node or the configured given object.
(Inherited from mxObjectCodec.) | |
| Encode |
Encodes the specified object and returns a node
representing then given object. Calls beforeEncode
after creating the node and afterEncode with the
resulting node after processing.
Enc is a reference to the calling encoder. It is used
to encode complex objects and create references.
(Inherited from mxObjectCodec.) | |
| GetName |
Returns the name used for the nodenames and lookup of the codec when
classes are encoded and nodes are decoded. For classes to work with
this the codec registry automatically adds an alias for the classname
if that is different than what this returns. The default implementation
returns the classname of the template class.
(Inherited from mxObjectCodec.) | |
| IsExcluded |
Returns true if the given attribute is to be ignored
by the codec. This implementation returns true if the
given fieldname is in exclude.
(Inherited from mxObjectCodec.) | |
| IsReference |
Returns true if the given fieldname is to be treated
as a textual reference (ID). This implementation returns
true if the given fieldname is in idrefs.
(Inherited from mxObjectCodec.) | |
| ProcessInclude | (Inherited from mxObjectCodec.) |
| Name | Description | |
|---|---|---|
| BuildDataShema |
Builds the data table.
(Defined by PropertyDataStructureTools.) | |
| buildDataTable(String, DataTableBuildersbuildDataTableOptions, PropertyCollectionExtended, String, ILogBuilder) | Overloaded.
2017:: Builds horizontal data table with columns mapping properties of the type.
(Defined by DataTableBuilders.) | |
| buildDataTable(String, Boolean, Boolean, Boolean, PropertyCollectionExtended, String) | Overloaded.
Builds the horizontal data table
(Defined by DataTableBuilders.) | |
| buildDataTableVerticalSummaryTable |
Builds the vertical table with all data
(Defined by DataTableBuilders.) | |
| buildPCE | (Defined by imbPropertyCollectionExtensions.) | |
| buildPropertyCollectionT |
Create or update property collection out of object properties
(Defined by imbPropertyCollectionExtensions.) | |
| changeValueAsInt32 |
Changes the value as int32.
(Defined by imbValueChangers.) | |
| changeValueDouble |
Step je 0.01
(Defined by imbValueChangers.) | |
| ConstructTableWithRandomContent |
Constructs the data table and populates with random content of the table with.
(Defined by imbDataTableExtensions.) | |
| getDataTypeSafe |
V3.5> Experimentalna funkcija - na osnovu tipa vrsi konverziju
(Defined by imbStringCommonTools.) | |
| GetDefaultValueT |
Vraca tipiziranu podrazumevanu vrednost
(Defined by imbTypologyHelpers.) | |
| getDescriptionForDictionary |
Gets the description for dictionary, property table etc
(Defined by settingsEntriesInfoModelApi.) | |
| getDictionaryFromMappedSource |
Vraca recnik sa vrednostima iz objekta.
(Defined by propertyMappingTools.) | |
| getEnumMemberPath |
Vraca enum member path koji moze da se koristi za preuzimanje enumeracije i njenog tipa
(Defined by imbEnumExtendBase.) | |
| GetExpressionResolved |
Resolves the specified expresion path, having host as starting node
(Defined by PropertyExpressionTools.) | |
| getPathForObject |
2014c: Univerzalni konstruktor putanje
(Defined by resourcePathGenerator.) | |
| getPathForObjectAndParent |
Univerzalni konstruktor putanje za bilo koji tip i parent
(Defined by resourcePathGenerator.) | |
| getProperty |
Retrieves PropertyInfo found on path specified
(Defined by imbTypeQueryExtensions.) | |
| getSPEC | (Defined by imbTypeQueryExtensions.) | |
| getStringValue |
2013a> bezbedno vraca string verziju prosledjene vrednosti - Kreira stringValue
(Defined by imbDataExecutor.) | |
| GetUserManual |
Generates property manual
(Defined by settingsEntriesTools.) | |
| GetUserManualSaved |
Gets the user manual saved:
(Defined by settingsEntriesTools.) | |
| getValuesFromMappedSource | (Defined by propertyMappingTools.) | |
| imbAttributeToProperties |
Prebacuje vrednost iz atributa u propertije - u skladu sa podesenim mapiranjem (imbAttributeName.metaValueFromAttribute)
(Defined by imbAttributeTools.) | |
| imbConvertValueSafe |
2014c> bezbedna konverzija vrednosti
(Defined by imbTypeExtensions.) | |
| imbConvertValueSafeTypedT | (Defined by imbTypeExtensions.) | |
| imbGetAllProperties |
Vraca sve propertije iz objekta koji su Public i Instance. Vraca i nasledjene propertije ali ako su pregazeni onda vraca samo najnoviji
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetAllValues |
Vraca sve vrednosti iz svih propertija koji su Public i Instance
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetCodeMark | (Defined by imbStringExtensions.) | |
| imbGetPropertySafe(String, Object, String) | Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafe(PropertyInfo, Object, Boolean, Object) | Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean) | Overloaded. (Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafeT(PropertyInfo) | Overloaded.
2014:Maj - uzima property i odmah vrsi bezbednu konverziju!
(Defined by imbTypologyPropertyGetSet.) | |
| imbPropertyToString |
Sigurno iscitavanje stringa
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertyConvertSafe |
Algoritam sa konverzijom koja podrzava i Collection objekta koji imaju Add method.
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertySafe(String, Object, Boolean, Object, Boolean) | Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean) | Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.) | |
| imbToBoolean |
Konvertuje bilo koju vrednost u Boolean
(Defined by imbTypeExtensions.) | |
| imbToEnumeration(Type, Enum) | Overloaded.
Convers an value to the best fit Enumeration member
(Defined by imbTypeEnumExtensions.) | |
| imbToEnumerationT | Overloaded. (Defined by imbTypeEnumExtensions.) | |
| imbToInstance |
Konvertuje u potrebni tip. Ukoliko postoji konstruktor sa parametrom koji je IsInstanceOfType(input) onda ce koristit njega
(Defined by imbTypeExtensions.) | |
| imbToNumber(Type) | Overloaded.
Konvertuje u broj prema zadatom tipu
(Defined by imbTypeExtensions.) | |
| imbToNumberT(Type) | Overloaded. (Defined by imbTypeExtensions.) | |
| isCoreColumn | (Defined by PropertyEntryColumnExtensions.) | |
| isNullOrEmpty | (Defined by imbSciStringExtensions.) | |
| isNullOrEmptyString |
Proverava da li je input null, ako je string onda ga proverava kao string ako je neki drugi objekat onda ga predvara u string pa proverava
(Defined by imbSciStringExtensions.) | |
| keyToString | (Defined by imbPropertyCollectionExtensions.) | |
| renderToTemplate |
Vraca string koji definise placeholder u template stringu
(Defined by stringTemplateTools.) | |
| resolvePath(String, pathResolveFlag) | Overloaded.
Najčešće korišćen metod za upit nad putanjom i objektom
(Defined by resourcePathResolver.) | |
| resolvePathT(String, pathResolveFlag) | Overloaded. (Defined by resourcePathResolver.) | |
| saveObjectToXML | (Defined by objectSerialization.) | |
| setObjectByMappedSource |
Primenjuje prosledjenu property mapu
(Defined by propertyMappingTools.) | |
| setObjectBySource |
Sets the object by source.
(Defined by imbTypeObjectOperations.) | |
| setObjectValueTypesBySource |
Sets the object by source, but only ValueTypes and string and only properties declared at top inherence level. Returns dictionary with updated properties (only if value changed)
(Defined by imbTypeObjectOperations.) | |
| setValuesToMappedTarget |
Postavlja vednosti iz recnika u dati ciljani objekat - da bi bilo kompatibilno niz mora biti u istom rasporedu kao i u property mapu
(Defined by propertyMappingTools.) | |
| sumValues |
Supports> String, Int32, any number via Double and Boolean
(Defined by imbTypeExtensions.) | |
| toExpressionString |
Returns expression-ready string, wrapped in proper quotes if required
(Defined by imbStringFormats.) | |
| toStringSafe | Overloaded. (Defined by imbStringFormats.) | |
| toStringSafe(String) | Overloaded. (Defined by imbStringFormats.) | |
| toStringSafe(String, String) | Overloaded.
Bezbedna konverzija u String -- ako je null onda valueForNull
(Defined by imbStringFormats.) |