Class CDataAttribute

    • Constructor Detail

      • CDataAttribute

        protected CDataAttribute()
      • CDataAttribute

        protected CDataAttribute​(TypedAttribute.SafeValues flag,
                                 @Opt java.lang.String value)
        This variant may only be invoked by generated code if value argument is known to be != null. In this case no TdomAttributeSyntaxException can be thrown, because String values are permitted.
    • Method Detail

      • checkValue

        protected void checkValue​(@Opt
                                  @Opt java.lang.String value)
        Description copied from class: TypedAttribute
        Check routine for the validity of the attributes' intended value. Is a call-back, implemented by the sub-classes. Is called only here, by two constructors and the #set_value(V) method. The value null means "absent" for #IMPLIED attributes and passes the test.
        Specified by:
        checkValue in class TypedAttribute<java.lang.String>
        value - the value to test; maybe null.
      • getTypeString

        public java.lang.String getTypeString()
        Description copied from class: TypedAttribute
        The definition text for the "type" of the attribute in the original DTD.
        Specified by:
        getTypeString in class TypedAttribute<java.lang.String>
      • setValue

        public void setValue​(@Opt
                             @Opt java.lang.String newValue,
                             TypedAttribute.SafeValues flag)
        Internal use only. Is called by a generated setValue(@Opt String) method iff attribute is #IMPLIED, because then never a exception will be thrown.
      • getStringValue

        public final java.lang.String getStringValue​(java.lang.String s)
        Description copied from class: TypedAttribute
        Returns the textual representation of a possible attribute value (not null), as it would be contained literally in a possible XML text representation. Since the textual representation of a String is the string itself, this method is relevant for enumeration types only (Later: also for "entity" types, but these are not yet supported.)
        Specified by:
        getStringValue in class TypedAttribute<java.lang.String>
        (never null) the textual representation of this attribute value, as it would be contained literally in a possible XML text representation.