org.anadix.html
Class CoreAttributes

java.lang.Object
  extended by org.anadix.html.HtmlElement
      extended by org.anadix.html.CoreAttributes
All Implemented Interfaces:
Comparable<HtmlElement>, Element
Direct Known Subclasses:
AbbrTag, AcronymTag, AddressTag, AppletTag, AreaTag, ATag, BdoTag, BigTag, BlockquoteTag, BodyTag, BrTag, BTag, ButtonTag, CaptionTag, CenterTag, CiteTag, CodeTag, ColgroupTag, ColTag, DdTag, DelTag, DfnTag, DirTag, DivTag, DlTag, DtTag, EmTag, FieldsetTag, FontTag, FormTag, FramesetTag, FrameTag, H1Tag, H2Tag, H3Tag, H4Tag, H5Tag, H6Tag, HrTag, IframeTag, ImgTag, InputTag, InsTag, IsindexTag, ITag, KbdTag, LabelTag, LinkTag, LiTag, MapTag, MenuTag, NoframesTag, NoscriptTag, ObjectTag, OlTag, OptgroupTag, OptionTag, PreTag, PTag, QTag, SampTag, SelectTag, SmallTag, SpanTag, STag, StrikeTag, StrongTag, SubTag, SupTag, TableTag, TbodyTag, TdTag, TextareaTag, TfootTag, TheadTag, ThTag, TrTag, TtTag, UlTag, UTag, VarTag

public abstract class CoreAttributes
extends HtmlElement

Superclass with definition of core attributes

Version:
$Id: $
Author:
tomason

Constructor Summary
CoreAttributes(BigInteger id, String name, HtmlElement parent, Attributes attributes)
          Constructor
 
Method Summary
 String getClassAttribute()
          Specifies a classname for an element
 String getIdAttribute()
          Specifies a unique id for an element
 String getStyle()
          Specifies an inline style for an element
 String getTitle()
          Specifies extra information about an element
 
Methods inherited from class org.anadix.html.HtmlElement
compareTo, equals, getAttribute, getAttributes, getId, getName, getParent, getPosition, getSource, getTextContent, hashCode, setPosition, setSource, setTextContent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoreAttributes

public CoreAttributes(BigInteger id,
                      String name,
                      HtmlElement parent,
                      Attributes attributes)
Constructor

Parameters:
id - id of element (not the attribute)
name - name of the element (tag name)
parent - parent element
attributes - attributes of the element
Method Detail

getIdAttribute

public String getIdAttribute()
Specifies a unique id for an element

Returns:
unique id of the element

getClassAttribute

public String getClassAttribute()
Specifies a classname for an element

Returns:
classname of the element

getStyle

public String getStyle()
Specifies an inline style for an element

Returns:
style of the element

getTitle

public String getTitle()
Specifies extra information about an element

Returns:
extra information about the element


Copyright © 2012. All Rights Reserved.