fferpcore.Path2global with sharing class Path2 Represent a path through a data structure. EnumsElementTypeType of element in an ErrorEvent path.
TargetTypeTarget of a Path.
Methods
newFieldElementglobal static fferpcore.Path2.Element newFieldElement(String key) Create a field element using a key. Input Parameters
Return ValueA field element with the specified key. Path2global Path2(fferpcore.Path2.Element rootElement) getFirstElementglobal fferpcore.Path2.Element getFirstElement() getTargetTypeglobal fferpcore.Path2.TargetType getTargetType() isDeletedItemglobal Boolean isDeletedItem() Return ValueTrue if this path represents a deleted item. toStringglobal override String toString() toString is provided for debugging purposes. Return ValueA string representation of this path, including the class name for debugging. equalsglobal Boolean equals(Object other) hashCodeglobal Integer hashCode() fferpcore.Path2.Elementglobal interface Element Section of the path in an ErrorEvent. Methods
getPathElementKeyString getPathElementKey() Return ValueThe key associated with the Path2.Element. getNextPathElementPath2.Element getNextPathElement() Return ValueThe next Path2.Element in the path, or null if this is the last element. getElementAsStringString getElementAsString() Return ValueA string representation of this element. isDeletedItemBoolean isDeletedItem() Does this path represent something that is no longer there? For example something that was a lookup, or a deleted child from a list. Systems should preserve keys, so list keys would include deleted items in place. fferpcore.Path2.IndexElementglobal interface IndexElement extends Path2.Element Section of the path in an ErrorEvent that uses an index. This class extends fferpcore.Path2.Element MethodsgetPathElementIndexInteger getPathElementIndex() Return ValueThe index associated with the PathElement. This index includes deleted items, so may differ from the index in the live list. |