Package com.adobe.xmp.schema.model
Interface SchemaDescription
- All Superinterfaces:
Serializable
Describes a single XMP namespace.
Contains a list of properties that are part of the schema.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SchemaVisitor schemaVisitor) voidaddProperty(PropertyDescription property) Adds a property to the schema.getLabel()getProperty(String localName) voidremoveProperty(String localName) Removes a property from the schema namespace.voidsetDescription(String description) void
-
Method Details
-
getNamespaceURI
String getNamespaceURI()- Returns:
- Returns the schema namespace.
-
getLabel
String getLabel()- Returns:
- Returns the default label.
-
setLabel
- Parameters:
label- Sets the default label
-
getDescription
String getDescription()- Returns:
- Returns the default description.
-
setDescription
- Parameters:
description- Sets the default description
-
addProperty
Adds a property to the schema. The namespaceURI of the property is set to the schema's namespace even if it had a different value before.- Parameters:
property- an PropertyDescription
-
getProperty
- Parameters:
localName- the local name of a property- Returns:
- Returns a property or null if not existing.
-
getProperties
List<PropertyDescription> getProperties()- Returns:
- Returns a list of all properties contained in the schema.
-
removeProperty
Removes a property from the schema namespace.- Parameters:
localName- the local name of the property to remove
-
accept
- Parameters:
schemaVisitor- a visitor that implements theSchemaVisitor-interface- Throws:
XMPSchemaException- Handles visitor exceptions
-