org.ofbiz.entity.model
Class ModelInfo

java.lang.Object
  extended by org.ofbiz.entity.model.ModelInfo

@ThreadSafe
public final class ModelInfo
extends java.lang.Object

An object that models the <entitymodel> child elements that provide default values.


Field Summary
static ModelInfo DEFAULT
           
 
Method Summary
static ModelInfo createFromAttributes(ModelInfo defaultInfo, org.w3c.dom.Element element)
          Returns a new ModelInfo instance initialized to the values found in element attributes.
static ModelInfo createFromElements(ModelInfo defaultInfo, org.w3c.dom.Element element)
          Returns a new ModelInfo instance initialized to the values found in element child elements.
 java.lang.String getAuthor()
          Returns the author.
 java.lang.String getCopyright()
          Returns the copyright.
 java.lang.String getDefaultResourceName()
          Returns the default resource name.
 java.lang.String getDescription()
          Returns the description.
 java.lang.String getTitle()
          Returns the title.
 java.lang.String getVersion()
          Returns the version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final ModelInfo DEFAULT
Method Detail

createFromAttributes

public static ModelInfo createFromAttributes(ModelInfo defaultInfo,
                                             org.w3c.dom.Element element)
Returns a new ModelInfo instance initialized to the values found in element attributes.

Parameters:
defaultInfo - A ModelInfo instance that will provide default values for missing attributes.
element -

createFromElements

public static ModelInfo createFromElements(ModelInfo defaultInfo,
                                           org.w3c.dom.Element element)
Returns a new ModelInfo instance initialized to the values found in element child elements.

Parameters:
defaultInfo - A ModelInfo instance that will provide default values for missing child elements.
element -

getAuthor

public java.lang.String getAuthor()
Returns the author.


getCopyright

public java.lang.String getCopyright()
Returns the copyright.


getDefaultResourceName

public java.lang.String getDefaultResourceName()
Returns the default resource name.


getDescription

public java.lang.String getDescription()
Returns the description.


getTitle

public java.lang.String getTitle()
Returns the title.


getVersion

public java.lang.String getVersion()
Returns the version.