Package org.javarosa.core.model.instance
Class TreeReferenceLevel
java.lang.Object
org.javarosa.core.model.instance.TreeReferenceLevel
- All Implemented Interfaces:
Serializable,Externalizable
public class TreeReferenceLevel extends Object implements Externalizable, Serializable
- Author:
- ctsims
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static intMULT_UNINITstatic booleantreeRefLevelInterningEnabled -
Constructor Summary
Constructors Constructor Description TreeReferenceLevel()TreeReferenceLevel(String name, int multiplicity)TreeReferenceLevel(String name, int multiplicity, List<XPathExpression> predicates) -
Method Summary
Modifier and Type Method Description static voidattachCacheTable(CacheTable<TreeReferenceLevel> refs)booleanequals(Object o)Two TreeReferenceLevels are equal if they have the same name, multiplicity, and equal predicates.intgetMultiplicity()StringgetName()List<XPathExpression>getPredicates()inthashCode()TreeReferenceLevelintern()voidreadExternal(DataInputStream in, PrototypeFactory pf)TreeReferenceLevelsetMultiplicity(int mult)TreeReferenceLevelsetName(String name)TreeReferenceLevelsetPredicates(List<XPathExpression> xpe)TreeReferenceLevelshallowCopy()voidwriteExternal(DataOutputStream out)
-
Field Details
-
MULT_UNINIT
public static final int MULT_UNINIT- See Also:
- Constant Field Values
-
treeRefLevelInterningEnabled
public static boolean treeRefLevelInterningEnabled
-
-
Constructor Details
-
TreeReferenceLevel
public TreeReferenceLevel() -
TreeReferenceLevel
-
TreeReferenceLevel
-
-
Method Details
-
attachCacheTable
-
getMultiplicity
public int getMultiplicity() -
getName
-
setMultiplicity
-
setPredicates
-
getPredicates
-
shallowCopy
-
setName
-
readExternal
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionDeserializationException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
Two TreeReferenceLevels are equal if they have the same name, multiplicity, and equal predicates. -
intern
-