Class OERDefinition.Element

java.lang.Object
org.bouncycastle.oer.OERDefinition.Element
Enclosing class:
OERDefinition

public static class OERDefinition.Element extends Object
  • Field Details

    • baseType

      public final OERDefinition.BaseType baseType
    • children

      public final List<OERDefinition.Element> children
    • explicit

      public final boolean explicit
    • label

      public final String label
    • lowerBound

      public final BigInteger lowerBound
    • upperBound

      public final BigInteger upperBound
    • extensionsInDefinition

      public final boolean extensionsInDefinition
    • enumValue

      public final BigInteger enumValue
    • defaultValue

      public final org.bouncycastle.asn1.ASN1Encodable defaultValue
  • Constructor Details

  • Method Details

    • rangeExpression

      public String rangeExpression()
    • appendLabel

      public String appendLabel(String s)
    • optionalOrDefaultChildrenInOrder

      public 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()