Class XmlFieldMetadata
- java.lang.Object
-
- org.codehaus.modello.plugins.xml.metadata.XmlFieldMetadata
-
- All Implemented Interfaces:
FieldMetadata,Metadata
public class XmlFieldMetadata extends java.lang.Object implements FieldMetadata
-
-
Field Summary
Fields Modifier and Type Field Description private booleanattributeprivate booleancontentprivate java.lang.Stringformatstatic java.lang.StringIDprivate java.lang.StringinsertParentFieldsUpToprivate java.lang.StringtagNameprivate booleantransientFieldprivate booleantrim
-
Constructor Summary
Constructors Constructor Description XmlFieldMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFormat()java.lang.StringgetInsertParentFieldsUpTo()java.lang.StringgetTagName()booleanisAttribute()booleanisContent()booleanisTransient()booleanisTrim()voidsetAttribute(boolean attribute)voidsetContent(boolean content)voidsetFormat(java.lang.String format)voidsetInsertParentFieldsUpTo(java.lang.String insertParentFieldsUpTo)voidsetTagName(java.lang.String tagName)voidsetTransient(boolean transientField)voidsetTrim(boolean trim)
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
-
attribute
private boolean attribute
-
content
private boolean content
-
tagName
private java.lang.String tagName
-
trim
private boolean trim
-
format
private java.lang.String format
-
transientField
private boolean transientField
-
insertParentFieldsUpTo
private java.lang.String insertParentFieldsUpTo
-
-
Method Detail
-
getFormat
public java.lang.String getFormat()
-
setFormat
public void setFormat(java.lang.String format)
-
isTrim
public boolean isTrim()
-
setTrim
public void setTrim(boolean trim)
-
isAttribute
public boolean isAttribute()
- Returns:
- Returns the attribute.
-
setAttribute
public void setAttribute(boolean attribute)
- Parameters:
attribute- The attribute to set.
-
isContent
public boolean isContent()
-
setContent
public void setContent(boolean content)
-
getTagName
public java.lang.String getTagName()
- Returns:
- Returns the tag name or the attribute name if it's an attribute.
-
setTagName
public void setTagName(java.lang.String tagName)
- Parameters:
tagName- The tag or attribute name to set.
-
isTransient
public boolean isTransient()
-
setTransient
public void setTransient(boolean transientField)
-
getInsertParentFieldsUpTo
public java.lang.String getInsertParentFieldsUpTo()
-
setInsertParentFieldsUpTo
public void setInsertParentFieldsUpTo(java.lang.String insertParentFieldsUpTo)
-
-