goldengate.common.xml
Class XmlDecl

java.lang.Object
  extended by goldengate.common.xml.XmlDecl

public class XmlDecl
extends Object

XmlDecl to declare types, path and name for values from/to XML file/document

Author:
Frederic Bregier

Constructor Summary
XmlDecl(String name, String xmlPath)
           
XmlDecl(String name, XmlType type, String xmlPath)
           
XmlDecl(String name, XmlType type, String xmlPath, boolean isMultiple)
           
XmlDecl(String name, XmlType type, String xmlPath, XmlDecl[] decls, boolean isMultiple)
           
XmlDecl(XmlType type, String xmlPath)
           
 
Method Summary
 Class<?> getClassType()
           
 String getName()
          Get Java field name
 XmlDecl[] getSubXml()
           
 int getSubXmlSize()
           
 XmlType getType()
           
 String getXmlPath()
           
 boolean isCompatible(XmlDecl xmlDecl)
          Check if two XmlDecl are compatible
 boolean isMultiple()
           
 boolean isSubXml()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlDecl

public XmlDecl(String name,
               String xmlPath)

XmlDecl

public XmlDecl(XmlType type,
               String xmlPath)

XmlDecl

public XmlDecl(String name,
               XmlType type,
               String xmlPath)

XmlDecl

public XmlDecl(String name,
               XmlType type,
               String xmlPath,
               boolean isMultiple)

XmlDecl

public XmlDecl(String name,
               XmlType type,
               String xmlPath,
               XmlDecl[] decls,
               boolean isMultiple)
Method Detail

getName

public String getName()
Get Java field name

Returns:
the field name

getClassType

public Class<?> getClassType()
Returns:
the class type

getType

public XmlType getType()
Returns:
the internal type

getXmlPath

public String getXmlPath()
Returns:
the xmlPath

isSubXml

public boolean isSubXml()
Returns:
True if this Decl is a subXml

getSubXml

public XmlDecl[] getSubXml()
Returns:
the subXml

getSubXmlSize

public int getSubXmlSize()
Returns:
the subXml size

isMultiple

public boolean isMultiple()
Returns:
the isMultiple

isCompatible

public boolean isCompatible(XmlDecl xmlDecl)
Check if two XmlDecl are compatible

Parameters:
xmlDecl -
Returns:
True if compatible

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.