Метод | Описание | |
---|---|---|
ExtractMetadata ( Newtonsoft.Json.Linq.JObject obj ) : CldrJsonMetadata |
Extracts metadata from the specified JSON object. If no metadata is provided in this type of JSONs, null is returned.
|
|
IsValid ( Newtonsoft.Json.Linq.JObject obj ) : bool |
Determines whether the JSON object is valid against the schema of this parser. Being valid implies satisfying assumptions on the JSON structure.
|
|
PrepareForMerging ( CldrLocale locale, Newtonsoft.Json.Linq.JObject obj ) : CldrJson |
Returns a normalized CldrJson object, ready to be merged into CldrTree. Note that the specified JSON object does not have metadata anymore. What is more, the subsetting step (3rd) might have removed some of its subtrees. It cannot be assumed to be valid against this parser's schema anymore. However, it is assumed that this JSON is the previously valid JSON, but with some of its descendants removed. |
|
RemoveMetadata ( Newtonsoft.Json.Linq.JObject obj ) : void |
Removes metadata from the specified JSON object. If no metadata is provided in this type of JSONs, nothing is removed.
|
Метод | Описание | |
---|---|---|
CldrJsonParser ( string schema ) : Newtonsoft.Json.Linq |
protected CldrJsonParser ( string schema ) : Newtonsoft.Json.Linq | ||
schema | string | |
Результат | Newtonsoft.Json.Linq |
public ExtractMetadata ( Newtonsoft.Json.Linq.JObject obj ) : CldrJsonMetadata | ||
obj | Newtonsoft.Json.Linq.JObject | |
Результат | CldrJsonMetadata |
public IsValid ( Newtonsoft.Json.Linq.JObject obj ) : bool | ||
obj | Newtonsoft.Json.Linq.JObject | |
Результат | bool |
public PrepareForMerging ( CldrLocale locale, Newtonsoft.Json.Linq.JObject obj ) : CldrJson | ||
locale | CldrLocale | |
obj | Newtonsoft.Json.Linq.JObject | |
Результат | CldrJson |
public RemoveMetadata ( Newtonsoft.Json.Linq.JObject obj ) : void | ||
obj | Newtonsoft.Json.Linq.JObject | |
Результат | void |