public class JsonStructureAttribute extends java.lang.Object implements IStructureComponent
| Constructor and Description |
|---|
JsonStructureAttribute(RFileAttribute pAttribute)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(java.lang.String pName,
java.lang.Class<T> pAttributeType)
Gets relevant attribute for specific IStructureType component
|
java.util.List<IStructureComponent> |
getChildren()
Gets the component's children.
|
java.lang.String |
getName()
The name of the component.
|
Property |
getProperty()
Gets the property this component has been mapped to.
|
java.lang.String |
getStaticValue()
A static value component value.
|
boolean |
isMandatory()
Indicates whether the component is mandatory in the structure.
|
public JsonStructureAttribute(RFileAttribute pAttribute)
pAttribute - the RFileAttributepublic java.lang.String getName()
IStructureComponentgetName in interface IStructureComponentnullpublic java.lang.String getStaticValue()
IStructureComponentgetStaticValue in interface IStructureComponentnullpublic Property getProperty()
IStructureComponentgetProperty in interface IStructureComponentnull, if the component is not
mapped to a propertypublic java.util.List<IStructureComponent> getChildren()
IStructureComponentgetChildren in interface IStructureComponentnull if the
structure component doesn't support children.public <T> T getAttribute(java.lang.String pName,
java.lang.Class<T> pAttributeType)
IStructureComponentgetAttribute in interface IStructureComponentpName - the name of the attributepAttributeType - the type of the attribute valuenullpublic boolean isMandatory()
IStructureComponentisMandatory in interface IStructureComponenttrue if this component is mandatory in the structure, otherwise falseCopyright © 2015 Micro Focus GmbH. All rights reserved.