Class Element_string.Attr_default

All Implemented Interfaces:
ImpliedAttribute, Matchable<Matcher>, Visitable<Visitor>
Enclosing class:
Element_string

@Undocumented public static class Element_string.Attr_default extends CDataAttribute implements Visitable<Visitor>, Matchable<Matcher>, ImpliedAttribute
Meaning: Default value in case the option is missing completely. Can be any string (without framing double quotes) which will be processed into a valid String constant.
  • Field Details

  • Constructor Details

    • Attr_default

      Attr_default()
    • Attr_default

      Attr_default(@Opt @Opt String value)
  • Method Details

    • host

      public void host(Visitor visitor)
      Description copied from interface: Visitable
      Send the visitor to this instance.
      Specified by:
      host in interface Visitable<Visitor>
    • identify

      public void identify(Matcher matcher)
      Specified by:
      identify in interface Matchable<Matcher>
    • getNamespaceName

      public final NamespaceName getNamespaceName()
      Method to read the contents of field namespaceName. @see #namespaceName
      Specified by:
      getNamespaceName in class TypedAttribute<String>
      Returns:
      the namespace name of the XML attribute.
    • setValue

      public void setValue(String v)
      Description copied from class: TypedAttribute
      Set the value of this attribute. This method is only guaranteed to succeed if this instance has been returned by the generated method "getAttr_XXX()". The instance returned by a call to "readAttr_XXX()" is possibly the shared prototype, which will throw an exception when trying to set the value.
      Overrides:
      setValue in class TypedAttribute<String>
      Parameters:
      v - maybe null, which sets the attribute to "not specified when initializing the document", if it is declared #IMPLIED.
    • checkRequired

      public void checkRequired()
      Description copied from class: TypedAttribute
      The overriding method throws the exception if this attribute is required but missing when initializing the tdom instance.
      Specified by:
      checkRequired in class TypedAttribute<String>
    • from

      Create a new instance, its value picked from the W3C DOM instance. (If no value is specified, take the default value from the DTD.)
    • from

      Create a new instance, its value picked from the SAX attribute container. (If no value is specified, take the default value from the DTD.)
    • isOptional

      public final boolean isOptional()
      Description copied from class: TypedAttribute
      Returns whether the attribute is declared as "#IMPLIED" in the DTD. Will be overridden by the generated code.
      Specified by:
      isOptional in class TypedAttribute<String>
      Returns:
      whether the attribute is declared as "#IMPLIED" in the DTD.
    • isFixed

      public final boolean isFixed()
      Description copied from class: TypedAttribute
      Returns whether the attribute is declared as "#FIXED" in the DTD. Will be overridden by the generated code.
      Specified by:
      isFixed in class TypedAttribute<String>
      Returns:
      whether the attribute is declared as "#FIXED" in the DTD.
    • getDefaultValue

      public final String getDefaultValue()
      Method to read the contents of field defaultValue. @see #defaultValue
      Specified by:
      getDefaultValue in class TypedAttribute<String>
      Returns:
      the default value defined in the DTD.
    • getInterfaceInfo

      public static TypedDTD.AttributeInfo getInterfaceInfo()