public class Element
extends java.lang.Object
| Constructor and Description |
|---|
Element(Element element,
Element parent) |
Element(OERDefinition.BaseType baseType,
java.util.List<Element> children,
boolean explicit,
java.lang.String label,
java.math.BigInteger lowerBound,
java.math.BigInteger upperBound,
boolean extensionsInDefinition,
java.math.BigInteger enumValue,
org.bouncycastle.asn1.ASN1Encodable defaultValue,
Switch aSwitch,
java.util.List<org.bouncycastle.asn1.ASN1Encodable> switchValues,
ElementSupplier elementSupplier,
boolean mayRecurse,
java.lang.String typeName,
java.util.Map<java.lang.String,ElementSupplier> supplierMap,
int block,
int optionals,
boolean defaultValuesInChildren) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
appendLabel(java.lang.String s) |
boolean |
canBeNegative() |
boolean |
equals(java.lang.Object o) |
static Element |
expandDeferredDefinition(Element e,
Element parent)
Expands the definition if the element holds an element supplier.
|
Switch |
getaSwitch() |
OERDefinition.BaseType |
getBaseType() |
int |
getBlock() |
java.util.List<Element> |
getChildren() |
org.bouncycastle.asn1.ASN1Encodable |
getDefaultValue() |
java.lang.String |
getDerivedTypeName() |
ElementSupplier |
getElementSupplier() |
java.math.BigInteger |
getEnumValue() |
Element |
getFirstChid() |
java.lang.String |
getLabel() |
java.math.BigInteger |
getLowerBound() |
java.util.List<Element> |
getOptionalChildrenInOrder() |
int |
getOptionals() |
Element |
getParent() |
java.lang.String |
getTypeName() |
java.math.BigInteger |
getUpperBound() |
java.util.List<org.bouncycastle.asn1.ASN1Encodable> |
getValidSwitchValues() |
boolean |
hasDefaultChildren() |
int |
hashCode() |
boolean |
hasPopulatedExtension() |
int |
intBytesForRange()
Determine the number of integer bytes for a range, ints, signed or unsigned that can fit into 1 to 8 octets
use a fixed with encoding.
|
boolean |
isExplicit() |
boolean |
isExtensionsInDefinition() |
boolean |
isFixedLength() |
boolean |
isLowerRangeZero() |
boolean |
isMayRecurse() |
boolean |
isUnbounded() |
boolean |
isUnsignedWithRange()
Return true in cases where the range is all positive (0 .. 10)
|
java.util.List<Element> |
optionalOrDefaultChildrenInOrder() |
java.lang.String |
rangeExpression() |
ElementSupplier |
resolveSupplier() |
protected ElementSupplier |
resolveSupplier(java.lang.String name) |
java.lang.String |
toString() |
public Element(OERDefinition.BaseType baseType, java.util.List<Element> children, boolean explicit, java.lang.String label, java.math.BigInteger lowerBound, java.math.BigInteger upperBound, boolean extensionsInDefinition, java.math.BigInteger enumValue, org.bouncycastle.asn1.ASN1Encodable defaultValue, Switch aSwitch, java.util.List<org.bouncycastle.asn1.ASN1Encodable> switchValues, ElementSupplier elementSupplier, boolean mayRecurse, java.lang.String typeName, java.util.Map<java.lang.String,ElementSupplier> supplierMap, int block, int optionals, boolean defaultValuesInChildren)
public static Element expandDeferredDefinition(Element e, Element parent)
e - The element.parent - public java.lang.String rangeExpression()
public java.lang.String appendLabel(java.lang.String s)
public java.util.List<Element> optionalOrDefaultChildrenInOrder()
public boolean isUnbounded()
public boolean isLowerRangeZero()
public boolean isUnsignedWithRange()
public boolean canBeNegative()
public int intBytesForRange()
public boolean hasPopulatedExtension()
public boolean hasDefaultChildren()
public org.bouncycastle.asn1.ASN1Encodable getDefaultValue()
public Element getFirstChid()
public boolean isFixedLength()
public java.lang.String toString()
toString in class java.lang.Objectpublic OERDefinition.BaseType getBaseType()
public java.util.List<Element> getChildren()
public boolean isExplicit()
public java.lang.String getLabel()
public java.math.BigInteger getLowerBound()
public java.math.BigInteger getUpperBound()
public boolean isExtensionsInDefinition()
public java.math.BigInteger getEnumValue()
public Switch getaSwitch()
public java.util.List<Element> getOptionalChildrenInOrder()
public java.util.List<org.bouncycastle.asn1.ASN1Encodable> getValidSwitchValues()
public ElementSupplier getElementSupplier()
public boolean isMayRecurse()
public java.lang.String getTypeName()
public int getOptionals()
public int getBlock()
public java.lang.String getDerivedTypeName()
public ElementSupplier resolveSupplier()
protected ElementSupplier resolveSupplier(java.lang.String name)
public Element getParent()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object