Class PropertyQualifiedName
java.lang.Object
io.inverno.core.compiler.spi.QualifiedName
io.inverno.core.compiler.spi.BeanQualifiedName
io.inverno.mod.configuration.compiler.spi.PropertyQualifiedName
public class PropertyQualifiedName
extends io.inverno.core.compiler.spi.BeanQualifiedName
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from class io.inverno.core.compiler.spi.QualifiedName
SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionPropertyQualifiedName(io.inverno.core.compiler.spi.BeanQualifiedName beanQName, String name) Creates a property qualified name with the specified bean qualified name and property name. -
Method Summary
Modifier and TypeMethodDescriptionio.inverno.core.compiler.spi.BeanQualifiedNameReturns the name of the bean defining the property.Returns the name of the property.static PropertyQualifiedNameCreates a property qualified name from the specified module qualified name and the specified raw value of the form<beanName>:<propertyName>where<beanName>and<propertyName>are valid Java name.static PropertyQualifiedNameCreates a property qualified name from the specified raw value of the formBeanQualifiedName():<propertyName>where<propertyName>is a valid Java name.Methods inherited from class io.inverno.core.compiler.spi.BeanQualifiedName
getBeanName, getModuleQName, getSimpleValueMethods inherited from class io.inverno.core.compiler.spi.QualifiedName
equals, getValue, hashCode, normalize, toString, validateQualifiedNamePart
-
Constructor Details
-
PropertyQualifiedName
public PropertyQualifiedName(io.inverno.core.compiler.spi.BeanQualifiedName beanQName, String name) throws io.inverno.core.compiler.spi.QualifiedNameFormatException Creates a property qualified name with the specified bean qualified name and property name.
- Parameters:
beanQName- a bean qualified namename- the property name- Throws:
io.inverno.core.compiler.spi.QualifiedNameFormatException- if the name is invalid
-
-
Method Details
-
getBeanQName
public io.inverno.core.compiler.spi.BeanQualifiedName getBeanQName()Returns the name of the bean defining the property.
- Returns:
- a bean qualified name
-
getPropertyName
Returns the name of the property.
- Returns:
- the socket name
-
valueOf
public static PropertyQualifiedName valueOf(String qname) throws io.inverno.core.compiler.spi.QualifiedNameFormatException Creates a property qualified name from the specified raw value of the form
BeanQualifiedName():<propertyName>where<propertyName>is a valid Java name.- Parameters:
qname- a raw qualified name- Returns:
- a property qualified name
- Throws:
io.inverno.core.compiler.spi.QualifiedNameFormatException- if the specified value is not a property qualified name
-
valueOf
public static PropertyQualifiedName valueOf(io.inverno.core.compiler.spi.ModuleQualifiedName moduleQName, String qname) throws io.inverno.core.compiler.spi.QualifiedNameFormatException Creates a property qualified name from the specified module qualified name and the specified raw value of the form
<beanName>:<propertyName>where<beanName>and<propertyName>are valid Java name.- Parameters:
moduleQName- a module qualified nameqname- a raw qualified name- Returns:
- a property qualified name
- Throws:
io.inverno.core.compiler.spi.QualifiedNameFormatException- if the specified value is not a property qualified name
-