Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions java/mdsobjects/src/main/java/MDSplus/Data.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ public double[] toDouble() throws Exception
public void setCtxTree(Tree ctxTree)
{ this.ctxTree = ctxTree; }

public Tree getCtxTree()
{
return ctxTree;
}
static
{
try
Expand Down Expand Up @@ -465,25 +469,41 @@ public int getSizeInBytes()
* Return units field. EmptyData is returned if no units defined.
*/
public Data getUnits()
{ return units; }
{
if(units != null)
units.setCtxTree(ctxTree);
return units;
}

/**
* Returns help). Returns EmptyData if no help field defined.
*/
public Data getHelp()
{ return help; }
{
if(help != null)
help.setCtxTree(ctxTree);
return help;
}

/**
* Get the error field. Returns EmptyData if no error defined.
*/
public Data getError()
{ return error; }
{
if(error != null)
error.setCtxTree(ctxTree);
return error;
}

/**
* Get the error field. Returns EmptyData if no error defined.
*/
public Data getValidation()
{ return validation; }
{
if(validation != null)
validation.setCtxTree(ctxTree);
return validation;
}

/**
*
Expand Down