Package org.bouncycastle.oer
Class OERDefinition.Element
- java.lang.Object
-
- org.bouncycastle.oer.OERDefinition.Element
-
- Enclosing class:
- OERDefinition
public static class OERDefinition.Element extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description OERDefinition.BaseTypebaseTypejava.util.List<OERDefinition.Element>childrenorg.bouncycastle.asn1.ASN1EncodabledefaultValuejava.math.BigIntegerenumValuebooleanexplicitbooleanextensionsInDefinitionjava.lang.Stringlabeljava.math.BigIntegerlowerBoundjava.math.BigIntegerupperBound
-
Constructor Summary
Constructors Constructor Description Element(OERDefinition.BaseType baseType, java.util.List<OERDefinition.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringappendLabel(java.lang.String s)booleancanBeNegative()org.bouncycastle.asn1.ASN1EncodablegetDefaultValue()OERDefinition.ElementgetFirstChid()booleanhasDefaultChildren()booleanhasPopulatedExtension()intintBytesForRange()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.booleanisFixedLength()booleanisLowerRangeZero()booleanisUnbounded()booleanisUnsignedWithRange()Return true in cases where the range is all positive (0 .. 10)java.util.List<OERDefinition.Element>optionalOrDefaultChildrenInOrder()java.lang.StringrangeExpression()
-
-
-
Field Detail
-
baseType
public final OERDefinition.BaseType baseType
-
children
public final java.util.List<OERDefinition.Element> children
-
explicit
public final boolean explicit
-
label
public final java.lang.String label
-
lowerBound
public final java.math.BigInteger lowerBound
-
upperBound
public final java.math.BigInteger upperBound
-
extensionsInDefinition
public final boolean extensionsInDefinition
-
enumValue
public final java.math.BigInteger enumValue
-
defaultValue
public final org.bouncycastle.asn1.ASN1Encodable defaultValue
-
-
Constructor Detail
-
Element
public Element(OERDefinition.BaseType baseType, java.util.List<OERDefinition.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)
-
-
Method Detail
-
rangeExpression
public java.lang.String rangeExpression()
-
appendLabel
public java.lang.String appendLabel(java.lang.String s)
-
optionalOrDefaultChildrenInOrder
public java.util.List<OERDefinition.Element> optionalOrDefaultChildrenInOrder()
-
isUnbounded
public boolean isUnbounded()
-
isLowerRangeZero
public boolean isLowerRangeZero()
-
isUnsignedWithRange
public boolean isUnsignedWithRange()
Return true in cases where the range is all positive (0 .. 10)- Returns:
- true if condition met.
-
canBeNegative
public boolean canBeNegative()
-
intBytesForRange
public 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. Returns a negative number if the value is signed and the absolute value is the number of bytes.
-
hasPopulatedExtension
public boolean hasPopulatedExtension()
-
hasDefaultChildren
public boolean hasDefaultChildren()
-
getDefaultValue
public org.bouncycastle.asn1.ASN1Encodable getDefaultValue()
-
getFirstChid
public OERDefinition.Element getFirstChid()
-
isFixedLength
public boolean isFixedLength()
-
-