Class OERDefinition.Element

  • Enclosing class:
    OERDefinition

    public static class OERDefinition.Element
    extends java.lang.Object
    • Field Detail

      • 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()
      • isFixedLength

        public boolean isFixedLength()