Package com.adobe.xmp.schema.rng.model
Class PropertyInfo
java.lang.Object
com.adobe.xmp.schema.rng.model.PropertyInfo
- All Implemented Interfaces:
PropertyAnnotationInfo
This class holds relevant data for constructing a
PropertyDescription object collected from parsing the
RelaxNG schema.-
Constructor Summary
ConstructorsConstructorDescriptionPropertyInfo(String ns, String name, SchemaInfo schemaInfo) Constructs a new PropertyInfo. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(PropertyInfo child) Adds a child, which could either be a property qualifier, array item qualifier or a struct fieldcom.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESScom.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICEgetDecorator(QName qname) Gets decorator map for givenQName.Gets the decorator store for thisPropertyInfogetLabel()getName()getNS()booleanReturns if this property has decoratorsbooleanGets if the propertyInfo holds information for an array item qualifier.booleanbooleanbooleanvoidsetAccess(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS mAccess) voidvoidsetChoice(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE choice) voidsetDataType(DatatypeInfo mDataType) voidsetDeprecated(boolean mDeprecated) voidsetDescription(String mDescription) voidsetIsArrayItemQualifier(boolean isArrayItemQualifier) Sets if this propertyInfo stores information for an array item qualifier.voidsetIsQualifier(boolean isQualifier) voidvoidsetMandatory(boolean mMandatory) voidvoidvoidsetParamInfos(ParamInfoGroup mParamInfos) voidsetRawDataType(DatatypeInfo mRawDataType) voidsetSchemaInfo(SchemaInfo mSchemaInfo) toString()
-
Constructor Details
-
PropertyInfo
Constructs a new PropertyInfo.- Parameters:
ns- Namespace of the propertyname- Name of the propertyschemaInfo-SchemaInfoobject, which stores information retrieved from annotations about the XMP schema
-
-
Method Details
-
addChild
Adds a child, which could either be a property qualifier, array item qualifier or a struct field- Parameters:
child- child to add
-
getQualifiers
- Returns:
- List of qualifiers of this
PropertyInfo
-
getFields
- Returns:
- List of fields of this
PropertyInfo. Relevant only for struct property.
-
setNS
- Parameters:
mNS- the mNS to set
-
getNS
- Returns:
- the mNS
-
setName
- Parameters:
mName- the mName to set
-
getName
- Returns:
- the mName
-
setParamInfos
- Parameters:
mParamInfos- the mParamInfos to set
-
getParamInfos
- Returns:
- the mParamInfos
-
setRawDataType
- Parameters:
mRawDataType- the mRawDataType to set
-
getRawDataType
- Returns:
- the mRawDataType
-
setDataType
- Parameters:
mDataType- the mDataType to set
-
getDataType
- Returns:
- the mDataType
-
setArrayForm
- Parameters:
form- the mArrayForm to set
-
getArrayForm
- Returns:
- the mArrayForm
-
setLabel
- Specified by:
setLabelin interfacePropertyAnnotationInfo- Parameters:
mLabel- the mLabel to set
-
getLabel
- Specified by:
getLabelin interfacePropertyAnnotationInfo- Returns:
- the mLabel
-
setDescription
- Specified by:
setDescriptionin interfacePropertyAnnotationInfo- Parameters:
mDescription- the mDescription to set
-
getDescription
- Specified by:
getDescriptionin interfacePropertyAnnotationInfo- Returns:
- the mDescription
-
setAccess
public void setAccess(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS mAccess) - Specified by:
setAccessin interfacePropertyAnnotationInfo- Parameters:
mAccess- the mAccess to set
-
getAccess
public com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS getAccess()- Specified by:
getAccessin interfacePropertyAnnotationInfo- Returns:
- the mAccess
-
setDeprecated
public void setDeprecated(boolean mDeprecated) - Parameters:
mDeprecated- the mDeprecated to set
-
isDeprecated
public boolean isDeprecated()- Returns:
- the mDeprecated
-
setMandatory
public void setMandatory(boolean mMandatory) - Parameters:
mMandatory- the mMandatory to set
-
isMandatory
public boolean isMandatory()- Returns:
- the mMandatory
-
setIsArrayItemQualifier
public void setIsArrayItemQualifier(boolean isArrayItemQualifier) Sets if this propertyInfo stores information for an array item qualifier.- Parameters:
isArrayItemQualifier- boolean
-
isArrayItemQualifier
public boolean isArrayItemQualifier()Gets if the propertyInfo holds information for an array item qualifier.- Returns:
- boolean
-
setIsQualifier
public void setIsQualifier(boolean isQualifier) - Parameters:
isQualifier- the mIsQualifier to set
-
isQualifier
public boolean isQualifier()- Returns:
- the mIsQualifier
-
setSchemaInfo
- Parameters:
mSchemaInfo- the mSchemaInfo to set
-
getSchemaInfo
- Returns:
- the mSchemaInfo
-
setChoice
public void setChoice(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE choice) - Parameters:
choice- the choice to set
-
getChoice
public com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE getChoice()- Returns:
- the choice
-
hasDecorators
public boolean hasDecorators()Returns if this property has decorators- Returns:
- boolean
-
getDecoratorStore
Gets the decorator store for thisPropertyInfo- Returns:
- HashMap
-
getDecorator
Gets decorator map for givenQName. If entry does not exist for the given qname, an entry is created in the decoratorstore.- Parameters:
qname- qname- Returns:
- Map
-
toString
-