public class FieldDescriptor extends Descriptor
context
Constructor and Description |
---|
FieldDescriptor(Field attribute) |
FieldDescriptor(URI context,
Field attribute) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeContext(Field attribute,
URI context)
Adds repository context for the specified attribute.
|
void |
addAttributeDescriptor(Field attribute,
Descriptor descriptor)
Adds descriptor for the specified attribute.
|
boolean |
equals(Object obj) |
Descriptor |
getAttributeDescriptor(FieldSpecification<?,?> attribute)
Gets descriptor for the specified attribute.
|
Collection<Descriptor> |
getAttributeDescriptors()
Gets attribute descriptors specified in this descriptor.
|
protected Set<URI> |
getContextsInternal(Set<URI> contexts,
Set<Descriptor> visited)
Gets the contexts, discarding any already visited descriptors.
|
int |
hashCode() |
getAllContexts, getContext, toString
public FieldDescriptor(Field attribute)
public Collection<Descriptor> getAttributeDescriptors()
Descriptor
getAttributeDescriptors
in class Descriptor
public Descriptor getAttributeDescriptor(FieldSpecification<?,?> attribute)
Descriptor
getAttributeDescriptor
in class Descriptor
attribute
- Entity attribute, as specified by the application metamodelpublic void addAttributeDescriptor(Field attribute, Descriptor descriptor)
Descriptor
addAttributeDescriptor
in class Descriptor
attribute
- The attribute to set descriptor fordescriptor
- The descriptor to usepublic void addAttributeContext(Field attribute, URI context)
Descriptor
This in effect means creating a descriptor for the specified field with the specified context.
addAttributeContext
in class Descriptor
attribute
- The attribute to set context forcontext
- The context to setDescriptor.addAttributeDescriptor(Field, Descriptor)
protected Set<URI> getContextsInternal(Set<URI> contexts, Set<Descriptor> visited)
Descriptor
getContextsInternal
in class Descriptor
contexts
- Contexts collected so farvisited
- Visited descriptorspublic int hashCode()
hashCode
in class Descriptor
public boolean equals(Object obj)
equals
in class Descriptor
Copyright © 2017 Czech Technical University in Prague, Knowledge Based and Software Systems Group. All rights reserved.