public class PropertyInfo extends Object implements PropertyAnnotationInfo
PropertyDescription object collected from parsing the
RelaxNG schema.| Constructor and Description |
|---|
PropertyInfo(String ns,
String name,
SchemaInfo schemaInfo)
Constructs a new PropertyInfo.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(PropertyInfo child)
Adds a child, which could either be a property qualifier, array item qualifier or a struct field
|
com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS |
getAccess() |
ArrayType.ArrayForm |
getArrayForm() |
com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE |
getChoice() |
DatatypeInfo |
getDataType() |
Map<String,String> |
getDecorator(QName qname)
Gets decorator map for given
QName. |
HashMap<QName,Map<String,String>> |
getDecoratorStore()
Gets the decorator store for this
PropertyInfo |
String |
getDescription() |
Stack<PropertyInfo> |
getFields() |
String |
getLabel() |
String |
getName() |
String |
getNS() |
ParamInfoGroup |
getParamInfos() |
Stack<PropertyInfo> |
getQualifiers() |
DatatypeInfo |
getRawDataType() |
SchemaInfo |
getSchemaInfo() |
boolean |
hasDecorators()
Returns if this property has decorators
|
boolean |
isArrayItemQualifier()
Gets if the propertyInfo holds information for an array item qualifier.
|
boolean |
isDeprecated() |
boolean |
isMandatory() |
boolean |
isQualifier() |
void |
setAccess(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS mAccess) |
void |
setArrayForm(ArrayType.ArrayForm form) |
void |
setChoice(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE choice) |
void |
setDataType(DatatypeInfo mDataType) |
void |
setDeprecated(boolean mDeprecated) |
void |
setDescription(String mDescription) |
void |
setIsArrayItemQualifier(boolean isArrayItemQualifier)
Sets if this propertyInfo stores information for an array item qualifier.
|
void |
setIsQualifier(boolean isQualifier) |
void |
setLabel(String mLabel) |
void |
setMandatory(boolean mMandatory) |
void |
setName(String mName) |
void |
setNS(String mNS) |
void |
setParamInfos(ParamInfoGroup mParamInfos) |
void |
setRawDataType(DatatypeInfo mRawDataType) |
void |
setSchemaInfo(SchemaInfo mSchemaInfo) |
String |
toString() |
public PropertyInfo(String ns, String name, SchemaInfo schemaInfo)
ns - Namespace of the propertyname - Name of the propertyschemaInfo - SchemaInfo object, which stores information retrieved from annotations about the XMP schemapublic void addChild(PropertyInfo child)
child - child to addpublic Stack<PropertyInfo> getQualifiers()
PropertyInfopublic Stack<PropertyInfo> getFields()
PropertyInfo. Relevant only for struct property.public void setNS(String mNS)
mNS - the mNS to setpublic String getNS()
public void setName(String mName)
mName - the mName to setpublic String getName()
public void setParamInfos(ParamInfoGroup mParamInfos)
mParamInfos - the mParamInfos to setpublic ParamInfoGroup getParamInfos()
public void setRawDataType(DatatypeInfo mRawDataType)
mRawDataType - the mRawDataType to setpublic DatatypeInfo getRawDataType()
public void setDataType(DatatypeInfo mDataType)
mDataType - the mDataType to setpublic DatatypeInfo getDataType()
public void setArrayForm(ArrayType.ArrayForm form)
form - the mArrayForm to setpublic ArrayType.ArrayForm getArrayForm()
public void setLabel(String mLabel)
setLabel in interface PropertyAnnotationInfomLabel - the mLabel to setpublic String getLabel()
getLabel in interface PropertyAnnotationInfopublic void setDescription(String mDescription)
setDescription in interface PropertyAnnotationInfomDescription - the mDescription to setpublic String getDescription()
getDescription in interface PropertyAnnotationInfopublic void setAccess(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS mAccess)
setAccess in interface PropertyAnnotationInfomAccess - the mAccess to setpublic com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS getAccess()
getAccess in interface PropertyAnnotationInfopublic void setDeprecated(boolean mDeprecated)
mDeprecated - the mDeprecated to setpublic boolean isDeprecated()
public void setMandatory(boolean mMandatory)
mMandatory - the mMandatory to setpublic boolean isMandatory()
public void setIsArrayItemQualifier(boolean isArrayItemQualifier)
isArrayItemQualifier - booleanpublic boolean isArrayItemQualifier()
public void setIsQualifier(boolean isQualifier)
isQualifier - the mIsQualifier to setpublic boolean isQualifier()
public void setSchemaInfo(SchemaInfo mSchemaInfo)
mSchemaInfo - the mSchemaInfo to setpublic SchemaInfo getSchemaInfo()
public void setChoice(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE choice)
choice - the choice to setpublic com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE getChoice()
public boolean hasDecorators()
public HashMap<QName,Map<String,String>> getDecoratorStore()
PropertyInfopublic Map<String,String> getDecorator(QName qname)
QName. If entry does not
exist for the given qname, an entry is created in the decoratorstore.qname - qnameCopyright © 2010 - 2020 Adobe. All Rights Reserved