se.biltmore.tools.odttoapt.maven.plugin
Enum QName

java.lang.Object
  extended by java.lang.Enum<QName>
      extended by se.biltmore.tools.odttoapt.maven.plugin.QName
All Implemented Interfaces:
Serializable, Comparable<QName>

public enum QName
extends Enum<QName>

This is an enum of .odt content.xml names of interest.


Enum Constant Summary
A_Count
           
A_ExtStyleName
           
A_ExtStyleParentName
           
A_HRef
           
A_OfficeVersion
           
A_Style
           
E_Image
           
E_ImageHref
           
E_ImageTitle
           
E_LineBreak
           
E_Link
           
E_List
           
E_ListItem
           
E_OfficeDocument
           
E_PageBreak
           
E_Paragraph
           
E_Spaces
           
E_Span
           
E_StyleExt
           
None
           
 
Field Summary
private  String qName
          The qualified name.
private  char type
          The type of qName.
 
Method Summary
static QName getAttributeByQName(String qName)
          Returns the atribute by the qualified name.
 String getQName()
          Returns the name.
static QName getTagByQName(String qName)
          Returns the tag by the qualified name.
 boolean isAPTModelTag()
          Returns true if this is an APT model tag.
 boolean isAttribute()
          Returns true if this is an attribute.
 boolean isOtherTag()
          Returns true if this is neither an APT model tag nor an attribute.
static QName valueOf(String name)
          Returns the enum constant of this type with the specified name.
static QName[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

None

public static final QName None

E_OfficeDocument

public static final QName E_OfficeDocument

E_Paragraph

public static final QName E_Paragraph

E_Span

public static final QName E_Span

E_Link

public static final QName E_Link

E_Spaces

public static final QName E_Spaces

E_PageBreak

public static final QName E_PageBreak

E_LineBreak

public static final QName E_LineBreak

E_List

public static final QName E_List

E_ListItem

public static final QName E_ListItem

E_Image

public static final QName E_Image

E_ImageHref

public static final QName E_ImageHref

E_ImageTitle

public static final QName E_ImageTitle

E_StyleExt

public static final QName E_StyleExt

A_OfficeVersion

public static final QName A_OfficeVersion

A_Style

public static final QName A_Style

A_HRef

public static final QName A_HRef

A_Count

public static final QName A_Count

A_ExtStyleName

public static final QName A_ExtStyleName

A_ExtStyleParentName

public static final QName A_ExtStyleParentName
Field Detail

qName

private String qName
The qualified name.


type

private char type
The type of qName.

Method Detail

values

public static QName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (QName c : QName.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static QName valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getTagByQName

public static QName getTagByQName(String qName)
Returns the tag by the qualified name.

Parameters:
qName - The qualified name to lookup.

getAttributeByQName

public static QName getAttributeByQName(String qName)
Returns the atribute by the qualified name.

Parameters:
qName - The qualified name to lookup.

isAPTModelTag

public boolean isAPTModelTag()
Returns true if this is an APT model tag.


isAttribute

public boolean isAttribute()
Returns true if this is an attribute.


isOtherTag

public boolean isOtherTag()
Returns true if this is neither an APT model tag nor an attribute.


getQName

public String getQName()
Returns the name.



Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.