Constructor and Description |
---|
SimpleProperty(Property property) |
SimpleProperty(String namespace,
String localName,
String value)
Construct a property.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalName()
Gets the local part of the name of the property.
|
String |
getNamespace()
Gets the namespace for the name.
|
String |
getValue()
Gets the value for this property.
|
boolean |
isInSpace(String namespace)
Is this property in the given namespace?
|
boolean |
isNamed(String namespace,
String localName)
Does the full name of the property match that given?
|
String |
toString()
Constructs a
String with all attributes
in name = value format. |
public SimpleProperty(String namespace, String localName, String value)
namespace
- not nulllocalName
- not nullvalue
- not nullpublic SimpleProperty(Property property)
public String getLocalName()
Property
getLocalName
in interface Property
Property.getLocalName()
public String getNamespace()
Property
getNamespace
in interface Property
Property.getNamespace()
public String getValue()
Property
getValue
in interface Property
Property.getValue()
public boolean isNamed(String namespace, String localName)
namespace
- not nulllocalName
- not nullpublic boolean isInSpace(String namespace)
namespace
- not nullCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.