Package io.microsphere.beans
Class ConfigurationProperty.Metadata
- java.lang.Object
-
- io.microsphere.beans.ConfigurationProperty.Metadata
-
- Enclosing class:
- ConfigurationProperty
public static class ConfigurationProperty.Metadata extends java.lang.Object
The metadata class of the Spring Configuration Property
-
-
Constructor Summary
Constructors Constructor Description Metadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getDeclaredClass()
Get the declared class name.java.lang.String
getDeclaredField()
Get the declared field name.java.util.Set<java.lang.String>
getSources()
Retrieves the set of sources associated with this configuration property.java.util.Set<java.lang.String>
getTargets()
Retrieves the set of targets associated with this configuration property.int
hashCode()
void
setDeclaredClass(java.lang.String declaredClass)
Set the declared class name.void
setDeclaredField(java.lang.String declaredField)
Set the declared field name.java.lang.String
toString()
-
-
-
Method Detail
-
getSources
@Nonnull public java.util.Set<java.lang.String> getSources()
Retrieves the set of sources associated with this configuration property. If the sources set is null, it will be initialized with an empty linked hash set.Example Usage
ConfigurationProperty.Metadata metadata = new ConfigurationProperty.Metadata(); metadata.getSources().add("source1"); metadata.getSources().add("source2"); // Retrieving the sources Set<String> sources = metadata.getSources(); // contains "source1", "source2"
- Returns:
- the set of sources; never null
-
getTargets
@Nonnull public java.util.Set<java.lang.String> getTargets()
Retrieves the set of targets associated with this configuration property. If the targets set is null, it will be initialized with an empty linked hash set.Example Usage
ConfigurationProperty.Metadata metadata = new ConfigurationProperty.Metadata(); metadata.getTargets().add("target1"); metadata.getTargets().add("target2"); // Retrieving the targets Set<String> targets = metadata.getTargets(); // contains "target1", "target2"
- Returns:
- the set of targets; never null
-
getDeclaredClass
@Nullable public java.lang.String getDeclaredClass()
Get the declared class name.- Returns:
- the declared class name
-
getDeclaredField
@Nullable public java.lang.String getDeclaredField()
Get the declared field name.- Returns:
- the declared field name
-
setDeclaredClass
public void setDeclaredClass(@Nullable java.lang.String declaredClass)
Set the declared class name.- Parameters:
declaredClass
- the declared class name
-
setDeclaredField
public void setDeclaredField(@Nullable java.lang.String declaredField)
Set the declared field name.- Parameters:
declaredField
- the declared field name
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-