org.mule.common.metadata
Class DefaultMetaData

java.lang.Object
  extended by org.mule.common.metadata.DefaultMetaData
All Implemented Interfaces:
MetaData

public class DefaultMetaData
extends Object
implements MetaData

Default implementation for encapsulate the MetaDataModel.


Constructor Summary
DefaultMetaData(MetaData oldMetadata, MetaDataModel payload)
          Copy constructor.
DefaultMetaData(MetaDataModel payload)
          Default Constructor.
 
Method Summary
 void addProperty(MetaDataPropertyScope scope, String name, MetaDataModel propertyModel, MetaDataFieldProperty... properties)
          Adds one property.
 void copyAllPropertiesWithScope(MetaData oldMetadata, MetaDataPropertyScope propertyScope)
           
 boolean equals(Object obj)
           
 MetaDataModel getPayload()
          Returns the contained MetaDataModel
 MetaDataProperties getProperties(MetaDataPropertyScope scope)
          Returns the properties contained.
 int hashCode()
           
 void removeProperty(MetaDataPropertyScope scope, String name)
          Removes one propery.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMetaData

public DefaultMetaData(MetaDataModel payload)
Default Constructor. Should be used on most use cases.


DefaultMetaData

public DefaultMetaData(MetaData oldMetadata,
                       MetaDataModel payload)
Copy constructor. Shouldn't use this use default instead.

Method Detail

copyAllPropertiesWithScope

public void copyAllPropertiesWithScope(MetaData oldMetadata,
                                       MetaDataPropertyScope propertyScope)

getPayload

public MetaDataModel getPayload()
Description copied from interface: MetaData
Returns the contained MetaDataModel

Specified by:
getPayload in interface MetaData

getProperties

public MetaDataProperties getProperties(MetaDataPropertyScope scope)
Description copied from interface: MetaData
Returns the properties contained. Shouldn't be used except for advanced scenarios.

Specified by:
getProperties in interface MetaData

addProperty

public void addProperty(MetaDataPropertyScope scope,
                        String name,
                        MetaDataModel propertyModel,
                        MetaDataFieldProperty... properties)
Description copied from interface: MetaData
Adds one property. Shouldn't be used except for advanced scenarios.

Specified by:
addProperty in interface MetaData

removeProperty

public void removeProperty(MetaDataPropertyScope scope,
                           String name)
Description copied from interface: MetaData
Removes one propery. Shouldn't be used except for advanced scenarios.

Specified by:
removeProperty in interface MetaData

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 MuleSoft, Inc.. All rights reserved.