Class DocumentNode
java.lang.Object
com.inductiveautomation.ignition.client.jsonedit.DocumentNode
Created by carlg on 5/15/2017.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final PropertyChangeSupportThis slightly modified property change support object also forwards each event upwards directly to the model, which is what triggers the model to know when to run the validation routine.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) voidappendChild(DocumentNode newNode) Adds a new child to this node.Finds the schema object for this node, if anyintReturns the path of a key that has yet to be committed.getKey()intgetModel()getPath()getType()getValue()intindexOf(DocumentNode childNode) voidinsertChild(int index, DocumentNode newNode) Inserts a child in a specific location.booleanisArray()booleanisEquivalent(DocumentNode other) booleanisNull()booleanisObject()booleanbooleanisRoot()booleanvoidremoveChild(DocumentNode node) voidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) voidreorderBySchema(JsonPath path, JsonSchema schema) Re-order this node's children, if it is an object with child nodes, according to the schemavoidreplaceChildren(List<DocumentNode> newChildArray) voidreplaceChildren(Map<String, DocumentNode> newChildMap) voidrepositionNode(DocumentNode child, int newIndex) voidsetChild(int index, DocumentNode newNode) Overwrites the child node at the given index with this node.voidsetDirtyKey(Object newDirtyKey) voidvoidsetQuality(QualityCode quality) voidvoidSets the type, with an option to discard any children.voidsetValidationErrors(Collection<ValidationResults.ValidationError> validationErrors) voidvoidsetValueDocument(DocumentElement element) voidsetValueJson(com.inductiveautomation.ignition.common.gson.JsonElement element) Sets the value, element is expected to be json null or primitive.voidsetVisible(boolean visible) com.inductiveautomation.ignition.common.gson.JsonElementtoJson()toString()
- 
Field Details- 
changeThis slightly modified property change support object also forwards each event upwards directly to the model, which is what triggers the model to know when to run the validation routine.
 
- 
- 
Constructor Details- 
DocumentNode
- 
DocumentNode
 
- 
- 
Method Details- 
isEquivalent
- 
getModel
- 
findSchemaFinds the schema object for this node, if any
- 
findChild
- 
findNode
- 
setType
- 
setTypeSets the type, with an option to discard any children.
- 
getPath
- 
getDirtyPathReturns the path of a key that has yet to be committed. Useful only with value node types.
- 
setVisiblepublic void setVisible(boolean visible) 
- 
isVisiblepublic boolean isVisible()
- 
toJsonpublic com.inductiveautomation.ignition.common.gson.JsonElement toJson()
- 
isRootpublic boolean isRoot()
- 
getType
- 
getKey
- 
getKeyAsString
- 
getKeyAsIndexpublic int getKeyAsIndex()
- 
setKey
- 
getDirtyKey
- 
getDirtyKeyAsString
- 
setDirtyKey
- 
getValue
- 
setValue
- 
getQuality
- 
setQuality
- 
isNullpublic boolean isNull()
- 
isObjectOrArraypublic boolean isObjectOrArray()
- 
isObjectpublic boolean isObject()
- 
isArraypublic boolean isArray()
- 
getParent
- 
getChildCountpublic int getChildCount()
- 
getChildren
- 
appendChildAdds a new child to this node. The node type must be Object or Array. Arrays will automatically set the key of the new node.
- 
insertChildInserts a child in a specific location. If this is an array, the index key will be set automatically. Will throw anIllegalArgumentExceptionif given a bogus index.
- 
setChildOverwrites the child node at the given index with this node.
- 
indexOf- Returns:
- the index of the given child, or -1 if the child is not present
 
- 
repositionNode
- 
removeChild
- 
replaceChildren
- 
replaceChildren
- 
reorderBySchemaRe-order this node's children, if it is an object with child nodes, according to the schema- Parameters:
- path- Path to this node relative to the given schmea
 
- 
setValueJsonpublic void setValueJson(@Nonnull com.inductiveautomation.ignition.common.gson.JsonElement element) Sets the value, element is expected to be json null or primitive.
- 
setValueDocument
- 
getValidationErrors
- 
setValidationErrors
- 
toString
- 
addPropertyChangeListener
- 
removePropertyChangeListener
- 
addPropertyChangeListener
- 
removePropertyChangeListener
 
-